summaryrefslogtreecommitdiffstats
path: root/src/objects/Stinger.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-09-01 20:10:35 +0200
committereray orçunus <erayorcunus@gmail.com>2020-09-01 20:10:35 +0200
commit16e10d788a12b12300c2232eeb5513b6df5233b5 (patch)
treeb98206f10d38401b3124e9d1249f8feb33307ade /src/objects/Stinger.cpp
parentMerge pull request #700 from Sergeanur/VC/Stinger (diff)
downloadre3-16e10d788a12b12300c2232eeb5513b6df5233b5.tar
re3-16e10d788a12b12300c2232eeb5513b6df5233b5.tar.gz
re3-16e10d788a12b12300c2232eeb5513b6df5233b5.tar.bz2
re3-16e10d788a12b12300c2232eeb5513b6df5233b5.tar.lz
re3-16e10d788a12b12300c2232eeb5513b6df5233b5.tar.xz
re3-16e10d788a12b12300c2232eeb5513b6df5233b5.tar.zst
re3-16e10d788a12b12300c2232eeb5513b6df5233b5.zip
Diffstat (limited to 'src/objects/Stinger.cpp')
-rw-r--r--src/objects/Stinger.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/objects/Stinger.cpp b/src/objects/Stinger.cpp
index d0e6919f..7996db00 100644
--- a/src/objects/Stinger.cpp
+++ b/src/objects/Stinger.cpp
@@ -51,6 +51,7 @@ CStinger::Init(CPed *pPed)
}
bIsDeployed = true;
m_vPos = pPed->GetPosition();
+ m_vPos.z -= 1.0f;
m_fMax_Z = Atan2(-pPed->GetForward().x, pPed->GetForward().y) + HALFPI;
for (i = 0; i < NUM_STINGER_SEGMENTS; i++) {
@@ -61,7 +62,7 @@ CStinger::Init(CPed *pPed)
CVector2D fwd2d(pPed->GetForward().x, pPed->GetForward().y);
for (i = 0; i < ARRAY_SIZE(m_vPositions); i++)
- m_vPositions[i] = fwd2d * Sin(DEGTORAD(i));
+ m_vPositions[i] = fwd2d * 1.8f * Sin(DEGTORAD(i));
m_nSpikeState = STINGERSTATE_NONE;
m_nTimeOfDeploy = CTimer::GetTimeInMilliseconds();