Dropship now fires proper output when strider dies

This commit is contained in:
Bronzehawk75 2024-02-17 00:28:47 -05:00
parent 4c55da2d78
commit 216ae3f317

View File

@ -300,6 +300,9 @@ private:
bool IsHovering();
void UpdateGroundRotorWashSound( float flAltitude );
void UpdateRotorWashVolume( CSoundPatch *pRotorSound, float flVolume, float flDeltaTime );
#ifdef MAPBASE
void DeathNotice(CBaseEntity* pVictim);
#endif
private:
// Timers
@ -2490,7 +2493,7 @@ void CNPC_CombineDropship::PrescheduleThink( void )
m_hContainer = NULL;
m_flTimeTakeOff = gpGlobals->curtime + 5.0f;
m_flTimeTakeOff = gpGlobals->curtime + 3.0f;
SetLandingState(LANDING_UNLOADING);
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 )
DECLARE_ACTIVITY( ACT_DROPSHIP_FLY_IDLE );