@@ -125,23 +125,24 @@ typedef enum
125125
126126typedef struct _effect_def
127127{
128- uint8_t control ; // Controls the bits above - essential,flips etc
129- uint8_t group ; // what group is it - explosion, building effect etc....
130- uint8_t type ; // what type is it within the group?
131- uint8_t frameNumber ; // what frame number is the imd on?
132- uint16_t size ; // Size in terms of percent of original imd.
133- uint8_t baseScale ; // if scaled, what's bottom line?
134- uint8_t specific ; // how many times has it bounced?
135- Vector3f position ; // world coordinates of the effect - floats on the PC.
136- Vector3f velocity ; // movement values per update
137- Vector3i rotation ; // current rotation - only for gravitons
138- Vector3i spin ; // rotation info for spinning things.
139- uint32_t birthTime ; // what time was it introduced into the world?
140- uint32_t lastFrame ; // when did we last update the frame?
141- uint16_t frameDelay ; // how many game ticks between each frame?
142- uint16_t lifeSpan ; // what is it's life expectancy?
143- uint16_t radius ; // Used for area effects
144- iIMDShape * imd ; // pointer to the imd the effect uses.
128+ uint8_t player ; // when the effect in question needs a player's color
129+ uint8_t control ; // Controls the bits above - essential,flips etc
130+ uint8_t group ; // what group is it - explosion, building effect etc....
131+ uint8_t type ; // what type is it within the group?
132+ uint8_t frameNumber ; // what frame number is the imd on?
133+ uint16_t size ; // Size in terms of percent of original imd.
134+ uint8_t baseScale ; // if scaled, what's bottom line?
135+ uint8_t specific ; // how many times has it bounced?
136+ Vector3f position ; // world coordinates of the effect - floats on the PC.
137+ Vector3f velocity ; // movement values per update
138+ Vector3i rotation ; // current rotation - only for gravitons
139+ Vector3i spin ; // rotation info for spinning things.
140+ uint32_t birthTime ; // what time was it introduced into the world?
141+ uint32_t lastFrame ; // when did we last update the frame?
142+ uint16_t frameDelay ; // how many game ticks between each frame?
143+ uint16_t lifeSpan ; // what is it's life expectancy?
144+ uint16_t radius ; // Used for area effects
145+ iIMDShape * imd ; // pointer to the imd the effect uses.
145146} EFFECT ;
146147
147148/* Maximum number of effects in the world - need to investigate what this should be */
@@ -169,5 +170,6 @@ extern bool readFXData(const char* fileName);
169170extern bool writeFXData (const char * fileName );
170171extern void effectSetSize (UDWORD size );
171172extern void effectSetLandLightSpec (LAND_LIGHT_SPEC spec );
173+ extern void SetEffectForPlayer (uint8_t player );
172174
173175#endif // __INCLUDED_SRC_EFFECTS_H__
0 commit comments