Remove unused anims, move anims from mirroranim to climbanim and fix for gray screen in vehicle

This commit is contained in:
Jonny_Bro (Nikita) 2023-07-16 21:26:07 +05:00
parent 21826ae01f
commit 2b267e1d7a
32 changed files with 4 additions and 4 deletions

View file

@ -41,7 +41,7 @@ hook.Add("RenderScreenspaceEffects", "BeatrunNoclipBW", function()
local ply = LocalPlayer() local ply = LocalPlayer()
local inp = color ~= 1 local inp = color ~= 1
local noclipping = ply:GetMoveType() == MOVETYPE_NOCLIP and not BuildMode and ply:GetMantle() == 0 and ply:GetClimbing() == 0 and not IsValid(ply:GetLadder()) local noclipping = ply:GetMoveType() == MOVETYPE_NOCLIP and not BuildMode and ply:GetMantle() == 0 and ply:GetClimbing() == 0 and not IsValid(ply:GetLadder()) and not ply:InVehicle()
if noclipping or inp then if noclipping or inp then
tab["$pp_colour_colour"] = color tab["$pp_colour_colour"] = color

View file

@ -41,7 +41,7 @@ hook.Add("SetupMove", "SafetyRoll", SafetyRollThink)
local roll = { local roll = {
followplayer = true, followplayer = true,
animmodelstring = "mirroranim", animmodelstring = "climbanim",
showweapon = true, showweapon = true,
lockang = true, lockang = true,
BodyAnimSpeed = 1.15, BodyAnimSpeed = 1.15,
@ -53,7 +53,7 @@ local roll = {
net.Receive("RollAnimSP", function() net.Receive("RollAnimSP", function()
if net.ReadBool() then if net.ReadBool() then
roll.AnimString = "land" roll.AnimString = "land"
roll.animmodelstring = "mirroranim" roll.animmodelstring = "climbanim"
roll.BodyAnimSpeed = 1 roll.BodyAnimSpeed = 1
elseif net.ReadBool() then elseif net.ReadBool() then
roll.AnimString = "evaderoll" roll.AnimString = "evaderoll"
@ -139,7 +139,7 @@ hook.Add("OnPlayerHitGround", "SafetyRoll", function(ply, water, floater, speed)
ply:SetSafetyRollTime(CurTime() + 0.6) ply:SetSafetyRollTime(CurTime() + 0.6)
roll.AnimString = "land" roll.AnimString = "land"
roll.animmodelstring = "mirroranim" roll.animmodelstring = "climbanim"
roll.usefullbody = true roll.usefullbody = true
else else
land = false land = false