Jump to content
Sign in to follow this  
reconteam

physical weapon model replacement?

Recommended Posts

Is there anyway to create a script that would substitute one model for another. I want to substitute the AMRAAM D model which isn't a realistic representation of the actual AMRAAM with the AMRAAM C model used by the AAF jet fighter.

 

In the config.bin file the model for the AMRAAM D is listed as

     model="\A3\Weapons_F_Jets\Ammo\Missile_AA_06_fly_F";
     proxyShape="\A3\Weapons_F_Jets\Ammo\Missile_AA_06_F";

 

while AMRAAM C is

     model="\A3\Weapons_F_Jets\Ammo\Missile_AA_10_fly_F";
     proxyShape="\A3\Weapons_F_Jets\Ammo\Missile_AA_10_F";


Is there anyway I can achieve a method of replacing the former two with the later?

Share this post


Link to post
Share on other sites

You simply cannot without using MODs. However you can use setPylonLoadout to change the pylon loadout forcely.

gryphon setPylonLoadOut [6,"PylonMissile_Missile_AMRAAM_C_x1",true]

 

By the way in vanilla you already have AMRAAM C for Gryphon, aren't you?

Share this post


Link to post
Share on other sites
3 minutes ago, POLPOX said:

You simply cannot without using MODs. However you can use setPylonLoadout to change the pylon loadout forcely.


gryphon setPylonLoadOut [6,"PylonMissile_Missile_AMRAAM_C_x1",true]

 

By the way in vanilla you already have AMRAAM C for Gryphon, aren't you?

 

Alright thanks for letting me know. Yes the AMRAAM C is the same one used by the Gryphon.

 

Unfortunately there doesn't seem to be an internal "INT" variant of that missile for the correct jettison from the weapon bays of the F/A-181. Such variants exist for the AMRAAM D and R77. I can see in the editor's config viewer the one line used for that jettison effect, (initSpeedY = -25;) Yet even though I can see all of this in the config viewer there is no way for me to edit that and plug-in that line into the AMRAAM C? Or is there some functionality to the config viewer I haven't discovered?

 

Otherwise I guess I'd be looking at the hideously complicated task of creating my own addon so I can stop obsessing over such minor details.

Share this post


Link to post
Share on other sites

Config Viewer is only for viewing config and you can NEVER change config in-game (without using Diagnostics Exe AFAIK) however, if you want to emulate initSpeedY, you can do this using addEventHandler and setVelocity. At least this script fits to these AMRAAMs very well.

blackwasp addEventHandler ["Fired",{
	if (_this#4 == "ammo_Missile_AMRAAM_C") then {
		_ammo = _this#6 ;
		_ammo setVelocity (velocity _ammo vectorAdd (_ammo vectorModelToWorld ([0,0,-25]))) ;
	} ;
}] ;

 

Share this post


Link to post
Share on other sites

Excellent. Is there any way I could get it to address only pylons 8-12 (which represent the internal weapons bay) however?

Share this post


Link to post
Share on other sites

So I added an "and" command and have been trying to get the script to function on only pylons 8-12, yet is there any actual method to do that?

 

neither pylon == or pylons == seems to give any result.

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  

×