blob: d1b57ce7804d5ecc12959b89139f1b6701aba24f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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();
};
|