From bd4d7776c4936c3a43afb5eed97ed88f6ea2957f Mon Sep 17 00:00:00 2001 From: Greyscale Date: Mon, 26 Jul 2010 14:12:02 -0700 Subject: [PATCH] Lowered sv_maxspeed to work around a CS:S bug with spectator. Fixed a rare case where removing weapons didn't work. --- cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.cfg | 4 ++-- src/zr/weapons/weapons.inc | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.cfg b/cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.cfg index 3673abf..6fe64f4 100644 --- a/cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.cfg +++ b/cstrike/cfg/sourcemod/zombiereloaded/zombiereloaded.cfg @@ -12,8 +12,8 @@ // ---------------------------------------------------------------------------- // The max speed of any player in the server (250 is normal speed). This is just a speed limit, and not the real players' speed. -// Default: "2000" -sv_maxspeed 2000 +// Default: "1000" +sv_maxspeed 1000 // Amount of time, in minutes, zombies have to infect all humans. // Default: "5" diff --git a/src/zr/weapons/weapons.inc b/src/zr/weapons/weapons.inc index 7bad287..beb5319 100644 --- a/src/zr/weapons/weapons.inc +++ b/src/zr/weapons/weapons.inc @@ -877,6 +877,7 @@ stock WeaponsRemoveAllClientWeapons(client, bool:weaponsdrop) { // Strip knife. RemovePlayerItem(client, weapons[x]); + RemoveEdict(weapons[x]); continue; } @@ -889,6 +890,7 @@ stock WeaponsRemoveAllClientWeapons(client, bool:weaponsdrop) { // Strip weapon. RemovePlayerItem(client, weapons[x]); + RemoveEdict(weapons[x]); } }