mirror of
https://github.com/CapsAdmin/wowozela.git
synced 2025-03-04 03:13:27 -05:00
This doesn't need to run serverside
This commit is contained in:
parent
05a0f5ed60
commit
f6977297db
@ -621,12 +621,11 @@ do -- sample meta
|
||||
end
|
||||
|
||||
self.WasPlaying = true
|
||||
if CLIENT then
|
||||
local wep = self.Player:GetActiveWeapon()
|
||||
local looping = IsValid(wep) and wep.GetLooping and wep:GetLooping()
|
||||
self:SetLooping(looping)
|
||||
end
|
||||
|
||||
local wep = self.Player:GetActiveWeapon()
|
||||
local looping = IsValid(wep) and wep.GetLooping and wep:GetLooping()
|
||||
|
||||
self:SetLooping(looping)
|
||||
self:SetPitch(self:GetPlayerPitch())
|
||||
|
||||
if self:IsKeyDown(IN_ATTACK) or self:IsKeyDown(IN_ATTACK2) then
|
||||
@ -774,12 +773,12 @@ do -- hooks
|
||||
if not IsValid(sampler.Player) then
|
||||
sampler:Destroy()
|
||||
wowozela.Samplers[k] = nil
|
||||
elseif not sampler:CanPlay() then
|
||||
elseif not sampler:CanPlay() and CLIENT then
|
||||
sampler:StopPlaying()
|
||||
end
|
||||
end
|
||||
end
|
||||
hook.Add("Think", "wowozela_think", wowozela.Think)
|
||||
if CLIENT then hook.Add("Think", "wowozela_think", wowozela.Think) end
|
||||
timer.Create("WowozelaSlowThink", 0.5, 0, wowozela.SlowThink)
|
||||
|
||||
--[=[function wowozela.Draw()
|
||||
|
Loading…
Reference in New Issue
Block a user