PDA

View Full Version : Aircraft Weapons Proxy Problem



RKSL-Rock
Feb 13 2007, 18:56
OK got an odd problem that quite honestly is bugging the crap out of me.


I can load wepeaon onto the aircraft and they display properly.  I fire the weapon and it deploys BUT the model doesnt no switch to the right model. (IE GBU with the fins deployed)

I have the model and proxy shade defined in the CFGAMMO:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> class rksl_gbu1000 &#58; laserguidedbomb
{

hit=8000;indirecthit=5000;indirecthitrange=25;
minrange=600; minrangeprobab=0.9;
midrange=1800; midrangeprobab=0.95;
maxrange=3500; maxrangeprobab=0.8;
sideairfriction = 0.1;
irlock = true;
laserlock =true;
maneuvrability=45.0;
maxspeed=917;
cost =500;
model=&#34;&#92;rksl-harrier&#92;w&#92;rksl_paveway2_w&#34;;
proxyShape = &#34;&#92;rksl-harrier&#92;w&#92;rksl_paveway2&#34;;
};[/QUOTE]

And the proxy setup in the Config:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">class CfgNonAIVehicles
{
class ProxyWeapon {};
class Proxyrksl_1000gp &#58; ProxyWeapon {model = &#34;&#92;rksl-harrier&#92;w&#92;rksl_1000gp_w&#34;; simulation = &#34;maverickweapon&#34;;}
class Proxyrksl_gbu1000 &#58; ProxyWeapon {model = &#34;&#92;rksl-harrier&#92;w&#92;rksl_paveway2_w&#34;; simulation = &#34;maverickweapon&#34;;}

};[/QUOTE]

Anyone any ideas?

Planck
Feb 14 2007, 02:07
I think you need to add a couple of semi-colons onto the ends of those lines maybe.....like so:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgNonAIVehicles
{
class ProxyWeapon {};
class Proxyrksl_1000gp &#58; ProxyWeapon
{model = &#34;&#92;rksl-harrier&#92;w&#92;rksl_1000gp_w&#34;; simulation = &#34;maverickweapon&#34;;};
class Proxyrksl_gbu1000 &#58; ProxyWeapon
{model = &#34;&#92;rksl-harrier&#92;w&#92;rksl_paveway2_w&#34;; simulation = &#34;maverickweapon&#34;;};
};
[/QUOTE]


Planck

RKSL-Rock
Feb 14 2007, 09:00
Nope makes no difference, but thanks for the effort though. http://forums.bistudio.com/oldsmileys/wink_o.gif

Planck
Feb 14 2007, 10:24
Ahh, well, sorry to hear that, maybe it is the simulations type.

Have you tried simulation = "shotMissile" ?


Planck

RKSL-Rock
Feb 14 2007, 15:10
Ahh, well, sorry to hear that, maybe it is the simulations type.

Have you tried simulation = "shotMissile" ?


Planck
Just tried that too and still no joy http://forums.bistudio.com/oldsmileys/sad_o.gif

deanosbeano
Feb 14 2007, 21:14
I think you need to add a couple of semi-colons onto the ends of those lines maybe.....like so:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgNonAIVehicles
{
class ProxyWeapon {};
class Proxyrksl_1000gp &#58; ProxyWeapon
{model = &#34;&#92;rksl-harrier&#92;w&#92;rksl_1000gp_w&#34;; simulation = &#34;maverickweapon&#34;;};
class Proxyrksl_gbu1000 &#58; ProxyWeapon
{model = &#34;&#92;rksl-harrier&#92;w&#92;rksl_paveway2_w&#34;; simulation = &#34;maverickweapon&#34;;};
};



Planck[/QUOTE]
have you tried this way ?
without the " "
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgNonAIVehicles
{
class ProxyWeapon{};
class Proxyrksl_1000gp &#58; ProxyWeapon{model=&#92;rksl-harrier&#92;w&#92;rksl_1000gp_w.p3d ; simulation=&#34;maverickweapon&#34;;};
class Proxyrksl_gbu1000 &#58; ProxyWeapon{model=&#92;rksl-harrier&#92;w&#92;rksl_paveway2_w.p3d;simulation=&#34;maverickweapon&#34;;};
};
[/QUOTE]

RKSL-Rock
Feb 15 2007, 00:25
have you tried this way ?
without the " "
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class CfgNonAIVehicles
{
class ProxyWeapon{};
class Proxyrksl_1000gp &#58; ProxyWeapon{model=&#92;rksl-harrier&#92;w&#92;rksl_1000gp_w.p3d  ; simulation=&#34;maverickweapon&#34;;};
class Proxyrksl_gbu1000   &#58; ProxyWeapon{model=&#92;rksl-harrier&#92;w&#92;rksl_paveway2_w.p3d;simulation=&#34;maverickweapon&#34;;};
};
[/QUOTE]
Yeah and still no joy. Its got to be somethign about the model itself. I have other addons using proxies and each uses the same config setup... so logically it must be the models...either the main model or the proxies... i&#39;ll let you know if i find anything.

Thanks for the efforts though guys.

RKSL-Rock
Feb 15 2007, 13:51
ok FIXED&#33;

I eventualy found the problem. With hindsight devastatingly obvious. I had other addons (Tornado, Hawk, Jaguar) using the RKSL_1000gb ammo but with different settings in my mod folder. Changing the ammo and weapon class names sorted it.

Moral of the story, unless you are using an identical library of weapons alwasy unique class names&#33;

Thanks again for trying to help&#33;

deanosbeano
Feb 15 2007, 15:25
Quote[/b] ] I have other addons using proxies and each uses the same config setup...
i guess that should have rung those bells , but it went past my head too http://forums.bistudio.com/oldsmileys/smile_o.gif