diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-08-31 20:09:48 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-08-31 20:09:48 +0200 |
commit | 8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961 (patch) | |
tree | 56be6a67035f26389ea47150dee8bbd6bcc4e07e /src/objects/Stinger.h | |
parent | Merge pull request #697 from erorcun/miami (diff) | |
download | re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.tar re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.tar.gz re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.tar.bz2 re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.tar.lz re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.tar.xz re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.tar.zst re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.zip |
Diffstat (limited to '')
-rw-r--r-- | src/objects/Stinger.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/objects/Stinger.h b/src/objects/Stinger.h new file mode 100644 index 00000000..80ac3d1e --- /dev/null +++ b/src/objects/Stinger.h @@ -0,0 +1,41 @@ +#pragma once + +#include "Object.h" + +class CStingerSegment : public CObject +{ +public: + CStingerSegment(); + ~CStingerSegment(); +}; + +#define NUM_STINGER_SEGMENTS (12) + +class CStinger +{ + // TODO: better names + enum { + STINGERSTATE_NONE = 0, + STINGERSTATE_STATE1, + STINGERSTATE_STATE2, + STINGERSTATE_STATE3, + 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 |