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

@ -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) );