All pastes #242036 Raw Edit

Someone

public text v1 · immutable
·published 2006-11-06 21:32 UTC
rendered paste body
-- MySWEP
-- Version 0.1b

MyIndex			=	0; 	-- MySWEP's entity index             Default: 0
Owner			= 	0; 	-- The player that owns this weapon  Default: 0
CurrentTime		=	0; 	-- The current game time             Default: 0

-- Init function.

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


-- Think function.

	function onThink( )
	end
	

-- Primary attack stuff.

	function onPrimaryAttack( )	
	end

	

-- Secondary attack stuff.

	function onSecondaryAttack( )		
	end


-- When Weapon is swapped to

	function Deploy( )
	end
	
	
-- When weapon swapped away from
	
	function Holster( )
	end
	

-- When player presses reload. Returning false means DON'T RELOAD. Although this will hitch on the client.

	function onReload( )
		return true;
	end
	
	-- Weapon settings.

	function getWeaponSwapHands()
		return true;
	end
	function getWeaponFOV()
		return 74;
	end
	function getWeaponSlot()
		return 1;
	end
	function getWeaponSlotPos()
		return 6;
	end
	function getFiresUnderwater()
		return true;
	end
	function getReloadsSingly()
		return false;
	end
	function getDamage()
		return 50;
	end
	function getPrimaryShotDelay()
		return 0.2;
	end
	function getSecondaryShotDelay()
		return 100;
	end
	function getPrimaryIsAutomatic()
		return false;
	end
	function getSecondaryIsAutomatic()
		return true;
	end
	function getBulletSpread()
		return vector3( 0.01, 0.01, 0.01 );
	end
	function getViewKick()
		return vector3( -4.8, 0.0, 0.0);
	end
	function getViewKickRandom()
		return vector3( -0.5, 0.3, 0.3 );
	end
	function getBulletSpreadSecondary()
		return vector3( 0.001, 0.001, 0.001 );
	end
	function getViewKickSecondary()
		return vector3( 0.0, 0.0, 0.0);
	end
	function getViewKickRandomSecondary()
		return vector3( 0.0, 0.0, 0.0 );
	end
	function getViewModel()
		return "models/weapons/v_citz_deagle.mdl";
	end
	function getWorldModel()
		return "models/weapons/w_citz_deagle.mdl";
	end
	function getClassName()
		return "weapon_citizendeagle";
	end
	function getPrimaryAmmoType()
		return "357";
	end
	function getSecondaryAmmoType()
		return "357";
	end
	function getMaxClipPrimary()
		return 7;
	end
	function getMaxClipSecondary()
		return -1;
	end
	function getDefClipPrimary()
		return 64;
	end
	function getDefClipSecondary()
		return -1;
	end
	function getAnimPrefix()
		return "pistol";
	end
	function getPrintName()
		return "Citizen Deagle";
	end
	function getPrimaryScriptOverride()
		return 0;
	end
	function getSecondaryScriptOverride()
		return 3;
	end
	function getDeathIcon()
		return "swep_default";
	end
	function getHUDMaterial( )
		return "gmod/SWEP/default";
	end