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 __HH_GAME_RAIL_H__
#define __HH_GAME_RAIL_H__
class hhBindController;
/*
===================================================================================
hhRailRide
An animating object that controls player position and orientation.
Player can look around within some restricted cone of vision.
===================================================================================
*/
class hhRailRide : public hhAnimated {
public:
CLASS_PROTOTYPE( hhRailRide );
void Spawn();
void Save( idSaveGame *savefile ) const;
void Restore( idRestoreGame *savefile );
virtual bool Pain(idEntity *inflictor, idEntity *attacker, int damage, const idVec3 &dir, int location);
virtual void Killed( idEntity *inflictor, idEntity *attacker, int damage, const idVec3 &dir, int location );
void Attach(idEntity *rider, bool loose);
void Detach();
bool ValidRider(idEntity *entity);
protected:
void Event_Activate( idEntity *activator );
void Event_Attach(idEntity *rider, bool loose);
void Event_Detach();
hhBindController * bindController;
};
#endif