Stealth effect of Shadow flag, without using it?

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!)
User avatar
Posts: 58
Joined: Mon Dec 17, 2018 1:18 am

Stealth effect of Shadow flag, without using it?

Post by shino1 »

Shadow flag grants two effects - aside from inaccurate enemies, it also makes players partially invisible to enemies.
I am interested in the second effect, but not in the first one. This is because veteran Doom players hate it, since it actually makes dodging projectiles harder.
So is there any way to simulate the stealth effect of flag SHADOW, but not the attack inaccuracy effect? Or a way to somehow make enemy attacks bypass it?
Blue Shadow
Posts: 4929
Joined: Sun Nov 14, 2010 12:59 am
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: Stealth effect of Shadow flag, without using it?

Post by Blue Shadow »

Fact: the SHADOW flag doesn't change how an actor is rendered.

Now, if we're talking about the partial invisibility powerup, here, then you can define a new one with the needed modifications:

Code: Select all

class PINoShadow : PowerInvisibility
Remember to create a powerup giver as well.

Return to “Scripting”