diff options
author | aap <aap@papnet.eu> | 2020-09-01 17:31:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-01 17:31:35 +0200 |
commit | 0640ec7f5a7db213e2777bf836ad7da45981c9fd (patch) | |
tree | fbfc0cadff2efdaaa818bed1b88a7f054e571a25 /src/objects/Stinger.h | |
parent | Merge pull request #699 from Nick007J/miami (diff) | |
parent | Rename vars (diff) | |
download | re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.tar re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.tar.gz re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.tar.bz2 re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.tar.lz re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.tar.xz re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.tar.zst re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.zip |
Diffstat (limited to 'src/objects/Stinger.h')
-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..d1b57ce7 --- /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) + +class CStinger +{ + enum { + STINGERSTATE_NONE = 0, + STINGERSTATE_DEPLOYING, + STINGERSTATE_DEPLOYED, + STINGERSTATE_UNDEPLOYING, + STINGERSTATE_REMOVE, + }; + + 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; +public: + CStinger(); + void Init(CPed *pPed); + void Remove(); + void Deploy(CPed *pPed); + void CheckForBurstTyres(); + void Process(); +};
\ No newline at end of file |