summaryrefslogtreecommitdiffstats
path: root/src/objects/Stinger.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-27 17:50:24 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-27 17:50:24 +0100
commit97351ad2c2a05f9221601b27432aaf7b51507103 (patch)
tree7ce01d3e594fdf2894199cda0474bbc8f65de33b /src/objects/Stinger.cpp
parentFix anim id in replay (diff)
downloadre3-97351ad2c2a05f9221601b27432aaf7b51507103.tar
re3-97351ad2c2a05f9221601b27432aaf7b51507103.tar.gz
re3-97351ad2c2a05f9221601b27432aaf7b51507103.tar.bz2
re3-97351ad2c2a05f9221601b27432aaf7b51507103.tar.lz
re3-97351ad2c2a05f9221601b27432aaf7b51507103.tar.xz
re3-97351ad2c2a05f9221601b27432aaf7b51507103.tar.zst
re3-97351ad2c2a05f9221601b27432aaf7b51507103.zip
Diffstat (limited to '')
-rw-r--r--src/objects/Stinger.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/objects/Stinger.cpp b/src/objects/Stinger.cpp
index b3660881..79730c89 100644
--- a/src/objects/Stinger.cpp
+++ b/src/objects/Stinger.cpp
@@ -87,10 +87,10 @@ void
CStinger::Deploy(CPed *pPed)
{
if (NumOfStingerSegments < NUM_STINGER_SEGMENTS*2 && !pPed->bInVehicle && pPed->IsPedInControl()) {
- if (!bIsDeployed && RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_WEAPON_THROWU) == nil) {
+ if (!bIsDeployed && RpAnimBlendClumpGetAssociation(pPed->GetClump(), ANIM_STD_THROW_UNDER) == nil) {
Init(pPed);
pPed->SetPedState(PED_DEPLOY_STINGER);
- CAnimManager::AddAnimation(pPed->GetClump(), ASSOCGRP_STD, ANIM_WEAPON_THROWU);
+ CAnimManager::AddAnimation(pPed->GetClump(), ASSOCGRP_STD, ANIM_STD_THROW_UNDER);
}
}
}
@@ -170,7 +170,7 @@ CStinger::Process()
if (pOwner != nil
&& !pOwner->bInVehicle
&& pOwner->GetPedState() == PED_DEPLOY_STINGER
- && RpAnimBlendClumpGetAssociation(pOwner->GetClump(), ANIM_WEAPON_THROWU)->currentTime > 0.39f)
+ && RpAnimBlendClumpGetAssociation(pOwner->GetClump(), ANIM_STD_THROW_UNDER)->currentTime > 0.39f)
{
m_nSpikeState = STINGERSTATE_DEPLOYING;
for (int i = 0; i < NUM_STINGER_SEGMENTS; i++)