mirror of
https://github.com/JonnyBro/beatrun.git
synced 2025-02-07 15:24:10 +05:00
remove Beatrun_MinimalVM (doesn't work)
This commit is contained in:
parent
47826a9d00
commit
ea0ae41bfc
2 changed files with 3 additions and 24 deletions
|
@ -1,9 +1,7 @@
|
||||||
local cvarwindsound
|
local windsound
|
||||||
local minimalvm
|
|
||||||
|
|
||||||
if CLIENT then
|
if CLIENT then
|
||||||
minimalvm = CreateClientConVar("Beatrun_MinimalVM", 1, true, true, "Lowers the running viewmodel", 0, 1)
|
windsound = CreateClientConVar("Beatrun_Wind", 1, true, false, "Wind noises", 0, 1)
|
||||||
cvarwindsound = CreateClientConVar("Beatrun_Wind", 1, true, false, "Wind noises", 0, 1)
|
|
||||||
|
|
||||||
SWEP.PrintName = "Runner Hands"
|
SWEP.PrintName = "Runner Hands"
|
||||||
SWEP.Slot = 0
|
SWEP.Slot = 0
|
||||||
|
@ -86,22 +84,6 @@ local oddseq = {
|
||||||
}
|
}
|
||||||
|
|
||||||
function SWEP:GetViewModelPosition(pos, ang)
|
function SWEP:GetViewModelPosition(pos, ang)
|
||||||
if minimalvm:GetBool() then
|
|
||||||
if not self.posz then
|
|
||||||
self.posz = pos.z
|
|
||||||
end
|
|
||||||
|
|
||||||
local seq = self:GetSequence()
|
|
||||||
|
|
||||||
if runseq[seq] then
|
|
||||||
self.posz = Lerp(10 * FrameTime(), self.posz, -2)
|
|
||||||
else
|
|
||||||
self.posz = Lerp(10 * FrameTime(), self.posz, 0)
|
|
||||||
end
|
|
||||||
|
|
||||||
pos.z = pos.z + self.posz
|
|
||||||
end
|
|
||||||
|
|
||||||
if oddseq[self:GetSequence()] then return pos, ang end
|
if oddseq[self:GetSequence()] then return pos, ang end
|
||||||
|
|
||||||
self.BobScale = 0
|
self.BobScale = 0
|
||||||
|
@ -296,7 +278,7 @@ function SWEP:Think()
|
||||||
self.RunWind2 = CreateSound(self, "runwind.wav")
|
self.RunWind2 = CreateSound(self, "runwind.wav")
|
||||||
end
|
end
|
||||||
|
|
||||||
if velocity > 250 and cvarwindsound:GetBool() then
|
if velocity > 250 and windsound:GetBool() then
|
||||||
self.RunWind1:Play()
|
self.RunWind1:Play()
|
||||||
self.RunWind2:Play()
|
self.RunWind2:Play()
|
||||||
|
|
||||||
|
|
|
@ -159,9 +159,6 @@ hook.Add("PopulateToolMenu", "Beatrun_ToolMenu", function()
|
||||||
panel:CheckBox("Floating XP", "Beatrun_HUDXP")
|
panel:CheckBox("Floating XP", "Beatrun_HUDXP")
|
||||||
panel:ControlHelp("Show total XP near your nickname")
|
panel:ControlHelp("Show total XP near your nickname")
|
||||||
|
|
||||||
panel:CheckBox("Lower Viewmodel", "Beatrun_MinimalVM")
|
|
||||||
panel:ControlHelp("Lowers the running viewmodel")
|
|
||||||
|
|
||||||
panel:CheckBox("Wind", "Beatrun_Wind")
|
panel:CheckBox("Wind", "Beatrun_Wind")
|
||||||
panel:ControlHelp("Wind noises when running")
|
panel:ControlHelp("Wind noises when running")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue