Added flagReturns stat var

This commit is contained in:
ChocoTaco 2019-03-12 03:15:42 -04:00
parent 68c5805d94
commit 60ee38dcaa
2 changed files with 4 additions and 0 deletions

View file

@ -1179,6 +1179,8 @@ function CTFGame::checkScoreLimit(%game, %team)
function CTFGame::awardScoreFlagReturn(%game, %cl, %perc)
{
%cl.flagReturns++; //give flagreturn stat
// ---------------------------------------------------
// z0dd - ZOD, 9/29/02. Removed T2 demo code from here
if (%game.SCORE_PER_FLAG_RETURN != 0)

View file

@ -1254,6 +1254,8 @@ function SCtFGame::checkScoreLimit(%game, %team)
function SCtFGame::awardScoreFlagReturn(%game, %cl, %perc)
{
%cl.flagReturns++; //give flagreturn stat
if (%game.SCORE_PER_FLAG_RETURN != 0)
{
%pts = mfloor( %game.SCORE_PER_FLAG_RETURN * (%perc/100) );