

if ( SERVER ) then

	AddCSLuaFile( "shared.lua" )
	
end

if ( CLIENT ) then

	SWEP.PrintName			= "IMI Uzi"			
	
	SWEP.Slot				= 2
	SWEP.SlotPos			= 1
	SWEP.IconLetter			= "IMI Uzi"
	SWEP.Category            = "Israel Military Industries Swep Pack"
	
end

SWEP.Base				= "weapon_lee_base2"
SWEP.ViewModelFlip		= false

SWEP.Spawnable			= true
SWEP.AdminSpawnable		= true

SWEP.ViewModel 			= "models/weapons/v_smg_imuzi.mdl"
SWEP.WorldModel 		= "models/weapons/w_smg_imuzi.mdl"
SWEP.MagModel 			= "models/weapons/unloaded/smg_mac10_mag.mdl"

SWEP.Weight				= 3
SWEP.AutoSwitchTo		= true
SWEP.AutoSwitchFrom		= true

SWEP.Primary.Sound			= Sound("Weapon_imuzi.Single")
SWEP.Primary.Silenced 		= Sound( "" )
SWEP.Primary.Recoil			= 0.075
SWEP.Primary.Damage			= 12
SWEP.Primary.NumShots		= 1
SWEP.Primary.Cone			= 0.021
SWEP.Primary.ClipSize		= 32
SWEP.Primary.DefaultClip	= 32
SWEP.Primary.Delay			= 0.1
SWEP.Primary.Mode			= "auto"
SWEP.Primary.Ammo			= "pistol"
SWEP.AvailableFireMode    = {"semi","auto"}

SWEP.Secondary.ClipSize		= -1
SWEP.Secondary.DefaultClip	= -1
SWEP.Secondary.Automatic	= false
SWEP.Secondary.Ammo			= "none"

SWEP.DeltaSpread		= 0.02
SWEP.DeltaRecoil		= 0.03
SWEP.IronSightTime      = 0.15
SWEP.RunSetTime         = 0.6
SWEP.IronSightZoom 		= 1.0

SWEP.WeaponType				= "smg"
SWEP.MuzzleEffect 		= "muzzle_lee_pistol"
SWEP.EjectSmoke		    = true
SWEP.MuzzleSmoke		= true

SWEP.ReloadTable = {}
SWEP.ReloadTable["RemoveClip"] = {}
SWEP.ReloadTable["RemoveClip"].Time = 0.63
SWEP.ReloadTable["RemoveClip"].EmptyTime = 0
SWEP.ReloadTable["RemoveClip"].Cylinder = false
SWEP.ReloadTable["SetClip"] = {}
SWEP.ReloadTable["SetClip"].Time = 1.85
SWEP.ReloadTable["SetClip"].EmptyTime = 0

SWEP.ViewAnimAngleFix = Angle(0,0,10)

SWEP.NewOriginPos = Vector (0, 0, 0)
SWEP.NewOriginAng = Vector (0, 0, 0)

SWEP.IronSightsPos = Vector (-2.9854, 0, 1.5915)
SWEP.IronSightsAng = Vector (0.3643, -0.6727, 1.1426)

SWEP.RunArmOffset = Vector (-0.1994, 0.1106, 2.8345)
SWEP.RunArmAngle = Vector  (-27.5698, 30.4654, 0)