Jump to content

Liveries Custom Arguments


Muas

Recommended Posts

Anybody here knows how to set custom arguments in a livery?

It should be set in the description.lua file but I can't get it to work on the F/A-18C...

 

Here's an example:

As per the Model Viewer, argument 509 set to 1.0 should display an 80's style pilot helmet (without the target acquisition device). How can we set this to a particular livery? I'm sure there must be a way...

 

Thanks in advance.

Link to comment
Share on other sites

This is what I wanted to do.

A livery with a preset helmet without the target acquisition visor.

But if we look closer there is a "shadow" in the forehead area of the helmet where the default visor used to be. That can be seen very clearly in the ambient occlusion option of the viewer (AO). Since the AO is created by the texture pilot_f18_helmet_roughmet.dds, I removed that shadow from its red channel, removed it from the alpha channel, and still, that shadow is rendered, and I don't know where it is coming from. Any ideas on how can I remove this effect from the helmet?

Attached are both pilot_f18_helmet_roughmet.dds textures, the default and the modified one and the description.lua. set to display them. The viewer shows the modified file is loaded first from the description.lua definitions, but still the AO shows the effect from the default one... Any clues are welcome. Thank you.

Screen_200918_234330.thumb.png.256d7d4217d8ad537e177f4abc575d5e.png

Screen_200918_234333.thumb.png.55ecbed8636de09a288f890cd553138b.png

Screen_200918_234336.thumb.png.735e3d4c7a08dbd5a42097c1310fd246.png

ambient_occlusion.JPG.9f13739ec204d6005f134f25d8cc3e34.JPG

pilot_f18_helmet_roughmet.zip

Link to comment
Share on other sites

If it its still displaying, then you have a lua entry error.

 

Change the 2 to a 13 or ROUGHNESS_METALLIC.

 

2 is for specular, which the Hornet does not use, so it defaults back to the helmet roughmet in the default textures.

 

You got it spot on man!! The time I spent scratching my head about this...

You are boss!! Thanks a lot. :thumbup:

ambient_occlusion_2.JPG.651e894531e3cd6075f3b6c2474b34fa.JPG

Link to comment
Share on other sites

  • 3 years later...
  • Recently Browsing   0 members

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