Jump to content
AveryTheKitty

Custom missiles and bombs come out of center of jet

Recommended Posts

Like the title says, custom ordnance for my aircraft is firing out of the center of my jet. Is this a proxies issue? I can't find a fix.

A response would be much appreciated. :)

Share this post


Link to post
Share on other sites

can you detail which plane it is, and what missiles you are adding, and what ammo they have on them already...

is it a plane you have made yourself? or a third-party modded one or stock one?

Share this post


Link to post
Share on other sites
can you detail which plane it is, and what missiles you are adding, and what ammo they have on them already...

is it a plane you have made yourself? or a third-party modded one or stock one?

One that I added myself. I am adding AA missiles, AMRAAMS that use a custom model. I am also adding SDB bombs. The both use custom ammo and magazines.

Share this post


Link to post
Share on other sites

ok well, without detailing your config entries for the ammo, i'd say check the ammo is configged like this:

class cfgammo
{

class Missilebase;
class EB_M_AIM120_AA: MissileBase
{
	model = "\FRL_missilebox\FRL_AIM120\FRL_AIM120fly";// --> model that spawns when you fire
	proxyShape = "\FRL_missilebox\FRL_AIM120\FRL_AIM120";// --> model that spawns when you load its magazine onto the plane, providing there is an empty proxy to accept it

and define the proxy model also here


class CfgNonAIVehicles
{
class ProxyDriver;
class ProxyWeapon;
class ProxyFRL_AIM120: ProxyWeapon 
{
	model = "\FRL_missilebox\FRL_AIM120\FRL_AIM120";
	simulation ="maverickweapon"; --> tells it to drop off the pylon and apply all the params like thrust etc
};		

not defining the proxy properly as above will result in the plane not knowing what to load on the pylon (assuming the pylon is empty) and so your missile appears in the 0,0,0 point of the model (centre).

this is for A2, so you may need to check the A3 values are the same.

Lastly, about proxies...

if you intend to rearm your custom plane, in the model you need to ensure that ALL of the proxies are the same type, otherwise the engine only rearms the first layer of proxies and then stops.

An example of this is how BIS makes their planes (very poor design) - with say a GBU12 proxy then an AIM9 proxy then a rocketpod proxy. this means you can only rearm the plane for some of the proxies, but for example the rocketpod will block the process.

so in this Su27 every one of the 50 proxies is defined as a fab250 (even though we clearly will not put 50 fab250's on it)

su27proxies_zps6l1etbti.jpg

then we add racks, missiles, rocketpods, fuel tanks, targeting pods and bombs like this

	weapons[] = {"GSh301","EB_80mm_Launcher","EB_R73_Launcher","EB_KH29D_Launcher","EB_BombLauncher_fab100","EB_ASO2V_FlareLauncher"};
	magazines[] = {
	"EB_150Rnd_30mm_GSh301","EB_40Rnd_80mm",
//wingtip 1,2
	"EB_2Rnd_pylonblank","EB_R73x2",
//wingtip 3,4
//wing 5,6
	"EB_S8podx2",
//body 7,8
	"EB_KH29Dx2",
//CL Front/Rear 9,10
	"EB_2rnd_rackx6",
//wing twin 11-14
	"EB_4Rnd_pylonblank",
//wing x6 15-26
	"EB_12Rnd_pylonblank",
//body x6 27-38
	"EB_12Rnd_pylonblank",
//CL x6 39-50
	"EB_12Rnd_fab100",
//INVISIBLE		
	"EB_ASO2V_Mag"};

---------- Post added at 09:39 AM ---------- Previous post was at 09:33 AM ----------

in fact as youre using SDB's this is how i configged them onto the Reaper

mq9_proxies_zpsjw2nwcgt.jpg

class FRL_MQ9_HCAS: FRL_MQ9_BASE
{
	scope = 2;	
	displayName = "MQ-9 Reaper UAV (HCAS)";
	fuelCapacity = 800;
	class Turrets: Turrets
	{
		class MainTurret: MainTurret
		{
			gunnerOpticsModel = "\ca\weapons\2Dscope_UAV.p3d";
			weapons[] = {"EB_AGM114R_Launcher","EB_GBU39_Launcher","Laserdesignator_mounted","EB_FlareLauncher"};
			magazines[] = {
//outer 1,2
			"EB_AGMrackx2x2",
//inner 3,4
			"EB_2rnd_BRU61A_4xRack",
//center 5
			"EB_1Rnd_pylonblank",
//outer twin rack 6,7,8,9
			"EB_AGM114Rx4",
//inner quad rack 10-17
			"EB_8Rnd_GBU39",
//invisible
			"Laserbatteries","FlareLauncherMag"};
		};
	};
};

with for example racks defined as mags (with no weapon) like this

//cfg	ammo
class EB_BRU61A_4xRack_ammo: EB_rocketpodbase
{
	model = "\FRL_missilebox\FRL_GBU39\FRL_BRU61A"; 
	proxyShape = "\FRL_missilebox\FRL_GBU39\FRL_BRU61A";
};	
//cfgmagazines
//SDB
class EB_1rnd_BRU61A_4xRack: EB_rocketpodmag_base
{
	ammo = "EB_BRU61A_4xRack_ammo";
	count = 1;
};
class EB_2rnd_BRU61A_4xRack: EB_1rnd_BRU61A_4xRack
{
	count = 2;
};
class EB_3rnd_BRU61A_4xRack: EB_1rnd_BRU61A_4xRack
{
	count = 3;
};	
class EB_4rnd_BRU61A_4xRack: EB_1rnd_BRU61A_4xRack
{
	count = 4;
};
//cfgnonaivehicles
class ProxyFRL_BRU61A: ProxyWeapon 
{
	model = "\FRL_missilebox\FRL_GBU39\FRL_BRU61A"; 
	simulation ="maverickweapon";
};		

finished product

reaper2_zps97369296.jpg

Edited by eggbeast

Share this post


Link to post
Share on other sites

Thanks a lot, I didn't have access to my files atm so I'll try this asap.

Share this post


Link to post
Share on other sites

I tried this and it didn't work. Also it seems only one of my Falchion fires off. If needed I'll PM configs, model.cfg, and a a dl link to the model.

Share this post


Link to post
Share on other sites

well start by pasting your relevant configs for cfgvehicles, cfgammo, cfgmagazines and cfgweapons here in a code box, and take a screenie of your model in O2 detailing the proxies

---------- Post added at 10:30 PM ---------- Previous post was at 10:29 PM ----------

i bet its your proxy naming, they all need to be the same type

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

×