blob: 5b60639ca5c88467ab7380ff29f0acdad12ce4f9 (
plain)
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
#define WATERCANNON_GRAVITY (0.009f)
#define WATERCANNON_LIFETIME (150)
class CWaterCannon
{
public:
enum
{
NUM_SEGMENTPOINTS = 16,
};
int32 m_nId;
int16 m_nCur;
uint32 m_nTimeCreated;
int32 field_C;
CVector m_avecPos[NUM_SEGMENTPOINTS];
CVector m_avecVelocity[NUM_SEGMENTPOINTS];
bool m_abUsed[NUM_SEGMENTPOINTS];
void Init(void);
void Update_OncePerFrame(int16 index);
void Update_NewInput(CVector *pos, CVector *dir);
void Render(void);
void PushPeds(void);
};
VALIDATE_SIZE(CWaterCannon, 0x1A0);
class CWaterCannons
{
public:
static CWaterCannon aCannons[NUM_WATERCANNONS];
static void Init(void);
static void UpdateOne(uint32 id, CVector *pos, CVector *dir);
static void Update();
static void Render(void);
};
|