ped attractor: start

This commit is contained in:
Nikolay Korolev
2020-05-13 11:38:05 +03:00
parent dc444b9ca0
commit 81ea6f0258
7 changed files with 813 additions and 14 deletions

View File

@ -3,7 +3,8 @@
enum {
EFFECT_LIGHT,
EFFECT_PARTICLE,
EFFECT_ATTRACTOR
EFFECT_ATTRACTOR,
EFFECT_PED_ATTRACTOR
};
enum {
@ -63,6 +64,11 @@ public:
uint8 flags;
uint8 probability;
};
struct PedAttractor {
CVector useDir;
CVector queueDir;
int8 type;
};
CVector pos;
CRGBA col;
@ -71,6 +77,7 @@ public:
Light light;
Particle particle;
Attractor attractor;
PedAttractor pedattr;
};
C2dEffect(void) {}