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
+41
View File
@@ -0,0 +1,41 @@
#ifndef __GAME_ORGANTRIGGER_H__
#define __GAME_ORGANTRIGGER_H__
extern const idEventDef EV_ModelDoorOpen;
extern const idEventDef EV_ModelDoorClose;
class hhOrganTrigger : public hhAnimatedEntity {
public:
CLASS_PROTOTYPE( hhOrganTrigger );
virtual ~hhOrganTrigger();
void Spawn( void );
void Save( idSaveGame *savefile ) const;
void Restore( idRestoreGame *savefile );
virtual void Killed( idEntity* inflictor, idEntity* attacker, int damage, const idVec3& dir, int location );
protected:
void SpawnTrigger();
virtual void Enable();
virtual void Disable();
void Event_Enable();
void Event_Disable();
void Event_PlayIdle( void );
void Event_PlayPainIdle( void );
void Event_ResetOrgan( void );
virtual void Event_PostSpawn();
private:
int idleAnim;
int painAnim;
int resetAnim;
int painIdleAnim;
idEntityPtr<hhTrigger> trigger;
};
#endif /* __GAME_ORGANTRIGGER_H__ */