mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-29 05:13:02 +05:00
maybe fixed some issues in mp, need to check
This commit is contained in:
parent
0347a6f6e8
commit
01a45fccde
5 changed files with 50 additions and 11 deletions
|
@ -10,11 +10,14 @@ BodyAnimString = "nil"
|
|||
BodyAnimMDLString = "nil"
|
||||
BodyAnimSpeed = 1
|
||||
bodyanimlastattachang = Angle(0, 0, 0)
|
||||
|
||||
followplayer = true
|
||||
deleteonend = true
|
||||
lockang = false
|
||||
|
||||
CamAddAng = false
|
||||
CamIgnoreAng = false
|
||||
|
||||
-- local BodyAnimPos = Vector(0, 0, 0)
|
||||
-- local BodyAnimAngLerp = Angle(0, 0, 0)
|
||||
-- local DidDraw = false
|
||||
|
@ -24,29 +27,38 @@ local savedeyeangb = Angle(0, 0, 0)
|
|||
-- local bodylockview = false
|
||||
-- local bodyanimdone = false
|
||||
-- local holstertime = 0
|
||||
|
||||
local animmodelstring = ""
|
||||
local showweapon = false
|
||||
local showvm = false
|
||||
local usefullbody = false
|
||||
local ignorez = false
|
||||
local customcycle = false
|
||||
|
||||
deathanim = false
|
||||
|
||||
local allowmove = false
|
||||
local allowedangchange = false
|
||||
local attach, attachId, weapontoidle = nil, nil, nil
|
||||
local smoothend = false
|
||||
local endlerp = 0
|
||||
|
||||
camoffset = Vector()
|
||||
camjoint = "eyes"
|
||||
|
||||
BodyAnimCrouchLerp = 1
|
||||
BodyAnimCrouchLerpZ = 0
|
||||
BodyAnimLimitEase = false
|
||||
|
||||
CamShake = false
|
||||
CamShakeAng = Angle()
|
||||
CamShakeMult = 1
|
||||
|
||||
local lastangy = 0
|
||||
|
||||
viewtiltlerp = Angle()
|
||||
ViewTiltAngle = Angle()
|
||||
|
||||
local BodyAnimStartPos = Vector()
|
||||
local view = {}
|
||||
local justremoved = false
|
||||
|
@ -696,8 +708,6 @@ function BodyAnimCalcView2(ply, pos, angles, fov)
|
|||
end
|
||||
|
||||
hook.Add("CreateMove", "BodyLimitMove", function(cmd)
|
||||
-- local ply = LocalPlayer()
|
||||
|
||||
if IsValid(BodyAnimMDL) and not allowmove then
|
||||
cmd:ClearButtons()
|
||||
cmd:ClearMovement()
|
||||
|
|
|
@ -914,7 +914,6 @@ fbfunctions = {
|
|||
local defaultcamoffset = Vector()
|
||||
|
||||
local playermodelbones = {"ValveBiped.Bip01_L_UpperArm", "ValveBiped.Bip01_R_UpperArm"}
|
||||
|
||||
local fingers = {"ValveBiped.Bip01_L_Finger4", "ValveBiped.Bip01_L_Finger41", "ValveBiped.Bip01_L_Finger3", "ValveBiped.Bip01_L_Finger31", "ValveBiped.Bip01_L_Finger2", "ValveBiped.Bip01_L_Finger21", "ValveBiped.Bip01_L_Finger1", "ValveBiped.Bip01_L_Finger11", "ValveBiped.Bip01_R_Finger4", "ValveBiped.Bip01_R_Finger41", "ValveBiped.Bip01_R_Finger3", "ValveBiped.Bip01_R_Finger31", "ValveBiped.Bip01_R_Finger2", "ValveBiped.Bip01_R_Finger21", "ValveBiped.Bip01_R_Finger1", "ValveBiped.Bip01_R_Finger11"}
|
||||
|
||||
local fingerscustom = {
|
||||
|
@ -1011,7 +1010,6 @@ eventsounds = {
|
|||
}
|
||||
|
||||
local CharaName = "Faith"
|
||||
local CharaLen = #CharaName
|
||||
|
||||
local function BodyEventSounds(anim)
|
||||
local tbl = eventsounds[anim]
|
||||
|
@ -1022,7 +1020,7 @@ local function BodyEventSounds(anim)
|
|||
for k, v in pairs(tbl) do
|
||||
local func = nil
|
||||
|
||||
if v:Left(CharaLen) == CharaName then
|
||||
if v:Left(#CharaName) == CharaName then
|
||||
func = ply.FaithVO
|
||||
else
|
||||
func = ply.EmitSound
|
||||
|
|
|
@ -271,7 +271,12 @@ hook.Add("PostDrawTranslucentRenderables", "GrappleBeam", function()
|
|||
render.DrawBeam(LerpVector(ropelerp, lhandpos - ropedown, rhandpos), lhandpos, 1.5, 0, 1)
|
||||
render.DrawBeam(ropetop, lp:GetGrapplePos(), 1.5, 0, 1)
|
||||
|
||||
-- BodyAnim:SetSequence("grapplecenter")
|
||||
if CLIENT and IsFirstTimePredicted() then
|
||||
BodyAnim:SetSequence("grapplecenter")
|
||||
elseif game.SinglePlayer() then
|
||||
ply:SendLua("BodyAnim:SetSequence('grapplecenter')")
|
||||
end
|
||||
|
||||
ropelerp = math.Approach(ropelerp, 1, FrameTime() * 2)
|
||||
else
|
||||
|
|
|
@ -9,7 +9,13 @@ function DoJumpTurn(lookbehind)
|
|||
VMLegs:Remove()
|
||||
end
|
||||
|
||||
-- BodyAnim:SetSequence("jumpturnfly")
|
||||
if CLIENT and IsFirstTimePredicted() then
|
||||
BodyAnim:SetSequence("jumpturnfly")
|
||||
elseif game.SinglePlayer() then
|
||||
ply:SendLua("BodyAnim:SetSequence('jumpturnfly')")
|
||||
end
|
||||
|
||||
BodyAnimCycle = 0
|
||||
BodyAnimSpeed = 1
|
||||
BodyLimitX = 40
|
||||
|
@ -39,9 +45,19 @@ function DoJumpTurnStand()
|
|||
local activewep = LocalPlayer():GetActiveWeapon()
|
||||
|
||||
if IsValid(activewep) and activewep:GetClass() ~= "runnerhands" then
|
||||
-- BodyAnim:SetSequence("jumpturnlandstandgun")
|
||||
if CLIENT and IsFirstTimePredicted() then
|
||||
BodyAnim:SetSequence("jumpturnlandstandgun")
|
||||
elseif game.SinglePlayer() then
|
||||
ply:SendLua("BodyAnim:SetSequence('jumpturnlandstandgun')")
|
||||
end
|
||||
else
|
||||
-- BodyAnim:SetSequence("jumpturnlandstand")
|
||||
if CLIENT and IsFirstTimePredicted() then
|
||||
BodyAnim:SetSequence("jumpturnlandstand")
|
||||
elseif game.SinglePlayer() then
|
||||
ply:SendLua("BodyAnim:SetSequence('jumpturnlandstand')")
|
||||
end
|
||||
|
||||
ParkourEvent("jumpturnlandstand", LocalPlayer(), game.SinglePlayer())
|
||||
end
|
||||
|
|
|
@ -17,9 +17,19 @@ local function Hardland(jt)
|
|||
end
|
||||
|
||||
DoJumpTurn(jt)
|
||||
-- BodyAnim:SetSequence("jumpturnflyidle")
|
||||
if CLIENT and IsFirstTimePredicted() then
|
||||
BodyAnim:SetSequence("jumpturnflyidle")
|
||||
elseif game.SinglePlayer() then
|
||||
ply:SendLua("BodyAnim:SetSequence('jumpturnflyidle')")
|
||||
end
|
||||
else
|
||||
-- BodyAnim:SetSequence("jumpcoilend")
|
||||
if CLIENT and IsFirstTimePredicted() then
|
||||
BodyAnim:SetSequence("jumpcoilend")
|
||||
elseif game.SinglePlayer() then
|
||||
ply:SendLua("BodyAnim:SetSequence('jumpcoilend')")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue