From c701cb5bf2d815b731fa33fe69ee09ebb644c944 Mon Sep 17 00:00:00 2001 From: Arthur Geron Date: Thu, 11 Apr 2019 13:57:29 -0300 Subject: [PATCH] Fixed players not being able to phase when stuck --- gamemodes/zombiesurvival/gamemode/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/zombiesurvival/gamemode/init.lua b/gamemodes/zombiesurvival/gamemode/init.lua index 37ee6e0..e3ee919 100644 --- a/gamemodes/zombiesurvival/gamemode/init.lua +++ b/gamemodes/zombiesurvival/gamemode/init.lua @@ -3295,7 +3295,7 @@ function GM:KeyPress(pl, key) else local plvel = pl:GetVelocity() if pl:GetPhysicsObject():IsPenetrating() then - if plvel == vector_origin then + if (plvel.x == 0 and plvel.y == 0 and (plvel.z == -4.5 or plvel.z == 0)) then pl.LastGhostFailureVelocity = nil pl:SetBarricadeGhosting(true) else