Fixed spawn protection not restoring class attributes.
This commit is contained in:
parent
55876fe2ff
commit
fa133857a9
@ -78,7 +78,8 @@ SpawnProtectOnClientSpawn(client)
|
|||||||
bInfectImmune[client][INFECT_TYPE_NORMAL] = true;
|
bInfectImmune[client][INFECT_TYPE_NORMAL] = true;
|
||||||
|
|
||||||
// Set improved attributes
|
// Set improved attributes
|
||||||
// (Move to cvar?)
|
// TODO: Move to cvar.
|
||||||
|
// (Set weapon alpha too?)
|
||||||
SetPlayerAlpha(client, 0);
|
SetPlayerAlpha(client, 0);
|
||||||
SetPlayerSpeed(client, 600.0);
|
SetPlayerSpeed(client, 600.0);
|
||||||
|
|
||||||
@ -150,9 +151,8 @@ public Action:SpawnProtectTimer(Handle:timer, any:client)
|
|||||||
ZR_HudHint(client, "Spawn protection end");
|
ZR_HudHint(client, "Spawn protection end");
|
||||||
|
|
||||||
// Fix attributes.
|
// Fix attributes.
|
||||||
// TODO: Set class attributes.
|
SetPlayerAlpha(client, ClassGetAlphaInitial(client));
|
||||||
SetPlayerAlpha(client, 255);
|
SetPlayerSpeed(client, ClassGetSpeed(client));
|
||||||
SetPlayerSpeed(client, 300.0);
|
|
||||||
|
|
||||||
// Clear timer handle.
|
// Clear timer handle.
|
||||||
tSpawnProtect[client] = INVALID_HANDLE;
|
tSpawnProtect[client] = INVALID_HANDLE;
|
||||||
|
Loading…
Reference in New Issue
Block a user