Jump to content
Sign in to follow this  
gossamersolid

Changing Weapons & Magazines on Mi-24 (Turrets Help)

Recommended Posts

	class p85_sov_Mi24_at : Mi24_P {
	vehicleClass = "p85_SOV_air_vehicles";
	faction = "P85_sov_Army";
	scope = 2;
	SIDE=0;
	displayName = Mi-24 (AT);
	crew = "P85_pilotsov";
};	

is what I have so far. I realized that if I added magazines/weapons to that, both the pilot and gunner would be able to fire them (without manual fire). Then I stumbled upon the douchebag known as turrets.

So I found an example of a turret:

	class Turrets : Turrets {
		class MainTurret : MainTurret {
			body = "mainTurret";
			gun = "mainGun";
			minElev = -60;
			maxElev = 20;
			initElev = 0;
			minTurn = -60;
			maxTurn = 60;
			initTurn = 0;
			soundServo[] = {"", 0.01, 1.0};
			memoryPointGun = "machinegun";
			gunBeg = "muzzle_1";
			gunEnd = "chamber_1";
			weapons[] = {"YakB", "AT6Launcher", "S8Launcher"};
			magazines[] = {"1470Rnd_127x108_YakB", "4Rnd_AT6_Mi24V", "80Rnd_80mm"};
			gunnerName = $STR_POSITION_GUNNER;
			gunnerOpticsModel = "\ca\weapons\2Dscope_HINDgun";
			gunnerOpticsEffect[] = {"TankGunnerOptics1"};
			gunnerAction = "HIND_Gunner";
			gunnerInAction = "HIND_Gunner";
			gunnerGetInAction = "GetInHigh";
			gunnerGetOutAction = "GetOutHigh";
			primaryGunner = 1;

			class ViewOptics {
			initAngleX = 0;
			minAngleX = -30;
			maxAngleX = 30;
			initAngleY = 0;
			minAngleY = -100;
			maxAngleY = 100;
			initFov = 0.155;
			minFov = 0.047;
			maxFov = 0.155;
			};
		};
};
};

I tried this and it said couldn't find classname Turrets. Then it I went through like 10 other steps and it still wouldn't work. So here I am asking for help on how to redefine the ammo an mi-24 uses with turrets.

Share this post


Link to post
Share on other sites

check requriedaddons[] string// should be parental addon' name

and add something like this???

/*extern*/ class MainTurret;

check it twice// don't remember correctly// "main" or "newTurret" or something// look into p85 addons // should be correct there

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×