

-- Called when the weapon is created.

	function onInit( )
		_SWEPSetSound( MyIndex, "single_shot", "Weapon_g3sg1.Single" );
	end

	function getDeathIcon( )
		return "swep_default";
	end

-- Weapon settings.
-- These are only accessed once when setting the weapon up


	function getWeaponSwapHands()
		return false;	
	end
	

	function getWeaponFOV()

		return 74;	

	end

	

	function getWeaponSlot()

		return 4;	

	end

	

	function getWeaponSlotPos()

		return 4;	

	end

	

	function getFiresUnderwater()

		return false;

	end

	

	function getReloadsSingly()

		return false;

	end

	

	function getDamage()

		return 20;

	end

	

	function getPrimaryShotDelay()

		return 0.11;

	end

	
	function getPrimaryIsAutomatic()

		return true;

	end

		

	function getBulletSpread()

		return vector3( 0.02, 0.02, 0.02 );

	end

	

	function getViewKick()

		return vector3( -1.0, 0.0, 0.0);

	end

	

	function getViewKickRandom()

		return vector3( 0.6, 0.6, 0.5 );

	end

	


	function getViewModel( )
		return "models/weapons/v_ma5b.mdl";
	end

	function getWorldModel( )
		return "models/weapons/w_rif_m4a1.mdl";
	end

	

	function getClassName()

		return "weapon_ma5b";

	end



	function getPrimaryAmmoType()

		return "ar2";

	end

		

	function getSecondaryAmmoType()

		return "pistol";

	end

	

	-- return -1 if it doesn't use clips

	function getMaxClipPrimary()

		return 60;

	end

	

	function getMaxClipSecondary()

		return -1;

	end

	

	-- ammo in gun by default

	function getDefClipPrimary()

		return 240;

	end

	

	function getDefClipSecondary()

		return -1;

	end



	-- pistol, smg, ar2, shotgun, rpg, phys, crossbow, melee, slam, grenade

	function getAnimPrefix()

		return "ar2";

	end



	function getPrintName()

		return "MA5B";

	end

	


	-- 0 = Don't override, shoot bullets, make sound and flash

	-- 1 = Don't shoot bullets but do make flash/sounds

	-- 2 = Only play animations

	-- 3 = Don't do anything

	

	function getPrimaryScriptOverride()

		return 0;

	end



	function getSecondaryScriptOverride()

		return 3;

	end



