Muas Posted September 18, 2020 Share Posted September 18, 2020 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 More sharing options...
Muas Posted September 18, 2020 Author Share Posted September 18, 2020 I found it!... By just adding this to the description.lua custom_args = { [509] = 1.0 } and that is it... vintage helmet, -1.0 should display it without the visor... Link to comment Share on other sites More sharing options...
Megalax Posted September 18, 2020 Share Posted September 18, 2020 Put this in after your countries entry: custom_args = { [509] = 1.0, --Helmet Change } Megalax's Livery Studio My Liveries in the User Files I'll stick a maple leaf on anything... Link to comment Share on other sites More sharing options...
Muas Posted September 18, 2020 Author Share Posted September 18, 2020 Yes, that is it. Somehow it was not working, maybe I was doing something wrong, most probably the description.lua was in the wrong place... Link to comment Share on other sites More sharing options...
Muas Posted September 22, 2020 Author Share Posted September 22, 2020 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.pilot_f18_helmet_roughmet.zip Link to comment Share on other sites More sharing options...
Megalax Posted September 22, 2020 Share Posted September 22, 2020 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. Megalax's Livery Studio My Liveries in the User Files I'll stick a maple leaf on anything... Link to comment Share on other sites More sharing options...
Muas Posted September 22, 2020 Author Share Posted September 22, 2020 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: Link to comment Share on other sites More sharing options...
STKDirty Posted January 5 Share Posted January 5 Hello, I know this thread is old, but does this still work? It doesn't seem to work for me. custom arg [509] doesn't do anything whether it's set yo 1.0 or -1.0. Thanks! Chirp Link to comment Share on other sites More sharing options...
Megalax Posted January 5 Share Posted January 5 That arg was removed with the latest Hornet pilot model update. Megalax's Livery Studio My Liveries in the User Files I'll stick a maple leaf on anything... Link to comment Share on other sites More sharing options...
Recommended Posts