mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 05:13:02 +05:00
remove trailing whitespaces
This commit is contained in:
parent
53d03f2423
commit
9393b34d1e
1 changed files with 4 additions and 3 deletions
|
@ -281,15 +281,16 @@ hook.Add("SetupMove", "Melee", function(ply, mv, cmd)
|
||||||
elseif kickglitch:GetBool() and not old_kickglitch:GetBool() then
|
elseif kickglitch:GetBool() and not old_kickglitch:GetBool() then
|
||||||
if SERVER then
|
if SERVER then
|
||||||
local platform = ents.Create("prop_physics")
|
local platform = ents.Create("prop_physics")
|
||||||
local pos = ply:GetPos()
|
|
||||||
|
|
||||||
|
local pos = ply:GetPos()
|
||||||
pos.z = pos.z - 8
|
pos.z = pos.z - 8
|
||||||
|
|
||||||
platform:SetModel("models/hunter/plates/plate1x1.mdl")
|
platform:SetModel("models/hunter/plates/plate1x1.mdl")
|
||||||
platform:SetPos(pos)
|
platform:SetPos(pos)
|
||||||
platform:SetColor(Color(0,0,0,0))
|
platform:SetColor(Color(0, 0, 0, 0))
|
||||||
platform:SetRenderMode(RENDERMODE_TRANSCOLOR)
|
platform:SetRenderMode(RENDERMODE_TRANSCOLOR)
|
||||||
platform:Spawn()
|
platform:Spawn()
|
||||||
|
|
||||||
local phys = platform:GetPhysicsObject()
|
local phys = platform:GetPhysicsObject()
|
||||||
phys:EnableMotion(false)
|
phys:EnableMotion(false)
|
||||||
|
|
||||||
|
@ -302,7 +303,7 @@ hook.Add("SetupMove", "Melee", function(ply, mv, cmd)
|
||||||
|
|
||||||
if ply:GetMeleeDelay() < CurTime() and ply:GetMelee() ~= 0 then
|
if ply:GetMeleeDelay() < CurTime() and ply:GetMelee() ~= 0 then
|
||||||
ply:SetMeleeTime(0)
|
ply:SetMeleeTime(0)
|
||||||
ply:SetMelee(0)
|
ply:SetMelee(0)
|
||||||
end
|
end
|
||||||
|
|
||||||
if KeyMelee(ply, mv) and ply:GetMeleeDelay() < CurTime() and ply:GetMeleeTime() == 0 and not ply:GetCrouchJump() and not ply:GetJumpTurn() and ply:GetClimbing() == 0 and ply:GetMantle() == 0 then
|
if KeyMelee(ply, mv) and ply:GetMeleeDelay() < CurTime() and ply:GetMeleeTime() == 0 and not ply:GetCrouchJump() and not ply:GetJumpTurn() and ply:GetClimbing() == 0 and ply:GetMantle() == 0 then
|
||||||
|
|
Loading…
Reference in a new issue