mirror of
https://github.com/JonnyBro/beatrun.git
synced 2025-01-31 12:07:27 +05:00
update anims lol
This commit is contained in:
parent
889b8da9a6
commit
982c1d25d3
12 changed files with 5 additions and 24 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -6,7 +6,7 @@ if SERVER then
|
||||||
local spawn = {"PlayerGiveSWEP", "PlayerSpawnEffect", "PlayerSpawnNPC", "PlayerSpawnObject", "PlayerSpawnProp", "PlayerSpawnRagdoll", "PlayerSpawnSENT", "PlayerSpawnSWEP", "PlayerSpawnVehicle"}
|
local spawn = {"PlayerGiveSWEP", "PlayerSpawnEffect", "PlayerSpawnNPC", "PlayerSpawnObject", "PlayerSpawnProp", "PlayerSpawnRagdoll", "PlayerSpawnSENT", "PlayerSpawnSWEP", "PlayerSpawnVehicle"}
|
||||||
|
|
||||||
local function BlockSpawn(ply)
|
local function BlockSpawn(ply)
|
||||||
if not ply:IsAdmin() and not allowPropSpawn:GetBool() then return false end
|
if ply:IsAdmin() or allowPropSpawn:GetBool() then return true end
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, v in ipairs(spawn) do
|
for _, v in ipairs(spawn) do
|
||||||
|
|
|
@ -60,11 +60,7 @@ net.Receive("RollAnimSP", function()
|
||||||
local ply = LocalPlayer()
|
local ply = LocalPlayer()
|
||||||
|
|
||||||
if net.ReadBool() then
|
if net.ReadBool() then
|
||||||
if ply:UsingRH() then
|
roll.AnimString = ply:UsingRH() and "land" or "landgun"
|
||||||
roll.AnimString = "land"
|
|
||||||
else
|
|
||||||
roll.AnimString = "landgun"
|
|
||||||
end
|
|
||||||
roll.animmodelstring = "climbanim"
|
roll.animmodelstring = "climbanim"
|
||||||
roll.BodyAnimSpeed = 1
|
roll.BodyAnimSpeed = 1
|
||||||
elseif net.ReadBool() then
|
elseif net.ReadBool() then
|
||||||
|
@ -72,12 +68,7 @@ net.Receive("RollAnimSP", function()
|
||||||
roll.animmodelstring = "climbanim"
|
roll.animmodelstring = "climbanim"
|
||||||
roll.BodyAnimSpeed = 1.5
|
roll.BodyAnimSpeed = 1.5
|
||||||
else
|
else
|
||||||
if ply:UsingRH() then
|
roll.AnimString = ply:UsingRH() and "meroll" or "merollgun"
|
||||||
roll.AnimString = "meroll"
|
|
||||||
else
|
|
||||||
roll.AnimString = "merollgun"
|
|
||||||
end
|
|
||||||
|
|
||||||
roll.animmodelstring = "climbanim"
|
roll.animmodelstring = "climbanim"
|
||||||
roll.BodyAnimSpeed = 1.15
|
roll.BodyAnimSpeed = 1.15
|
||||||
end
|
end
|
||||||
|
@ -167,12 +158,7 @@ hook.Add("OnPlayerHitGround", "SafetyRoll", function(ply, water, floater, speed)
|
||||||
ply:SetSafetyRollAng(landang)
|
ply:SetSafetyRollAng(landang)
|
||||||
ply:SetSafetyRollTime(CurTime() + 0.6)
|
ply:SetSafetyRollTime(CurTime() + 0.6)
|
||||||
|
|
||||||
if ply:UsingRH() then
|
roll.AnimString = ply:UsingRH() and "land" or "landgun"
|
||||||
roll.AnimString = "land"
|
|
||||||
else
|
|
||||||
roll.AnimString = "landgun"
|
|
||||||
end
|
|
||||||
|
|
||||||
roll.animmodelstring = "climbanim"
|
roll.animmodelstring = "climbanim"
|
||||||
roll.usefullbody = true
|
roll.usefullbody = true
|
||||||
else
|
else
|
||||||
|
@ -181,12 +167,7 @@ hook.Add("OnPlayerHitGround", "SafetyRoll", function(ply, water, floater, speed)
|
||||||
ply:SetSafetyRollAng(ang)
|
ply:SetSafetyRollAng(ang)
|
||||||
ply:SetSafetyRollTime(CurTime() + 1.05)
|
ply:SetSafetyRollTime(CurTime() + 1.05)
|
||||||
|
|
||||||
if ply:UsingRH() then
|
roll.AnimString = ply:UsingRH() and "meroll" or "merollgun"
|
||||||
roll.AnimString = "meroll"
|
|
||||||
else
|
|
||||||
roll.AnimString = "merollgun"
|
|
||||||
end
|
|
||||||
|
|
||||||
roll.animmodelstring = "climbanim"
|
roll.animmodelstring = "climbanim"
|
||||||
roll.usefullbody = false
|
roll.usefullbody = false
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue