mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-03-04 17:55:28 +03:00
Dropship now fires proper output when strider dies
This commit is contained in:
parent
4c55da2d78
commit
216ae3f317
@ -300,6 +300,9 @@ private:
|
|||||||
bool IsHovering();
|
bool IsHovering();
|
||||||
void UpdateGroundRotorWashSound( float flAltitude );
|
void UpdateGroundRotorWashSound( float flAltitude );
|
||||||
void UpdateRotorWashVolume( CSoundPatch *pRotorSound, float flVolume, float flDeltaTime );
|
void UpdateRotorWashVolume( CSoundPatch *pRotorSound, float flVolume, float flDeltaTime );
|
||||||
|
#ifdef MAPBASE
|
||||||
|
void DeathNotice(CBaseEntity* pVictim);
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// Timers
|
// Timers
|
||||||
@ -2490,7 +2493,7 @@ void CNPC_CombineDropship::PrescheduleThink( void )
|
|||||||
|
|
||||||
m_hContainer = NULL;
|
m_hContainer = NULL;
|
||||||
|
|
||||||
m_flTimeTakeOff = gpGlobals->curtime + 5.0f;
|
m_flTimeTakeOff = gpGlobals->curtime + 3.0f;
|
||||||
SetLandingState(LANDING_UNLOADING);
|
SetLandingState(LANDING_UNLOADING);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
@ -3342,6 +3345,19 @@ void CNPC_CombineDropship::MakeTracer( const Vector &vecTracerSrc, const trace_t
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef MAPBASE
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// Purpose: Need a way to tell if our strider died
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
void CNPC_CombineDropship::DeathNotice( CBaseEntity *pVictim )
|
||||||
|
{
|
||||||
|
if ( m_iCrateType == CRATE_STRIDER && GetLandingState() == LANDING_NO )
|
||||||
|
{
|
||||||
|
m_OnContainerShotDownBeforeDropoff.Set( 1, m_hContainer, this );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
AI_BEGIN_CUSTOM_NPC( npc_combinedropship, CNPC_CombineDropship )
|
AI_BEGIN_CUSTOM_NPC( npc_combinedropship, CNPC_CombineDropship )
|
||||||
|
|
||||||
DECLARE_ACTIVITY( ACT_DROPSHIP_FLY_IDLE );
|
DECLARE_ACTIVITY( ACT_DROPSHIP_FLY_IDLE );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user