
if( SERVER ) then

	AddCSLuaFile( "shared.lua" );
	
	SWEP.HoldType = "pistol";
	
	SWEP.FOVAmt = 0;

end

SWEP.PrintName = "Combine Standard Sidearm";


if( CLIENT ) then

	
	SWEP.Slot = 2;
	SWEP.SlotPos = 2;

end

SWEP.Base = "weapon_ts_base";

SWEP.Primary.Sound = Sound( "weapons/pistol/pistol_fire3.wav" );

SWEP.WorldModel = "models/weapons/w_pistol.mdl";
SWEP.ViewModel = "models/weapons/v_pistol.mdl";

SWEP.InvSize = 1;
SWEP.InvWeight = 1;

SWEP.Primary.ClipSize = 16;
SWEP.Primary.DefaultClip = 32;
SWEP.Primary.Ammo = "pistol";
SWEP.Primary.Delay = .08;
SWEP.Primary.Damage = 7;
SWEP.Primary.Force = 1;
SWEP.Primary.RunCone = Vector( .1, .1, 0 );
SWEP.Primary.SpreadCone = Vector( .05, .05, 0 );
SWEP.Primary.CrouchSpreadCone = Vector( .03, .03, 0 );
SWEP.Primary.ViewPunch = Angle( .8, .8, 0 );

SWEP.IronSightPos = Vector(-5.7411, 3.8564, -12.9267);
SWEP.IronSightAng = Vector(0.9646, -1.2923, 1.3809);

SWEP.HolsterPos = Vector( 0, 0, 0 );
SWEP.HolsterAng = Vector( -2, 0, 0 );


function weaponremove()
	for _, v in pairs( player.GetAll() ) do
	v:RemoveFromInventory( "weapon_ts_pistol" )

	end
end
hook.Add( "PlayerDeath", "pistoldeath", weaponremove )