Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Can you add Different Ordinance to a Plane?  (Read 607 times)

0 Members and 1 Guest are viewing this topic.

Wing Walker

  • member
  • Offline Offline
  • Posts: 348
Can you add Different Ordinance to a Plane?
« on: February 16, 2024, 04:15:55 PM »

Just was wondering if there was a way to add a load out to an aircraft somehow, relatively easily?

For instance, a mission I'm making uses the P-39D, but the load outs don't give an option to have a drop tank with the 37mm cannon, which is historical for the mission.

Neither the D-1 or D-2 have it as an option.

Thanks  ]salut[
Logged

Frankiek

  • SAS Team
  • member
  • Offline Offline
  • Posts: 2952
Re: Can you add Different Ordinance to a Plane?
« Reply #1 on: February 16, 2024, 06:45:21 PM »

Well the only way to do it is to modify the relevant cod file and eventually tinker with the weapon load out in the class file. It is not overly complicated but in both case you will need to handle the the mod tools. 
Logged

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9540
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: Can you add Different Ordinance to a Plane?
« Reply #2 on: February 17, 2024, 06:32:17 AM »

... and make sure that the aircraft has the necessary hook to have a DT under the belly... or the two necessary hooks under the wings (if you want to put 2 DT)...
It's all very simple... and an excellent exercise to start tinkering with IL-2.
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

Frankiek

  • SAS Team
  • member
  • Offline Offline
  • Posts: 2952
Re: Can you add Different Ordinance to a Plane?
« Reply #3 on: February 17, 2024, 07:46:02 AM »

https://www.sas1946.com/main/index.php/topic,6015.0.html

This is a good place to start for weapons loadout but before that have a look at the classes tutorial section for the cod tools you may want to look at the free modding site
Logged

Wing Walker

  • member
  • Offline Offline
  • Posts: 348
Re: Can you add Different Ordinance to a Plane?
« Reply #4 on: February 28, 2024, 04:29:57 PM »

Seems the P-39D's were mostly equipped with the 37mm, and the 20mm that is default here was actually limited in use.

Either the P-39D-1 or the D-2 temporarily (conflicting info of which), and the P-400 had used the 20mm, have seen either model listed as the variant that had it.

Would it be easier to change the 20mm to the 37mm as the default cannon?

Maybe this modding stuff would be a little over my head.
Logged

FL2070

  • Modder
  • member
  • Offline Offline
  • Posts: 1255
  • FAC #87
Re: Can you add Different Ordinance to a Plane?
« Reply #5 on: February 28, 2024, 07:09:49 PM »

To change the loadout of an aircraft, you must:
1) modify "cod" files containing loadout information

or

2) edit aircrafts' Java cod to use SAS Common Utils's loadout functions,

both of which are "easy" for someone who knows what their doing, but neither of which are easy for someone who hasn't been initiated into Java programming and mod tools.

But, because I do know how to use mod tools, and making this kind of mod takes around 30 seconds, here you go, here's a mod that ensures 37mm cannon loadouts for the P-39 D-1 and D-2, both with and without the bomb or droptank:

https://www.mediafire.com/file/xjsszrwvzfc4ygk/#P-39D+30mm+Cannon+Loadouts.zip/file

For installation, put the "#P-39D 30mm Cannon Loadouts" folder into the "#WAW3" folder.

I'd also recommend adding these lines to your weapons.properties, so that the loadouts have stylized names:

Code: [Select]
###################################################################################################################################################################
# Bell P39D1 Airacobra, 1941 (additional loadouts)
###################################################################################################################################################################
P-39D1.m4                                                                      nose 1x 37mm M4, 30 rounds
P-39D1.m4_1x500                                                                37mm M4 + 1x 500lb bombs
P-39D1.m4_1x75dt                                                               37mm M4 + 1x 75 gal droptank

###################################################################################################################################################################
# Bell P39D2 Airacobra, 1941 (additional loadouts)
###################################################################################################################################################################
P-39D2.m4_1x500                                                                37mm M4 + 1x 500lb bombs
P-39D2.m4_1x75dt                                                               37mm M4 + 1x 75 gal droptank
Logged
On average, the average average averages, averagely, the average average of all averages.

Wing Walker

  • member
  • Offline Offline
  • Posts: 348
Re: Can you add Different Ordinance to a Plane?
« Reply #6 on: March 02, 2024, 03:41:00 PM »

HOLY CRAP!

Thanks man!

It worked perfect.

Would this same process work to fix the P-47's guns, or would there be animations and sounds to change? 

The 47s fire 50cals that are "M2"s now, some have an optional load of a normal 50cal that fires normal. The problem is the "M2" version of a 50cal fires all 8 guns at once at a slow rate of fire, so its actually like trying to hit a plane with 1 slow cannon.

I've been on IL2 for years, wish I had started playing around with simple modding a decade ago!

Thank you! ]salut[ 
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 26 queries.