All pastes #631453 Raw Edit

Someone

public text v1 · immutable
#631453 ·published 2007-07-23 23:45 UTC
rendered paste body
// ColonelSandersLite's unit replacement template

#define true             1
#define false            0

#define VSoft            0
#define VArmor	         0
#define VAir		     1

#define private		     0
#define protected		 1
#define public		     2

#define TEast		     0
#define TWest		     1
#define TGuerrila		 2
#define TCivilian		 3
#define TSideUnknown	 4
#define TEnemy		     5
#define TFriendly		 6
#define TLogic		     7

#define ReadAndWrite	 0
#define ReadAndCreate	 1
#define ReadOnly		 2
#define ReadOnlyVerified 3

class CfgPatches
{
	class APACHEREPLACE
	{
		units[] = {};
		weapons[] = {};
		requiredVersion = 1.08;
		requiredAddons[] = {"map_air","CAAir"};
	};
};


class CfgVehicles
{
class MAP_AH64;
class AH1W: MAP_AH64
{
	scope = 2;
	side = 1;
	model = "\map_air\map_ah64.p3d";
	displayName = "AH-64A (Multi Role)";
	crew = "SoldierWPilot";
	driverAction = "UH60_Pilot";
	driverIsCommander = 1;
	hasGunner = 1;
	crewVulnerable = 0;
	maxSpeed = 320;
	insideSoundCoef = 0.000500;
	selectionHRotorStill = "mainRotor_staticka";
	selectionHRotorMove = "mainRotor_blur";
	selectionVRotorStill = "tailRotor_staticka";
	selectionVRotorMove = "tailRotor_blur";
	memoryPointLMissile = "Missile_1";
	memoryPointRMissile = "Missile_2";
	memoryPointLRocket = "Rocket_1";
	memoryPointRRocket = "Rocket_2";
	selectionFireAnim = "zasleh";
	mainRotorSpeed = 1.5;
	backRotorSpeed = 1.5;
	rotorBig="\map_air\data\ah_vrtule";
	rotorBigBlend="\map_air\data\ah_vrtule";
	rotorSmall="\map_air\data\ah_vrt_a";
	rotorSmallBlend="\map_air\data\ah_vrt2";
	picture = "\map_air\data\ico\iah64.paa";
	mapSize = 13;
	Icon = "\map_air\data\map_ico\icomap_ah64_map.paa";
	memoryPointsGetInDriver = "pos_driver";
	memoryPointsGetInDriverDir = "pos_driver_dir";
	soundGetIn[] = {"\map_air\data\sounds\air_sounds\AH64-canopy.ogg",0.200000,1};
	soundGetOut[] = {"\map_air\data\sounds\air_sounds\AH64-canopy.ogg",0.200000,1};
	soundEngine[] = {"\map_air\data\sounds\air_sounds\ah64_engine.ogg",db+30,1};
	soundLandCrash[] = {"\map_air\data\sounds\air_sounds\aircraftcrash.ogg",db+10,1};
	soundWaterCrash[] = {Explosions\intowater,db-10,1};
	soundDammage[] = {"\map_air\data\sounds\air_sounds\alert.ogg",db+20,1};
	threat[] = {0.300000,1,0.800000};
	hiddenSelections[] = {"pic_usarmy","pic_nation","pic_nation2","pic_nl"};
	weapons[] = {};
	magazines[] = {};
	typicalCargo[] = {"SoldierWPilot","SoldierWPilot"};
	transportSoldier = 2;
	cargoAction[] = {"AH1Z_Pilot","AH1Z_Pilot"};
	ejectDeadCargo = true;
	supplyRadius = 2.500000;
	class ViewPilot;
	{
		initFov = 1.000000;
		minFov = 0.300000;
		maxFov = 1.500000;
		initAngleX = 10;
		minAngleX = -45;
		maxAngleX = 80;
		initAngleY = 0;
		minAngleY = -125;
		maxAngleY = 125;
	};
	class Turrets
	{
		class NewTurret;
		class MainTurret: NewTurret
		{
			startEngine = 0;
			outGunnerMayFire = 1;
			commanding = -1;
			primary = 1;
			memoryPointsGetInGunner = "pos_gunner";
			memoryPointsGetInGunnerDir = "pos_gunner_dir";
			memoryPointGun = "maschinegun";
			memoryPointGunnerOptics = "gunnerview";
			selectionFireAnim = "zasleh";
			gunnerAction = "UH60_Pilot";
			gunnerInAction = "UH60_Pilot";
			weapons[] = {"MAP_M230","MAP_FFARLauncher","MAP_HellfireLauncher","MAP_Veh_Laser"};
			magazines[] = {"MAP_1200Rnd_30x113_M230","MAP_M151_38Rnd_FFAR","MAP_8Rnd_Hellfire","MAP_Veh_Laser_Mag"};
		       
			gunnerOpticsColor[] = {1,1,1,1};
			gunnerOpticsModel = "\map_air\optika_ah64_empty.p3d";
			gunnerForceOptics = 0;
		       
			minElev = -45;
			maxElev = 5;
			initElev = 0;
			minTurn = -100;
			maxTurn = 100;
			initTurn = 0;
		};
	};
	armor = 60;
	damageResistance = 0.00593;
	armorStructural = 2.0;
	class HitVRotor
	{
		armor = 0.300000;
		material = 51;
		name = "tailRotor";
		visual = "tailRotor";
		passThrough = 1;
	};
	class HitHRotor
	{
		armor = 0.300000;
		material = 51;
		name = "mainRotor";
		visual = "mainRotor";
		passThrough = 1;
	};
	dammageHalf[] = {"\map_air\data\ah_in_skla.paa","\map_air\data\ah_in_sklac.paa"};
	dammageFull[] = {"\map_air\data\ah_in_skla.paa","\map_air\data\ah_in_sklac.paa"};
	class Damage
	{
		tex[] = {};
		mat[] = {};
	};
	class Eventhandlers
	{
		Init = " _this exec ""\map_air\data\scripts\ah64_flir_init.sqs""; MAP_Nations = [_this select 0, ""usa""] execVM ""\map_air\data\scripts\nations.sqf""; _this execVM ""\map_air\data\scripts\damper.sqf""; MAP_PREFLIGHT = true;  MAP_air_ah64_rescue = false; _this execVM""\map_air\data\scripts\ah64_rescue.sqf""; ";
		getin = " _this exec ""\map_air\data\scripts\ah64_flir_init.sqs""; _this exec ""\map_air\data\scripts\checkcrew.sqs""; _this execVM""\map_air\data\scripts\ah64_rescue.sqf""; ";
		Engine = "if (_this select 1) then {[_this select 0, isEngineOn (_this select 0)] exec ""\map_air\data\scripts\ah64_engineOn.sqs""}";
		Fired = "if( ((_this select 1)== ""MAP_HellfireLauncher"") && ((_this select 3)==""LOBL"") )Then{H=_this execVM""\map_air\data\scripts\mLOBL.sqf""}; ";
		incomingMissile = "_this exec ""\map_air_weap\data\scripts\incoming.sqs"";T=_this execVM ""\map_air_weap\data\scripts\abwehr.sqf"" ";
		killed = "_this exec ""\map_air\data\scripts\replacewrecks.sqs"" ";
	};
};