Disabling decals on switch textures in ANIMDEFS

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Tango
Posts: 183
Joined: Mon Jul 31, 2006 6:39 pm
Contact:

Disabling decals on switch textures in ANIMDEFS

Post by Tango »

I know that in UDMF, you can specify that certain sides of lines can be decal-free, but I was wondering if there's a better, game-wide method for disabling decals on certain textures, since half of my mappack is in Doom format. I've read in the ANIMDEFS wiki page that decals are off by default on animated textures, but that doesn't seem to apply to switch textures, because I'm still getting decals on all the default iwad switches, as well as all the custom switches that I have defined in ANIMDEFS. Is there another method of disabling decals on switches?
User avatar
MFG38
Posts: 414
Joined: Sun Apr 14, 2019 8:26 am
Graphics Processor: nVidia (Modern GZDoom)
Location: Finland
Contact:

Re: Disabling decals on switch textures in ANIMDEFS

Post by MFG38 »

If there is, there's no mention of it on the wiki.
Gez
 
 
Posts: 17941
Joined: Fri Jul 06, 2007 3:22 pm

Re: Disabling decals on switch textures in ANIMDEFS

Post by Gez »

You can disable decals in a [wiki]TEXTURES[/wiki] definition. So, redefine the switch's textures to add the NoDecals keyword.

If you use SLADE's texture editor, it's a checkbox in the texture properties part, below the canvas.
User avatar
Tango
Posts: 183
Joined: Mon Jul 31, 2006 6:39 pm
Contact:

Re: Disabling decals on switch textures in ANIMDEFS

Post by Tango »

Gez you are an angel as always, thank you so much. I'll try going with this method then. Is it worth me also adding a note to the ANIMDEFS wiki page about this? Seems like pretty related/relevant info, and other curious folks like myself might not know to look in TEXTURES for a way to force disable decals.
Post Reply

Return to “Scripting”