zombiesurvival-evolved/gamemodes/zombiesurvival/entities/weapons/weapon_map_base/cl_init.lua
William Moodhe e9da54c2f9 ZS updates for 2014-2018
Too many changes to list.
2018-05-01 18:32:59 -04:00

21 lines
625 B
Lua

include('shared.lua')
SWEP.Slot = -1
SWEP.SlotPos = -1
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = true
SWEP.DrawWeaponInfoBox = false
local glowmat = Material("sprites/glow04_noz")
function SWEP:DrawWorldModel()
local owner = self:GetOwner()
if owner:IsValid() then return end
local pos = self:GetPos()
local col = self:GetClass() == "weapon_knife" and Color(0, 255, 0, 200) or Color(255, 125, 63, 200)
render.SetMaterial(glowmat)
render.DrawSprite(pos, math.abs(30 + 15 * math.sin(RealTime() * 7 + 1.5)), math.abs(30 + 15 * math.sin(RealTime() * 7)), col)
end
SWEP.DrawWorldModelTranslucent = SWEP.DrawWorldModel