Skip to content

Commit

Permalink
Merge pull request #836 from ModdedMarionette/reactivedrop_beta
Browse files Browse the repository at this point in the history
Adding a two second delay before Flamer's Instant Ignition starts scaling down
  • Loading branch information
BenLubar authored Nov 16, 2024
2 parents 94e1fa9 + 2a91c34 commit db09b46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/game/server/swarm/asw_marine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit db09b46

Please sign in to comment.