mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 21:33:02 +05:00
consistent ~=
This commit is contained in:
parent
f4e1138472
commit
0df8bb64e4
1 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ hook.Add("SetupMove", "Grapple", function(ply, mv, cmd)
|
||||||
eyepos.z = eyepos.z + 64
|
eyepos.z = eyepos.z + 64
|
||||||
|
|
||||||
if (not ply:Alive() or mv:KeyPressed(IN_JUMP) and not grappled and not ply:OnGround() or ply:GetClimbing() ~= 0 or ply:GetMantle() ~= 0 or not usingrh) or (ent == NULL or ent == nil) then
|
if (not ply:Alive() or mv:KeyPressed(IN_JUMP) and not grappled and not ply:OnGround() or ply:GetClimbing() ~= 0 or ply:GetMantle() ~= 0 or not usingrh) or (ent == NULL or ent == nil) then
|
||||||
if IsValid(ent) and ent != NULL then
|
if IsValid(ent) and ent ~= NULL then
|
||||||
ent:SetNW2Vector("glastpos", nil)
|
ent:SetNW2Vector("glastpos", nil)
|
||||||
ent:SetNW2Vector("gpos", nil)
|
ent:SetNW2Vector("gpos", nil)
|
||||||
end
|
end
|
||||||
|
@ -139,7 +139,7 @@ hook.Add("SetupMove", "Grapple", function(ply, mv, cmd)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if ent:GetClass() != "worldspawn" then
|
if ent:GetClass() ~= "worldspawn" then
|
||||||
ent:SetNW2Vector("glastpos", ent:GetNW2Vector("gpos", ent:GetPos()))
|
ent:SetNW2Vector("glastpos", ent:GetNW2Vector("gpos", ent:GetPos()))
|
||||||
ent:SetNW2Vector("gpos", ent:GetPos())
|
ent:SetNW2Vector("gpos", ent:GetPos())
|
||||||
ply:SetGrapplePos(ply:GetGrapplePos() + (ent:GetNW2Vector("gpos") - ent:GetNW2Vector("glastpos")))
|
ply:SetGrapplePos(ply:GetGrapplePos() + (ent:GetNW2Vector("gpos") - ent:GetNW2Vector("glastpos")))
|
||||||
|
|
Loading…
Reference in a new issue