mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-04-28 23:15:23 +00:00
Added flagReturns stat var
This commit is contained in:
parent
68c5805d94
commit
60ee38dcaa
2 changed files with 4 additions and 0 deletions
|
|
@ -1179,6 +1179,8 @@ function CTFGame::checkScoreLimit(%game, %team)
|
||||||
|
|
||||||
function CTFGame::awardScoreFlagReturn(%game, %cl, %perc)
|
function CTFGame::awardScoreFlagReturn(%game, %cl, %perc)
|
||||||
{
|
{
|
||||||
|
%cl.flagReturns++; //give flagreturn stat
|
||||||
|
|
||||||
// ---------------------------------------------------
|
// ---------------------------------------------------
|
||||||
// z0dd - ZOD, 9/29/02. Removed T2 demo code from here
|
// z0dd - ZOD, 9/29/02. Removed T2 demo code from here
|
||||||
if (%game.SCORE_PER_FLAG_RETURN != 0)
|
if (%game.SCORE_PER_FLAG_RETURN != 0)
|
||||||
|
|
|
||||||
|
|
@ -1254,6 +1254,8 @@ function SCtFGame::checkScoreLimit(%game, %team)
|
||||||
|
|
||||||
function SCtFGame::awardScoreFlagReturn(%game, %cl, %perc)
|
function SCtFGame::awardScoreFlagReturn(%game, %cl, %perc)
|
||||||
{
|
{
|
||||||
|
%cl.flagReturns++; //give flagreturn stat
|
||||||
|
|
||||||
if (%game.SCORE_PER_FLAG_RETURN != 0)
|
if (%game.SCORE_PER_FLAG_RETURN != 0)
|
||||||
{
|
{
|
||||||
%pts = mfloor( %game.SCORE_PER_FLAG_RETURN * (%perc/100) );
|
%pts = mfloor( %game.SCORE_PER_FLAG_RETURN * (%perc/100) );
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue