mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-02-24 00:13:35 +00:00
Added Flaggrab var for stats
This commit is contained in:
parent
e643d0b5d3
commit
3f2e013250
1 changed files with 3 additions and 1 deletions
|
|
@ -1724,7 +1724,9 @@ function LakRabbitGame::playerTouchFlag(%game, %player, %flag)
|
|||
%points = mFloor((getSpeed(%player)/7.3) + (getHeight(%player)/3.3)); //was 5.3 - 2.3
|
||||
%points = %points > 5 ? %points : 5;
|
||||
messageAll('MsgRabbitFlagTaken', '\c4%1 gets %2 points for a Mid-Air flag grab! [Speed:%3] [Height:%4]~wfx/misc/hunters_horde.wav', %player.client.name, %points, getSpeed(%player), getHeight(%player));
|
||||
%player.client.morepoints += %points;
|
||||
%player.client.morepoints += %points;
|
||||
%player.client.MidairflagGrabs++; //for stats
|
||||
%player.client.MidairflagGrabPoints += %points; //for stats
|
||||
}
|
||||
else
|
||||
messageAll('MsgRabbitFlagTaken', '\c2%1 has taken the flag!~wfx/misc/flag_snatch.wav', %player.client.name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue