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
+35
View File
@@ -0,0 +1,35 @@
#ifndef __GAME_ENERGYNODE_H__
#define __GAME_ENERGYNODE_H__
class hhEnergyNode : public idStaticEntity {
public:
CLASS_PROTOTYPE( hhEnergyNode );
hhEnergyNode(void);
~hhEnergyNode();
void Spawn( void );
void Save( idSaveGame *savefile ) const;
void Restore( idRestoreGame *savefile );
inline bool CanLeech() { return !disabled; }
void LeechTrigger(idEntity *activator, const char* type);
void Finish();
virtual void Event_Enable();
virtual void Event_Disable();
//rww - network code
virtual void WriteToSnapshot( idBitMsgDelta &msg ) const;
virtual void ReadFromSnapshot( const idBitMsgDelta &msg );
idVec3 leechPoint;
protected:
bool disabled;
idEntityPtr<hhEntityFx> energyFx;
};
#endif // __GAME_ENERGYNODE_H__