diff --git a/addons/sourcemod/scripting/l4d_tank_damage_announce.sp b/addons/sourcemod/scripting/l4d_tank_damage_announce.sp index 66a8a22..9475f5f 100644 --- a/addons/sourcemod/scripting/l4d_tank_damage_announce.sp +++ b/addons/sourcemod/scripting/l4d_tank_damage_announce.sp @@ -1,23 +1,23 @@ -/* - SourcePawn is Copyright (C) 2006-2008 AlliedModders LLC. All rights reserved. - SourceMod is Copyright (C) 2006-2008 AlliedModders LLC. All rights reserved. - Pawn and SMALL are Copyright (C) 1997-2008 ITB CompuPhase. - Source is Copyright (C) Valve Corporation. - All trademarks are property of their respective owners. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by the - Free Software Foundation, either version 3 of the License, or (at your - option) any later version. - - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License along - with this program. If not, see . -*/ +/* + SourcePawn is Copyright (C) 2006-2008 AlliedModders LLC. All rights reserved. + SourceMod is Copyright (C) 2006-2008 AlliedModders LLC. All rights reserved. + Pawn and SMALL are Copyright (C) 1997-2008 ITB CompuPhase. + Source is Copyright (C) Valve Corporation. + All trademarks are property of their respective owners. + + This program is free software: you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the + Free Software Foundation, either version 3 of the License, or (at your + option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program. If not, see . +*/ #pragma semicolon 1 #include @@ -266,6 +266,7 @@ PrintTankDamage() percent_adjustment = 0; } } + last_percent = percent_damage; PrintToChatAll("\x05%4d\x01 [\x04%d%%\x01]: \x03%N\x01", damage, percent_damage, client); } } @@ -327,4 +328,4 @@ public SortByDamageDesc(elem1, elem2, const array[], Handle:hndl) else if (elem1 > elem2) return -1; else if (elem2 > elem1) return 1; return 0; -} \ No newline at end of file +}