Skip to content

Commit

Permalink
Scouts, medics and spies burn for 1/4 of the time
Browse files Browse the repository at this point in the history
  • Loading branch information
AfterShockFF committed Jun 26, 2016
1 parent 0a098a0 commit 975361d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dlls/ff/ff_player.cpp
Expand Up @@ -72,7 +72,6 @@ int g_iLimbs[CLASS_CIVILIAN + 1][5] = { { 0 } };

ConVar ffdev_pyro_burntime("ffdev_pyro_burntime","5.0", FCVAR_FF_FFDEV_REPLICATED, "Time the flamethrower lights someone for");
#define FFDEV_PYRO_BURNTIME ffdev_pyro_burntime.GetFloat()

#define BURN_TICK_INTERVAL FFDEV_PYRO_BURNTIME
//ConVar burn_ticks("ffdev_burn_ticks","6",0,"Number of burn ticks for pyro weapons.");
#define BURN_TICKS 1
Expand Down Expand Up @@ -4780,9 +4779,13 @@ void CFFPlayer::ApplyBurning( CFFPlayer *hIgniter, float scale, eBurnType BurnTy
user.MakeReliable();

float burnTickInterval = BURN_TICK_INTERVAL;
if (GetClassSlot() == CLASS_MEDIC)
switch (GetClassSlot())
{
burnTickInterval *= 0.5;
case CLASS_SCOUT:
case CLASS_MEDIC:
case CLASS_SPY:
burnTickInterval *= 0.25;
break;
}

m_flNextBurnTick = gpGlobals->curtime + BURN_TICK_INTERVAL;
Expand All @@ -4795,6 +4798,7 @@ void CFFPlayer::ApplyBurning( CFFPlayer *hIgniter, float scale, eBurnType BurnTy
//m_iBurnTicks = (GetClassSlot()==CLASS_PYRO)?4:8;

m_iBurnTicks = BURN_TICKS;

int oldburnlevel = 0;
if (m_bBurnFlagNG == true)
++oldburnlevel;
Expand Down

0 comments on commit 975361d

Please sign in to comment.