mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
vm movement for tpik (sighting, blindfire, sprint)
This commit is contained in:
parent
38cf1b4a61
commit
60925a48db
@ -3,8 +3,9 @@
|
||||
function SWEP:ShouldTPIK()
|
||||
if render.GetDXLevel() < 90 then return false end
|
||||
if !self:GetOwner():IsPlayer() then return false end
|
||||
if !self.MirrorVMWM then return end
|
||||
if self:GetSafe() then return false end
|
||||
if self:GetBlindFireAmount() > 0 then return false end
|
||||
-- if self:GetBlindFireAmount() > 0 then return false end
|
||||
if !self:GetOwner():ShouldDrawLocalPlayer() then return false end
|
||||
-- if !GetConVar("arc9_tpik"):GetBool() then return false end
|
||||
-- return LocalPlayer() == self:GetOwner()
|
||||
@ -14,7 +15,6 @@ end
|
||||
|
||||
function SWEP:DoTPIK()
|
||||
if !self:ShouldTPIK() then return end
|
||||
if !self.MirrorVMWM then return end
|
||||
|
||||
-- local vm = self:GetVM()
|
||||
local wm = self:GetWM()
|
||||
@ -25,7 +25,7 @@ function SWEP:DoTPIK()
|
||||
|
||||
local nolefthand = false
|
||||
|
||||
if self:GetHoldType() == "slam" then
|
||||
if self:GetHoldType() == "slam" or self:GetHoldType() == "magic" then
|
||||
nolefthand = true
|
||||
end
|
||||
|
||||
|
@ -395,6 +395,13 @@ function SWEP:GetViewModelPosition(pos, ang)
|
||||
|
||||
self.LastViewModelPos = pos
|
||||
self.LastViewModelAng = ang
|
||||
|
||||
local wm = self:GetWM()
|
||||
|
||||
if self:ShouldTPIK() and IsValid(wm) and curvedcustomizedelta == 0 then
|
||||
wm.slottbl.Pos = self.WorldModelOffset.Pos - self.ViewModelPos * Vector(-1, -1, 1)
|
||||
wm.slottbl.Ang = self.WorldModelOffset.Ang + Angle(self.ViewModelAng.p, -self.ViewModelAng.y, self.ViewModelAng.r)
|
||||
end
|
||||
|
||||
return pos, ang
|
||||
end
|
||||
|
@ -60,6 +60,8 @@ ValveBiped.Bip01_R_Finger02
|
||||
*/
|
||||
|
||||
function SWEP:ToggleBoneMods(on, dir)
|
||||
if true then return end -- total shit
|
||||
|
||||
if on then
|
||||
if dir < 0 then
|
||||
for i, k in pairs(self:GetValue("BlindFireLeftBoneMods")) do
|
||||
|
Loading…
Reference in New Issue
Block a user