

if ( SERVER ) then

	AddCSLuaFile( "shared.lua" )
	
end

if ( CLIENT ) then

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

SWEP.Base				= "weapon_lee_base2"

SWEP.Spawnable			= true
SWEP.AdminSpawnable		= true

SWEP.ViewModel 			= "models/weapons/v_rif_imigalil.mdl"
SWEP.WorldModel 		= "models/weapons/w_rif_imigalil.mdl"
SWEP.MagModel 			= "models/weapons/unloaded/rif_galil_mag.mdl"
SWEP.ViewModelFlip		= false

SWEP.Weight				= 5
SWEP.AutoSwitchTo		= true
SWEP.AutoSwitchFrom		= true

SWEP.Primary.Sound 			= Sound("Weapon_imigalil.Single")
SWEP.Primary.Silenced 		= Sound("")
SWEP.Primary.Recoil			= 0.2
SWEP.Primary.Damage			= 20
SWEP.Primary.NumShots		= 1
SWEP.Primary.Cone			= 0.0235
SWEP.Primary.ClipSize		= 25
SWEP.Primary.DefaultClip	= 25
SWEP.Primary.Delay			= 0.085
SWEP.Primary.Mode			= "auto"
SWEP.Primary.Ammo			= "AlyxGun"
SWEP.AvailableFireMode    = {"auto","semi"}

SWEP.DeltaSpread		= 0.035
SWEP.DeltaRecoil		= 0.055
SWEP.IronSightTime      = 0.10
SWEP.RunSetTime         = 0.6
SWEP.IronSightZoom 		= 1.0

SWEP.WeaponType				= "rifle"
SWEP.MuzzleEffect 		= "muzzle_lee_rifle"
SWEP.EjectSmoke		    = true
SWEP.MuzzleSmoke		= true

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

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

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

SWEP.NearWallPos = Vector (0.0027, -9.1261, -1.2419)
SWEP.NearWallAng = Vector (28.6996, 50.6859, 7.6838)

SWEP.RunArmOffset = Vector (0.0763, 0, 0.4108)
SWEP.RunArmAngle = Vector (-19.2871, 28.7341, -14.4976)

SWEP.IronSightsPos = Vector (-3.4129, 0, 1.2766)
SWEP.IronSightsAng = Vector (0.1234, 0.1062, 0)