Jump to content

Recommended Posts

Posted

Is there any way to mod smoke marker rockets onto the P-51? I have looked at entry.lua but can't find any payload definitions. Help?

DCS AJS37 HACKERMAN

 

There will always be bugs. If everything is a priority nothing is.

Posted

I was feeling very dumb there for a short while but then I checked, and yes there is no smoke marker rockets (as in used for marking targets) but only smoke pods (as in used for aerobatic displays). The smoke pods are OTOH shaped like the HVAR. Sorry for being unclear.

DCS AJS37 HACKERMAN

 

There will always be bugs. If everything is a priority nothing is.

Posted

You would probably have to mod the rockets in there, meaning make a new payload first, can't help you there, never done it. But, I'm pretty sure it is possible I have seen mods which create different payloads, just look for a modded plane.

 

Then write an event handler to wait for a hit by that weapon type which will trigger a function to create a smoke in the same place the rocket hit, also advised to use the same thing we added in the capture airbase script if you remember - removing the object right before it hits and creating an exploation, instead of creating an exploation, you could create a smoke marker -

 

function deactivate()
   for coalition, bases in pairs(deactivateUnits) do
       for base, units in pairs(bases) do
           for index, unit in pairs(units) do
               if Unit.getByName(unit) then
                   Unit.getByName(unit):destroy()
               end
           end
       end
   end
   
   for i, group in pairs(VDatabase) do
       for j, v in pairs(group.units) do
           local unit = Unit.getByName(v.name)
		if unit and unit:getLife() <= 1 then
			local unitpos = unit:getPoint()
               unit:destroy()
			trigger.action.explosion(unitpos, 3)
           end
       end
   end
end

Posted

For example if you want to add more smoke pods the way you would do is:

 

Goto DCS World\Scripts\Database\planes\P-51D.lua

Add the following to every pylon you want to

 

{ CLSID = "{A4BCC903-06C8-47bb-9937-A30FEDB4E741}" },

{ CLSID = "{A4BCC903-06C8-47bb-9937-A30FEDB4E742}" },

{ CLSID = "{A4BCC903-06C8-47bb-9937-A30FEDB4E743}" },

{ CLSID = "{A4BCC903-06C8-47bb-9937-A30FEDB4E744}" },

{ CLSID = "{A4BCC903-06C8-47bb-9937-A30FEDB4E745}" },

{ CLSID = "{A4BCC903-06C8-47bb-9937-A30FEDB4E746}" },

 

The weapon data is located at DCS World\Scripts\Database\db_weapons_data.lua

 

If you want to add other weapons the way is the same. Go to the weapon data, search the weapon you want to add and add it to the pylon of the stang as descriped above.

  • Like 1
Posted (edited)

Thanks for the hints! I figured it out and are attaching the result. Note that once the smoke marker rocket leaves the rail it is a M156 which means it will have completely different aerodynamic properties than the HVAR, specifically it will fly straight for a long time instead of going into the ground directly. Use the regular gyroscopic sight for aiming.

 

P-51D.lua goes into DCS World/Scripts/Database/planes and db_weapons_data.lua goes into DCS World/Scripts/Database

 

Remember to backup the originals.

P-51D.lua

db_weapons_data.lua

Edited by RagnarDa

DCS AJS37 HACKERMAN

 

There will always be bugs. If everything is a priority nothing is.

  • 9 months later...
Posted (edited)

I had thought that they were marking rockets. Darn.... Oh well, I still cant get them to work ?

 

OK , I came back to let you know I got them to work with red smoke, but I have

to keep the button pressed all the time in order for the smoke to come out.

 

Is there a way to get the smoke to stay on ????? I wish there was actual smoke marker rockets too !!!

Edited by ctguy1955
got it to work
Posted

You can add the weapons from other aircrafts to the ponys pylons like I did here with the smoke pods from Flaming Cliffs:

 

Goto DCS WorldScriptsDatabaseplanesP-51D.lua

Add the following to every pylon you want to

 

{ CLSID = "{A4BCC903-06C8-47bb-9937-A30FEDB4E741}" },

{ CLSID = "{A4BCC903-06C8-47bb-9937-A30FEDB4E742}" },

{ CLSID = "{A4BCC903-06C8-47bb-9937-A30FEDB4E743}" },

{ CLSID = "{A4BCC903-06C8-47bb-9937-A30FEDB4E744}" },

{ CLSID = "{A4BCC903-06C8-47bb-9937-A30FEDB4E745}" },

{ CLSID = "{A4BCC903-06C8-47bb-9937-A30FEDB4E746}" },

 

The weapon data is located at DCS WorldScriptsDatabasedb_weapons_data.lua

The classic rocket for target marking with smoke is the S-8TsM or the M-156. Unfortunately both only come in tube launchers variants but you can add them to the pony (looks pretty strange^^).

Here are the weaponclass ids for all current variants:

S-8TsM:

{ CLSID = "{3DFB7320-AB0E-11d7-9897-000476191836}" };

{ CLSID = "{B_8V20A_CM}" };

M-156

{ CLSID = "{4F977A2A-CD25-44df-90EF-164BFA2AE72F}" };

{ CLSID = "{2AF2EC3F-9065-4de5-93E1-1739C9A71EF7}" };

{ CLSID = "{C2593383-3CA8-4b18-B73D-0E750BCA1C85}" };

{ CLSID = "{LAU_131x3_HYDRA_70_M156}" };

{ CLSID = "{XM158_M156}" };

And, as said before, add them to ponys pylons. Heres an image of mustangs default pylon configuration:

rQ3Abhk.jpg

 

Some time ago I've added the blue Flaming Cliffs smoke generators this way for aerobatics:

 

 

Hope that helped you :)

Posted

And here I was just wondering if the P-51/ F-51 ever received modifications to carry Hydra or Mighty Mouse rocket pods in foreign service... I mean, it stayed with some (mostly South American) countries until the 80s for COIN.

 

That said, the Cavalier and Piper Mustangs are pretty low production and quite a bit different from the aircraft we have in game....

 

But if, say, Honduran Mustangs carried 2.75" FFAR...?

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...