Jump to content

Is it possible to add custom RWR codes?


Recommended Posts

Hi all,

 

Working on a SAM mod, I was wondering if it is possible to add custom RWR codes to the modules, ideally without breaking IC ?

I have a vague idea of how to add weapon system codes in the sim, but then using these custom codes to trigger RWR warnings is above my skillset...

Has anyone ever tried to do this?

 

In the meantime, we resorted to using older, sometimes unused codes when these matched with the systems added by the mod (e.g 105 and 106 for the S-300V/SA-12).

 

Thanks !

 

Es0Xmu1W8AI8SZn.jpgDigital Combat Simulator  Black Shark Screenshot 2021.04.15 - 11.41.21.46 - Copie.png

Link to post
Share on other sites

I know at least for the Hornet, the symbols are in the "AN_ALR_SymbolsBase.lua" (located in Scripts/Aircraft/_Common/Cockpit). However, looking in it, I don't know what it is referencing (ie model, lua, etc) when it states something like 

    {MiG_31_,       "31"}

 in the table. However, it does also have a symbols string section. Not sure if something as simple as adding

["S-300PMU2 92H6E tr" = '20']

would really do it, as I am not sure how it is referencing the radars/vehicles in the lua. But I am off today, and maybe I'll try and fidget around in it later. 

 

Additionally, obviously this would also break the IC check with HDS, maybe two versions in the future? Thanks for your mod btw, it is amazing!


Edited by patpatpowercat
Link to post
Share on other sites

Ok, I added this to the end of the symbols string section of the lua. 

--High Digit SAMS
	['SA-17 Buk TR']				= '17',
	['S-300PS 64H6E TRAILER sr']	= 'BB',
	['S-300PS SA-10B 40B6MD MAST sr']	= 'CS',
	['S-300PS SA-10B 40B6M MAST tr']	= '10',
	['S-300PS 40B6M MAST tr']		= '10',
	['S-300PS 30N6 TRAILER tr']		= '10',
	['S-300PMU1 30N6E tr']			= '20',
	['S-300PMU1 40B6M tr']			= '20',
	['S-300PMU2 64H6E2 sr']			= 'BB',
	['S-300PMU2 92H6E tr']			= '20',

It did not change anything, the Grave Stone still tracked as a 10, and the Grizzly as an 11.

Link to post
Share on other sites
19 minutes ago, patpatpowercat said:

Ok, I added this to the end of the symbols string section of the lua. 


--High Digit SAMS
	['SA-17 Buk TR']				= '17',
	['S-300PS 64H6E TRAILER sr']	= 'BB',
	['S-300PS SA-10B 40B6MD MAST sr']	= 'CS',
	['S-300PS SA-10B 40B6M MAST tr']	= '10',
	['S-300PS 40B6M MAST tr']		= '10',
	['S-300PS 30N6 TRAILER tr']		= '10',
	['S-300PMU1 30N6E tr']			= '20',
	['S-300PMU1 40B6M tr']			= '20',
	['S-300PMU2 64H6E2 sr']			= 'BB',
	['S-300PMU2 92H6E tr']			= '20',

It did not change anything, the Grave Stone still tracked as a 10, and the Grizzly as an 11.

Thanks for your investigation. I think that you need to declare your custom units with a custom code for it to work. For instance, we managed to get RWR alerts for the SA-12 by using the old 105 and 106 codes that date back from LOMAC, when we had an SA-12 ingame. 

 

I reckon we need to use a custom code, e.g 999 for the SA-17 for instance, for it to work. Then, declare the system as you did in SymbolsBase.lua. The code will be used to fetch the exact system type, and will also be used by the HTS to target HARM missiles at the site.

Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...