zombiesurvival-evolved/gamemodes/zombiesurvival/entities/weapons/weapon_zs_base/init.lua
2014-10-01 20:49:54 -04:00

15 lines
369 B
Lua

AddCSLuaFile("cl_init.lua")
AddCSLuaFile("shared.lua")
AddCSLuaFile("animations.lua")
include("shared.lua")
function SWEP:Think()
if self.IdleAnimation and self.IdleAnimation <= CurTime() then
self.IdleAnimation = nil
self:SendWeaponAnim(ACT_VM_IDLE)
end
if self:GetIronsights() and not self.Owner:KeyDown(IN_ATTACK2) then
self:SetIronsights(false)
end
end