1
0
Fork 0
mirror of https://git.rip/DMCA_FUCKER/re3.git synced 2024-07-02 12:35:52 +00:00
re3/src/objects/Stinger.h

40 lines
671 B
C
Raw Normal View History

2020-08-31 18:09:48 +00:00
#pragma once
#include "Object.h"
class CStingerSegment : public CObject
{
public:
CStingerSegment();
~CStingerSegment();
};
#define NUM_STINGER_SEGMENTS (12)
class CStinger
{
enum {
STINGERSTATE_NONE = 0,
2020-08-31 18:35:05 +00:00
STINGERSTATE_DEPLOYING,
STINGERSTATE_DEPLOYED,
STINGERSTATE_UNDEPLOYING,
2020-08-31 18:09:48 +00:00
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();
};