Skip to content

Commit a9b6092

Browse files
committed
gameplay: don't increment MvM revives stat between rounds
when the game is not in active play, we shouldn't count any revives. revives during this time are irrelevant and often happen for jokes. the revive stat also causes a revive speed penalty for each revive done, so these irrelevant revives should not count against that. ref: ValveSoftware/Source-1-Games#4782
1 parent 9678652 commit a9b6092

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/game/shared/tf/tf_revive.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,12 @@ bool CTFReviveMarker::ReviveOwner( void )
384384

385385
m_hOwner->ForceRespawn();
386386

387-
// Increment stat
388-
CTF_GameStats.Event_PlayerRevived( m_hOwner );
387+
// Don't count revives when the game isn't in active play
388+
if ( TFGameRules()->State_Get() != GR_STATE_BETWEEN_RNDS )
389+
{
390+
// Increment stat
391+
CTF_GameStats.Event_PlayerRevived( m_hOwner );
392+
}
389393

390394
// If the medic's gone, or dead, stay in the spawn room
391395
if ( !m_pReviver || !m_pReviver->IsAlive() )

0 commit comments

Comments
 (0)