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
+37
View File
@@ -0,0 +1,37 @@
#ifndef __HH_LIGHT_FIXTURE_H
#define __HH_LIGHT_FIXTURE_H
class hhLightFixture : public hhAFEntity {
CLASS_PROTOTYPE( hhLightFixture );
public:
~hhLightFixture();
void Spawn();
void Save( idSaveGame *savefile ) const;
void Restore( idRestoreGame *savefile );
virtual void Damage( idEntity *inflictor, idEntity *attacker, const idVec3 &dir, const char *damageDefName, const float damageScale, const int location );
virtual void Killed( idEntity *inflictor, idEntity *attacker, int damage, const idVec3 &dir, int location );
virtual void Present( void );
protected:
void GetBoundLight();
idLight* SearchForBoundLight();
bool StillBound( const idLight* light );
void RemoveLight();
void PresentModelDefChange( void );
protected:
void Event_PostSpawn();
void Event_Hide();
void Event_Show();
protected:
jointHandle_t collisionBone;
idEntityPtr<idLight> boundLight;
};
#endif