diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-09-11 15:39:35 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-09-11 15:39:35 +0200 |
commit | f0b15ee053ec0e4a26652f552e59701a778a201a (patch) | |
tree | d57abdfde1eb05f5999a9857a0473cde68239dca /src/objects/Stinger.h | |
parent | fixes (diff) | |
parent | Merge pull request #701 from erorcun/miami (diff) | |
download | re3-f0b15ee053ec0e4a26652f552e59701a778a201a.tar re3-f0b15ee053ec0e4a26652f552e59701a778a201a.tar.gz re3-f0b15ee053ec0e4a26652f552e59701a778a201a.tar.bz2 re3-f0b15ee053ec0e4a26652f552e59701a778a201a.tar.lz re3-f0b15ee053ec0e4a26652f552e59701a778a201a.tar.xz re3-f0b15ee053ec0e4a26652f552e59701a778a201a.tar.zst re3-f0b15ee053ec0e4a26652f552e59701a778a201a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/objects/Stinger.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/objects/Stinger.h b/src/objects/Stinger.h new file mode 100644 index 00000000..250cf62d --- /dev/null +++ b/src/objects/Stinger.h @@ -0,0 +1,40 @@ +#pragma once + +#include "Object.h" + +class CStingerSegment : public CObject +{ +public: + CStingerSegment(); + ~CStingerSegment(); +}; + +#define NUM_STINGER_SEGMENTS (12) + +enum { + STINGERSTATE_NONE = 0, + STINGERSTATE_DEPLOYING, + STINGERSTATE_DEPLOYED, + STINGERSTATE_UNDEPLOYING, + STINGERSTATE_REMOVE, +}; + +class CStinger +{ +public: + bool bIsDeployed; + uint32 m_nTimeOfDeploy; + CVector m_vPos; + float m_fMax_Z; + float m_fMin_Z; + CVector2D m_vPositions[60]; + CStingerSegment *pSpikes[NUM_STINGER_SEGMENTS]; + class CPed *pOwner; + uint8 m_nSpikeState; + CStinger(); + void Init(CPed *pPed); + void Remove(); + void Deploy(CPed *pPed); + void CheckForBurstTyres(); + void Process(); +};
\ No newline at end of file |