AddCSLuaFile() if CLIENT then SWEP.PrintName = "Silent Fox" SWEP.Slot = 6 SWEP.Icon = "vgui/ttt/icon_tmp" SWEP.IconLetter = "d" end -- Always derive from weapon_tttbase SWEP.Base = "weapon_tttbase" -- Standard GMod values SWEP.HoldType = "ar2" SWEP.Primary.Ammo = "Pistol" SWEP.Primary.Delay = 0.07 SWEP.Primary.Recoil = 0.6 SWEP.Primary.Cone = 0.017 SWEP.Primary.Damage = 13 SWEP.Primary.Automatic = true SWEP.Primary.ClipSize = 35 SWEP.Primary.ClipMax = 60 SWEP.Primary.DefaultClip = 35 SWEP.Primary.Sound = Sound( "Weapon_TMP.Single" ) -- Model properties SWEP.UseHands = true SWEP.ViewModelFlip = false SWEP.ViewModelFOV = 64 SWEP.ViewModel = Model( "models/weapons/cstrike/c_smg_tmp.mdl" ) SWEP.WorldModel = Model( "models/weapons/w_smg_tmp.mdl" ) SWEP.IronSightsPos = Vector ( -6.896, -2.822, 2.134 ) SWEP.IronSightsAng = Vector ( 2.253, 0.209, 0.07 ) -- TTT config values -- Kind specifies the category this weapon is in. Players can only carry one of -- each. Can be: WEAPON_... MELEE, PISTOL, HEAVY, NADE, CARRY, EQUIP1, EQUIP2 or ROLE. -- Matching SWEP.Slot values: 0 1 2 3 4 6 7 8 SWEP.Kind = WEAPON_EQUIP1 -- If AutoSpawnable is true and SWEP.Kind is not WEAPON_EQUIP1/2, then this gun can -- be spawned as a random weapon. SWEP.AutoSpawnable = false -- The AmmoEnt is the ammo entity that can be picked up when carrying this gun. SWEP.AmmoEnt = "item_ammo_pistol_ttt" -- CanBuy is a table of ROLE_* entries like ROLE_TRAITOR and ROLE_DETECTIVE. If -- a role is in this table, those players can buy this. SWEP.CanBuy = { ROLE_TRAITOR } -- InLoadoutFor is a table of ROLE_* entries that specifies which roles should -- receive this weapon as soon as the round starts. In this case, none. SWEP.InLoadoutFor = { nil } -- If LimitedStock is true, you can only buy one per round. SWEP.LimitedStock = true -- If AllowDrop is false, players can't manually drop the gun with Q SWEP.AllowDrop = true -- If IsSilent is true, victims will not scream upon death. SWEP.IsSilent = true -- If NoSights is true, the weapon won't have ironsights SWEP.NoSights = false function SWEP:Deploy() self:SendWeaponAnim( ACT_VM_DRAW_SILENCED ) return true end -- Equipment menu information is only needed on the client if CLIENT then -- Text shown in the equip menu SWEP.EquipMenuData = { type = "Weapon", desc = "Low-noise SMG that uses normal 9mm ammo.\n\nVictims will not scream when killed." } end