mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-27 22:27:57 +03:00
OnStartTipped output for npc_turret_floor
This commit is contained in:
parent
a5c754dd00
commit
ad423d1d07
@ -152,6 +152,9 @@ BEGIN_DATADESC( CNPC_FloorTurret )
|
|||||||
DEFINE_OUTPUT( m_OnTipped, "OnTipped" ),
|
DEFINE_OUTPUT( m_OnTipped, "OnTipped" ),
|
||||||
DEFINE_OUTPUT( m_OnPhysGunPickup, "OnPhysGunPickup" ),
|
DEFINE_OUTPUT( m_OnPhysGunPickup, "OnPhysGunPickup" ),
|
||||||
DEFINE_OUTPUT( m_OnPhysGunDrop, "OnPhysGunDrop" ),
|
DEFINE_OUTPUT( m_OnPhysGunDrop, "OnPhysGunDrop" ),
|
||||||
|
#ifdef MAPBASE
|
||||||
|
DEFINE_OUTPUT( m_OnStartTipped, "OnStartTipped" ),
|
||||||
|
#endif
|
||||||
|
|
||||||
DEFINE_BASENPCINTERACTABLE_DATADESC(),
|
DEFINE_BASENPCINTERACTABLE_DATADESC(),
|
||||||
|
|
||||||
@ -1526,6 +1529,10 @@ bool CNPC_FloorTurret::PreThink( turretState_e state )
|
|||||||
SetEyeState( TURRET_EYE_DEAD );
|
SetEyeState( TURRET_EYE_DEAD );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MAPBASE
|
||||||
|
m_OnStartTipped.FireOutput( this, this );
|
||||||
|
#endif
|
||||||
|
|
||||||
//Stop being targetted
|
//Stop being targetted
|
||||||
SetState( NPC_STATE_DEAD );
|
SetState( NPC_STATE_DEAD );
|
||||||
m_lifeState = LIFE_DEAD;
|
m_lifeState = LIFE_DEAD;
|
||||||
|
@ -265,6 +265,9 @@ protected:
|
|||||||
COutputEvent m_OnTipped;
|
COutputEvent m_OnTipped;
|
||||||
COutputEvent m_OnPhysGunPickup;
|
COutputEvent m_OnPhysGunPickup;
|
||||||
COutputEvent m_OnPhysGunDrop;
|
COutputEvent m_OnPhysGunDrop;
|
||||||
|
#ifdef MAPBASE
|
||||||
|
COutputEvent m_OnStartTipped;
|
||||||
|
#endif
|
||||||
|
|
||||||
bool m_bHackedByAlyx;
|
bool m_bHackedByAlyx;
|
||||||
HSOUNDSCRIPTHANDLE m_ShotSounds;
|
HSOUNDSCRIPTHANDLE m_ShotSounds;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user