Fixed numerous potential bugs by moving RoundEndOnClientDeath down to the end of player_death. Checking before caused problems because that function leads to the "humanizing" of all zombies if the last zombie was killed. Stuff like kill_bonus wasn't working right because of this.

Fixed documentation bug, mis-documented kill_bonus.
This commit is contained in:
Greyscale 2009-08-03 15:13:36 -07:00
parent ded36a6c5d
commit f9c953d58f
3 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@
// health_regen_interval decimal Sets the regeneration interval. 0 to disable.
// health_regen_amount number How much HP to give per interval.
// health_infect_gain number How much HP to give when the player infects someone. Zombies only.
// kill_bonus number How many points to give per kill. Humans only.
// kill_bonus number How many points to give per kill. Zombies only.
// speed decimal The player speed.
// knockback decimal Force of the knockback when shot at. Zombies only.
// jump_height decimal Multiplier of the players jump height. 0.0 means no jump, 1.0 is normal.

View File

@ -750,8 +750,8 @@ The list below explains all available class attributes in detail:
kill_bonus number 0 - 16
---------------------------------------------------------------------------
Human classes only. How many points to give the player each time he
kill a zombie.
Zombie classes only. How many EXTRA points to give the killer of a
zombie. If this is 0, the default value of 1 point will be given.
speed decimal 10.0 - 2000.0
---------------------------------------------------------------------------

View File

@ -272,7 +272,6 @@ public Action:EventPlayerDeath(Handle:event, const String:name[], bool:dontBroad
// Forward event to modules.
ClassOnClientDeath(index);
RoundEndOnClientDeath();
InfectOnClientDeath(index, attacker);
VEffectsOnClientDeath(index);
SEffectsOnClientDeath(index);
@ -283,6 +282,7 @@ public Action:EventPlayerDeath(Handle:event, const String:name[], bool:dontBroad
ZTeleOnClientDeath(index);
ZHPOnClientDeath(index);
VolOnPlayerDeath(index);
RoundEndOnClientDeath();
}
/**