OnStartTipped output for npc_turret_floor

This commit is contained in:
ALLEN-PC\acj30 2025-01-05 13:06:06 -06:00 committed by Blixibon
parent a5c754dd00
commit ad423d1d07
2 changed files with 10 additions and 0 deletions

View File

@ -152,6 +152,9 @@ BEGIN_DATADESC( CNPC_FloorTurret )
DEFINE_OUTPUT( m_OnTipped, "OnTipped" ),
DEFINE_OUTPUT( m_OnPhysGunPickup, "OnPhysGunPickup" ),
DEFINE_OUTPUT( m_OnPhysGunDrop, "OnPhysGunDrop" ),
#ifdef MAPBASE
DEFINE_OUTPUT( m_OnStartTipped, "OnStartTipped" ),
#endif
DEFINE_BASENPCINTERACTABLE_DATADESC(),
@ -1526,6 +1529,10 @@ bool CNPC_FloorTurret::PreThink( turretState_e state )
SetEyeState( TURRET_EYE_DEAD );
}
#ifdef MAPBASE
m_OnStartTipped.FireOutput( this, this );
#endif
//Stop being targetted
SetState( NPC_STATE_DEAD );
m_lifeState = LIFE_DEAD;

View File

@ -265,6 +265,9 @@ protected:
COutputEvent m_OnTipped;
COutputEvent m_OnPhysGunPickup;
COutputEvent m_OnPhysGunDrop;
#ifdef MAPBASE
COutputEvent m_OnStartTipped;
#endif
bool m_bHackedByAlyx;
HSOUNDSCRIPTHANDLE m_ShotSounds;