Fixed anti-stuck not re-solidifying (for good)

This commit is contained in:
Greyscale 2009-06-16 15:29:42 -07:00
parent ec231ba66a
commit cfd50d8882

View File

@ -37,7 +37,7 @@
/** /**
* @section Offsets relating to player hull dimensions. * @section Offsets relating to player hull dimensions.
*/ */
#define ANTISTICK_PLAYER_HULL_XY_OFFSET 33 #define ANTISTICK_PLAYER_HULL_XY_OFFSET 32
#define ANTISTICK_PLAYER_HULL_Z_OFFSET 12 #define ANTISTICK_PLAYER_HULL_Z_OFFSET 12
#define ANTISTICK_PLAYER_HULL_STACK_OFFSET 14 #define ANTISTICK_PLAYER_HULL_STACK_OFFSET 14
/** /**
@ -192,7 +192,7 @@ public Action:AntiStickTimer(Handle:timer)
public Action:AntiStickSolidify(Handle:timer, any:client) public Action:AntiStickSolidify(Handle:timer, any:client)
{ {
// Validate player is in-game, alive, and is being unstuck. // Validate player is in-game, alive, and is being unstuck.
if (!IsClientInGame(client) || !IsPlayerAlive(client) || AntiStickClientCollisionGroup(client, false)) if (!IsClientInGame(client) || !IsPlayerAlive(client) || AntiStickClientCollisionGroup(client, false) == ANTISTICK_COLLISIONS_ON)
{ {
return Plugin_Stop; return Plugin_Stop;
} }