From fa133857a900f848b36a81db4a362fa5aa2d130e Mon Sep 17 00:00:00 2001 From: richard Date: Mon, 27 Apr 2009 20:54:06 +0200 Subject: [PATCH] Fixed spawn protection not restoring class attributes. --- src/zr/spawnprotect.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/zr/spawnprotect.inc b/src/zr/spawnprotect.inc index 89e4929..fbc5d90 100644 --- a/src/zr/spawnprotect.inc +++ b/src/zr/spawnprotect.inc @@ -78,7 +78,8 @@ SpawnProtectOnClientSpawn(client) bInfectImmune[client][INFECT_TYPE_NORMAL] = true; // Set improved attributes - // (Move to cvar?) + // TODO: Move to cvar. + // (Set weapon alpha too?) SetPlayerAlpha(client, 0); SetPlayerSpeed(client, 600.0); @@ -150,9 +151,8 @@ public Action:SpawnProtectTimer(Handle:timer, any:client) ZR_HudHint(client, "Spawn protection end"); // Fix attributes. - // TODO: Set class attributes. - SetPlayerAlpha(client, 255); - SetPlayerSpeed(client, 300.0); + SetPlayerAlpha(client, ClassGetAlphaInitial(client)); + SetPlayerSpeed(client, ClassGetSpeed(client)); // Clear timer handle. tSpawnProtect[client] = INVALID_HANDLE;