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_PROJECTILE_RIFLE_SNIPER_H
#define __HH_PROJECTILE_RIFLE_SNIPER_H
/***********************************************************************
hhProjectileRifleSniper
***********************************************************************/
extern const idEventDef EV_ApplyExitWound;
extern const idEventDef EV_AttemptFinalExitEventDef;
class hhProjectileRifleSniper : public hhProjectile {
CLASS_PROTOTYPE( hhProjectileRifleSniper );
public:
void Spawn();
virtual void Think();
void Save( idSaveGame *savefile ) const;
void Restore( idRestoreGame *savefile );
protected:
virtual float DetermineDamageScale( const trace_t* collision ) const;
virtual bool DamageIsValid( const trace_t* collision, float& damageScale );
virtual const idEventDef* GetInvalidDamageEventDef() const { return &EV_Fizzle; }
void DamageEntityHit( const trace_t* collision, const idVec3& velocity, idEntity* entHit );
protected:
void Event_AttemptFinalExitEventDef();
void Event_AllowCollision_PassThru( const trace_t* collision );
protected:
//Used floats so we can divide without casting
float numPassThroughs;
float maxPassThroughs;
idEntityPtr<idEntity> lastDamagedEntity;
};
#endif