mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-03-09 14:40:27 +00:00
Added flagReturns stat var
This commit is contained in:
parent
68c5805d94
commit
60ee38dcaa
2 changed files with 4 additions and 0 deletions
|
|
@ -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) );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue