From 0eccc3934336b380c26b41998f8a1f8e508af3c4 Mon Sep 17 00:00:00 2001 From: ModdedMarionette Date: Sat, 16 Nov 2024 02:22:06 -0500 Subject: [PATCH] Adding a two second delay before the instant ignition's burn duration starts scaling down --- src/game/server/swarm/asw_marine.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/server/swarm/asw_marine.cpp b/src/game/server/swarm/asw_marine.cpp index be494cc20..e5483ca53 100644 --- a/src/game/server/swarm/asw_marine.cpp +++ b/src/game/server/swarm/asw_marine.cpp @@ -5076,7 +5076,8 @@ void CASW_Marine::ASW_Ignite( float flFlameLifetime, float flSize, CBaseEntity * // Directly scaling the burn duration by the frequency of friendly fire // The frequency is the difference in time between the newest ff incident and the previous one - float flFlameLifetimeScaled = flFlameLifetime - ( m_fLastFriendlyFireTime - m_fPrevFriendlyFireTime ) * asw_marine_burn_time_since_last_ff_scale.GetFloat(); + // There is a two second delay before the duration starts scaling down + float flFlameLifetimeScaled = MIN ( flFlameLifetime, flFlameLifetime - ( m_fLastFriendlyFireTime - m_fPrevFriendlyFireTime - 2.0f ) * asw_marine_burn_time_since_last_ff_scale.GetFloat() ); flFlameLifetime = MAX ( flMinTime, flFlameLifetimeScaled ); }