GLDEFS - "lightselfonly"

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

User avatar
Custodian
Posts: 63
Joined: Fri Jan 29, 2021 8:24 pm
Graphics Processor: ATI/AMD (Modern GZDoom)
Location: Minneapolis MN, USA
Contact:

GLDEFS - "lightselfonly"

Post by Custodian »

Hello! An option I would like to see is a property for GLDEF lights that only illuminate the specific actor that calls them. I imagine the syntax would look something like this:

Code: Select all

lightselfonly 1
The intended use case for such a feature would be to allow sprites to be illuminated and colored independently from their surroundings. The specific use I have in mind is to apply a glow and color when enemies take damage, similar to Prodeus. I've attempted a number of different approaches for this, most of them involving palette translations, but those are imperfect.

If someone else has found a solution to achieve this effect, I'd be interested to hear it, but a native feature would be my preference.

Thanks
-P
User avatar
Major Cooke
Posts: 8208
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10
Graphics Processor: nVidia with Vulkan support
Location: GZBoomer Town
Contact:

Re: GLDEFS - "lightselfonly"

Post by Major Cooke »

Already coded. You only need wait for it to be merged.
User avatar
Custodian
Posts: 63
Joined: Fri Jan 29, 2021 8:24 pm
Graphics Processor: ATI/AMD (Modern GZDoom)
Location: Minneapolis MN, USA
Contact:

Re: GLDEFS - "lightselfonly"

Post by Custodian »

Awesome!
Post Reply

Return to “Feature Suggestions [GZDoom]”