if SERVER then
AddCSLuaFile( "shared.lua" )
end
SWEP.HoldType = "ar2"
if CLIENT then
SWEP.PrintName = "FAMAS"
SWEP.Author = "Evil"
SWEP.Slot = 6
SWEP.SlotPos = 1
SWEP.EquipMenuData = {
type = "Weapon",
desc = "Semi-automatic. 9MM ammo."
};
end
SWEP.ViewModelFlip = false
SWEP.Base = "weapon_tttbase"
SWEP.Spawnable = true
SWEP.AdminSpawnable = true
SWEP.Kind = WEAPON_EQUIP
SWEP.AmmoEnt = "item_ammo_pistol_ttt"
SWEP.Icon = "vgui/ttt/icon_famas"
SWEP.CanBuy = { ROLE_DETECTIVE }
SWEP.NoSights = true
if SERVER then
resource.AddFile("VGUI/ttt/icon_famas.vmt")
end
SWEP.Primary.Delay = 0.14
SWEP.Primary.Recoil = 0.5
SWEP.Primary.Automatic = false
SWEP.Primary.Ammo = "pistol"
SWEP.Primary.Damage = 23
SWEP.Primary.Cone = 0.025
SWEP.Primary.ClipSize = 10
SWEP.Primary.ClipMax = 30-- keep mirrored to ammo
SWEP.Primary.DefaultClip = 20
SWEP.AutoSpawnable = true
SWEP.ViewModel = "models/weapons/v_rif_famas.mdl"
SWEP.WorldModel = "models/weapons/w_rif_famas.mdl"
SWEP.Primary.Sound = Sound( "Weapon_FAMAS.Single" )
Could anyone be of assistance on this code? I'm not sure why but it does not work.