dobrograd-13-06-2022/garrysmod/addons/gmod-sweps/lua/weapons/dbg_cigarette/shared.lua
Jonny_Bro (Nikita) e4d5311906 first commit
2023-11-16 15:01:19 +05:00

51 lines
1.2 KiB
Lua

if SERVER then
AddCSLuaFile()
end
SWEP.Base = "weapon_base"
SWEP.Category = L.dobrograd
SWEP.PrintName = L.cigarette
SWEP.Instructions = L.instruction_cigarette
SWEP.Slot = 1
SWEP.SlotPos = 9
SWEP.DrawAmmo = false
SWEP.DrawCrosshair = true
SWEP.ViewModelFlip = false
SWEP.ViewModelFOV = 62
SWEP.ViewModel = "models/weapons/v_crowbar.mdl"
SWEP.WorldModel = "models/phycigold.mdl"
SWEP.HoldType = "normal"
SWEP.UseHands = true
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
SWEP.Spawnable = true
SWEP.AdminOnly = true
SWEP.Author = ""
SWEP.Contact = ""
SWEP.Purpose = "Взять сигарету в правую руку"
SWEP.Instructions = "ЛКМ - затянуться\nПКМ - выбросить"
SWEP.UseHands = true
SWEP.Primary.ClipSize = -1
SWEP.Primary.DefaultClip = 0
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = ""
SWEP.Secondary.ClipSize = -1
SWEP.Secondary.DefaultClip = 0
SWEP.Secondary.Automatic = false
SWEP.Secondary.Ammo = ""
function SWEP:Initialize()
self:SetHoldType(self.HoldType)
self.dieTime = CurTime() + 360
end
function SWEP:Deploy()
self:SetNextPrimaryFire(CurTime() + 0.5)
self:SetNextSecondaryFire(CurTime() + 0.5)
end