Add piece sign anim (fall backwards + LMB), fix shapedrawer error on equip

This commit is contained in:
Jonny_Bro (Nikita) 2023-09-01 21:48:50 +05:00
parent 7d4c3c918a
commit 9f2733b894
18 changed files with 21 additions and 7 deletions

View file

@ -419,7 +419,17 @@ function SWEP:PrimaryAttack()
return
end
if not ply:OnGround() or ply:GetSliding() or ply:GetGrappling() or ply:GetWallrun() ~= 0 then return end
if ply:GetJumpTurn() and not ply:OnGround() then
if CLIENT and IsFirstTimePredicted() then
ArmInterrupt(jumpturnflypiecesign)
elseif game.SinglePlayer() then
ply:SendLua("ArmInterrupt('jumpturnflypiecesign')")
end
return
end
if not ply:OnGround() or ply:GetSliding() or ply:GetGrappling() or ply:GetWallrun() ~= 0 or ply:GetJumpTurn() then return end
local curseq = self:GetSequence()
local infall = curseq == 19

View file

@ -42,12 +42,11 @@ function SWEP:Deploy()
self:CallOnClient("Deploy")
self:SetHoldType(self.HoldType)
self:SendWeaponAnim(ACT_VM_DRAW)
self.points = {}
self.center = Vector()
end
function SWEP:Initialize()
self.points = {}
self.center = Vector()
end
function SWEP:Think()
@ -75,7 +74,6 @@ function SWEP:PrimaryAttack()
end
end
function SWEP:SecondaryAttack()
self:CallOnClient("SecondaryAttack")

View file

@ -319,7 +319,8 @@ local arminterrupts = {
punchright = true,
doorbash = true,
punchmid = true,
punchleft = true
punchleft = true,
jumpturnflypiecesign = true
}
local transitionanims = {
@ -437,7 +438,12 @@ local worldarm = {
ladderclimbuprighthand = true,
ladderclimbhangstart = true,
snatchscar = true,
jumpcoil = true
jumpcoil = true,
jumpturnlandidle = true,
wallrunright = true,
wallrunleft = true,
wallrunrightstart = true,
wallrunleftstart = true
}
local ignorezarm = {