1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00
Files
MetrostroiAddon/lua/weapons/button_presser/cl_init.lua
g_brzhezinskiy 1d05caf866 init
2021-01-02 12:51:45 +03:00

47 lines
755 B
Lua

include("shared.lua")
SWEP.PrintName = "Button presser"
SWEP.Slot = 3
SWEP.SlotPos = 2
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = true
SWEP.HoldType = "normal"
function SWEP:Holster()
return true
end
function SWEP:OnRemove()
end
function SWEP:Initialize()
end
function SWEP:Reload()
end
function SWEP:PrimaryAttack()
if IsFirstTimePredicted() then
end
self:SetNextPrimaryFire( CurTime() + 10 )
end
function SWEP:SecondaryAttack()
self:SetNextSecondaryFire( CurTime() + 0.5 )
end
function SWEP:Deploy()
end
function SWEP:Think()
end
function SWEP:DrawHUD()
if self:GetNW2Int("Type") == 1 then
draw.SimpleText("Current button:"..self:GetNW2String("Name","Unknown"),"CloseCaption_Bold",ScrW()/2, 0,Color(127,255,0),1)
end
end