mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-29 21:01:00 +00:00
Added flagReturns stat var
This commit is contained in:
parent
68c5805d94
commit
60ee38dcaa
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue