-- Variables that are used on both client and server
SWEP.Gun = ("bb_cssfrag") -- must be the name of your swep but NO CAPITALS!
SWEP.Category				= "CS:S Weapons"
SWEP.Author				= ""
SWEP.Contact				= ""
SWEP.Purpose				= ""
SWEP.Instructions				= ""
SWEP.PrintName				= "Frag Grenade"		-- Weapon name (Shown on HUD)	
SWEP.Slot				= 4				-- Slot in the weapon selection menu
SWEP.SlotPos				= 3			-- Position in the slot
SWEP.DrawAmmo				= true		-- Should draw the default HL2 ammo counter
SWEP.DrawWeaponInfoBox			= false		-- Should draw the weapon info box
SWEP.BounceWeaponIcon   		= 	false	-- Should the weapon icon bounce?
SWEP.DrawCrosshair			= false		-- set false if you want no crosshair
SWEP.Weight				= 2			-- rank relative ot other weapons. bigger is better
SWEP.AutoSwitchTo			= true		-- Auto switch to if we pick it up
SWEP.AutoSwitchFrom			= true		-- Auto switch from if you pick up a better weapon
SWEP.HoldType 				= "grenade"		-- how others view you carrying the weapon
-- normal melee melee2 fist knife smg ar2 pistol rpg physgun grenade shotgun crossbow slam passive 
-- you're mostly going to use ar2, smg, shotgun or pistol. rpg and ar2 make for good sniper rifles

SWEP.ViewModelFOV			= 70
SWEP.ViewModelFlip			= true
SWEP.ViewModel				= "models/weapons/v_eq_fraggrenade.mdl"	-- Weapon view model
SWEP.WorldModel				= "models/weapons/w_eq_fraggrenade.mdl"	-- Weapon world model
SWEP.ShowWorldModel			= true
SWEP.Base				= "bobs_nade_base"
SWEP.Spawnable				= true
SWEP.AdminSpawnable			= true

SWEP.Primary.RPM				= 30		-- This is in Rounds Per Minute
SWEP.Primary.ClipSize			= 1		-- Size of a clip
SWEP.Primary.DefaultClip		= 1		-- Bullets you start with
SWEP.Primary.Automatic			= false		-- Automatic = true; Semi Auto = false
SWEP.Primary.Ammo			= "Grenade"				
-- pistol, 357, smg1, ar2, buckshot, slam, SniperPenetratedRound, AirboatGun
-- Pistol, buckshot, and slam always ricochet. Use AirboatGun for a metal peircing shotgun slug

SWEP.Primary.Round 			= ("bb_throwncssfrag")	--NAME OF ENTITY GOES HERE

-- enter bone mod and other custom stuff below. Irons aren't used for grenades
if GetConVar("default_css_frag") == nil then
		CreateConVar("default_css_frag", "1", {  FCVAR_ARCHIVE }, "Use default css weapon? Restart for this to take effect.")
end

if not(file.Exists( "resource/cstrike_english.txt", "GAME" )) 
 or not (GetConVar("default_css_frag"):GetBool()) then 
	SWEP.ViewModel = "models/weapons/2_eq_fraggrenade.mdl"	-- Weapon view model
	SWEP.ViewModelFlip	= false
end