Jump to content
Sign in to follow this  
yurapetrov

Need help with proxy weapons

Recommended Posts

Hi all!

I'm trying to make weapons to my addon seahawk. I add two proxies for torpedoes and four proxyies for hellfire rockets.

Weapon classes is "mk54TorpedoLauncher" and "Seahawk_HellfireLauncher".

"Seahawk_HellfireLauncher" uses magazine class "4Rnd_Hellfire_Seahawk". In my helicopter "mk54TorpedoLauncher" use two "1Rnd_MK54Torpedo" magazines.

The problem: then i fired torpedo one hellfire rocket moved from hellfires pod to torpedo place.

question01.jpg

question02.jpg

question03.jpg

source config code:

class CfgPatches {
class US_Navy_sh60b {
	units[] = {SH60B,SH60B_3xMk54};
	weapons[] = {};
	requiredAddons[] = {"CACharacters", "CACharacters2", "CAWeapons"};
};
};//CfgPatches

class CfgVehicleClasses {
class US_Navy {
	displayName = "US Navy";
};
};

class CfgAmmo {
class MissileBase;	// External class reference
class Mk54Ammo : MissileBase {
        airLock=false; 
	hit = 1;
	indirectHit = 1;
	indirectHitRange = 1;
	typicalSpeed = 10;
	maxSpeed = 10;
	cost = 100;
	effectsMissile = "";
	effectsFire="CannonFire";
               CraterEffects="";
               explosionEffects="";
               explosive=0;
	deflecting = 1;
	model = "\mk54\mk54_ammo";
	proxyShape = "\mk54\mk54_ammo";
};
class HellfirePodAmmo : MissileBase {
	hit = 1;
	indirectHit = 1;
	indirectHitRange = 1;
	typicalSpeed = 10;
	cost = 100;
	deflecting = 1;
	airLock = 0;
	model = "\sh60\SeahawkHellfirePod";
	proxyShape = "\sh60\SeahawkHellfirePod";
};
};

class CfgMagazines {
class Default;	// External class reference
class CA_Magazine : Default {};
class VehicleMagazine : CA_Magazine {};
class 8Rnd_Hellfire : VehicleMagazine {};
class 4Rnd_Hellfire_Seahawk : 8Rnd_Hellfire {
	count = 4;
};
class Seahawk_Laser : VehicleMagazine {
	scope = public;
	displayName = "Laser Designator";
	ammo = "Laserbeam";
	count = 1;
};
class 1Rnd_MK54Torpedo : VehicleMagazine {
	scope = 2;
	displayName = "MK54 Torpedo";
	ammo = "Mk54Ammo";
	count = 1;
};
class AGM114HellfirePod : VehicleMagazine {
	scope = 2;
	displayName = "AGM-114 ""Hellfire""";
	ammo = "HellfirePodAmmo";
	count = 1;
};
};

class CfgWeapons {
class Default;	// External class reference
   class CannonCore;	// External class reference
class HellfireLauncher;	// External class reference
class Seahawk_HellfireLauncher : HellfireLauncher {
	magazines[] = {"4Rnd_Hellfire_Seahawk"};
   };
class Seahawk_Laser : Default {
	scope = public;
	displayName = "Laser Designator";
	primary = 10;
	magazines[] = {"Seahawk_Laser"};
};
class mk54TorpedoLauncher : HellfireLauncher {
	cursorAim = "\ca\Weapons\Data\clear_empty";
	autoFire = 0;
	initSpeed=1;
	displayName = "MK54 Torpedo";
	simulation="ProxyMagazines";
	minRange = 300;
	minRangeProbab = 0.98;
	midRange = 2000;
	midRangeProbab = 0.98;
	maxRange = 4500;
	maxRangeProbab = 0.9;
	sound[] = {"", 17.7828, 1};
	magazines[] = {"1Rnd_MK54Torpedo"};
};
};

class CfgVehicles {
class SH60B : Helicopter {

..........skipped some lines.................

   	weapons[] = {};
	magazines[] = {};
	class Turrets : Turrets {
		class MainTurret : MainTurret {
			body = "flir_turret";
			gun = "flir";
			minElev = -60;
			maxElev = 110;
			initElev = -60;
			minTurn = -180;
			maxTurn = 180;
			initTurn = 0;
			soundServo[] = {"", db-40, 1.0};
			gunBeg = "gun";	// endpoint of the gun
			gunEnd = "gunnerview";	// chamber of the gun
 			    weapons[] = {"Seahawk_Laser","mk54TorpedoLauncher","Seahawk_HellfireLauncher"};
			magazines[] = {"Seahawk_Laser","AGM114HellfirePod","1Rnd_MK54Torpedo","1Rnd_MK54Torpedo","4Rnd_Hellfire_Seahawk"};
			gunnerName = $STR_POSITION_CREWCHIEF;
			gunnerOpticsModel = "\ca\air\optika_AH1Z";
			gunnerOutOpticsShowCursor = 0;
			gunnerOpticsShowCursor = 0;
			gunnerAction = "UH60_Pilot";
			gunnerInAction = "UH60_Pilot";
			primaryGunner = 1;
			commanding = -1;
			stabilizedInAxes = "StabilizedInAxesBoth";

			outGunnerMayFire = true;
			memoryPointsGetInGunner = "pos gunner";
			memoryPointsGetInGunnerDir = "pos gunner dir";
			memoryPointGun = "gun";
			memoryPointGunnerOptics = "gunnerview";
			gunnerForceOptics = false;
			lockWhenDriverOut = false;
		};
	};
................... skipped animation, user actions etc .............

};
class SH60B_3xMk54 : SH60B {
	displayname = "SH-60B (3 x MK-54 Torpedo)";
	class Turrets : Turrets {
		class MainTurret : MainTurret {

 			    weapons[] = {"Seahawk_Laser","mk54TorpedoLauncher"};
			magazines[] = {"Seahawk_Laser","1Rnd_MK54Torpedo","1Rnd_MK54Torpedo","1Rnd_MK54Torpedo"};
		};
	};
};
};


class CfgNonAIVehicles {

class ProxyWeapon;	// External class reference

class ProxyAGM114Hellfire : ProxyWeapon {
	model = \ca\air\AGM114Hellfire;
	simulation = "maverickweapon";
};

class Proxymk54_ammo : ProxyWeapon {
	model = \mk54\mk54_ammo;
	simulation = "maverickweapon";
};

class ProxySeahawkHellfirePod : ProxyWeapon {
	model = \sh60\SeahawkHellfirePod;
	simulation = "maverickweapon";
};

};

p.s. how to remove fire effect from torpedo?

Share this post


Link to post
Share on other sites

Common problem with doubled magazines of the same type. Create a 2 round magazine for the MK54 instead and the problem should be gone.

Out of curiosity, how are the proxies numbered in the MLOD?

Share this post


Link to post
Share on other sites
Myke;2014471']Common problem with doubled magazines of the same type. Create a 2 round magazine for the MK54 instead and the problem should be gone.

Out of curiosity' date=' how are the proxies numbered in the MLOD?[/quote']

Thanks! Problem is solved! Proxies numbering is torpedo.01, torpedo.02, hellfire.03, hellfire.04, hellfire.05, etc

Share this post


Link to post
Share on other sites
Thanks! Problem is solved! Proxies numbering is torpedo.01, torpedo.02, hellfire.03, hellfire.04, hellfire.05, etc

Excellent, glad you have it solved.

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  

×