Initial Prey Game integration support.

This commit is contained in:
Justin Marshall
2026-05-05 15:01:01 -07:00
parent a6c6f1ed26
commit 8d5f678b25
552 changed files with 265551 additions and 209 deletions
+36
View File
@@ -0,0 +1,36 @@
#ifndef __GAME_CILIA_H
#define __GAME_CILIA_H
extern const idEventDef EV_TriggerNearby;
extern const idEventDef EV_StickOut;
class hhSphereCilia : public hhSpherePart {
public:
CLASS_PROTOTYPE( hhSphereCilia );
void Spawn( void );
void Save( idSaveGame *savefile ) const;
void Restore( idRestoreGame *savefile );
void Trigger( idEntity *activator );
void Damage( idEntity *inflictor, idEntity *attacker, const idVec3 &dir, const char *damageDefName, const float damageScale, const int location );
protected:
void Event_Trigger( idEntity *activator );
void Event_TriggerNearby( void );
void Event_StickOut( void );
void Event_Idle( void ); // JRM
void Event_Touch( idEntity *other, trace_t *trace );
void ApplyEffect( void );
protected:
int pullInAnim;
int stickOutAnim;
float nearbySize;
float idleDelay;
bool bRetracted;
bool bAlreadyActivated;
};
#endif /* __GAME_CILIA_H */