Different screen blending for different pain states / damage
Moderator: GZDoom Developers
- Tormentor667
- Posts: 13556
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Different screen blending for different pain states / damage
Is it possible to add different screen blending for different pain states / damage types?
- Cutmanmike
- Posts: 11354
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
Re: Different screen blending for different pain states / damage
Apparently not but it seems like a good idea 

Re: Different screen blending for different pain states / damage
I suppose you could use A_SetBlend for custom pain states, but it won't be like a normal red flash (i.e. the higher the damage, the deeper the color) without a great deal of coding, if at all. However, even if you do this, there's still the original red flash that you'll have to deal with. If you can shut that off when you get hurt, then I think custom pain flashes might be possible, albeit a bit hacky. However, I'm not sure you can do that part yet.
Of course, custom pain colors would be a whole lot easier here. Perhaps there could even be a duration, from a quick blip to a slow fading like with poison damage.
Of course, custom pain colors would be a whole lot easier here. Perhaps there could even be a duration, from a quick blip to a slow fading like with poison damage.
Re: Different screen blending for different pain states / damage
I dunno, does the ACS DamageThing or ThingDamage or wtf generate screen blending? So you could assign an ACS command to inflict damage to a thing upon the projectile's impact and add A_SetBlend. I perhaps misunderstand, just a crappy idea.
Not even sure if it's doable, cause the projectile can hit a wall too, etc...

- XutaWoo
- Posts: 4005
- Joined: Sat Dec 30, 2006 4:25 pm
- Location: beautiful hills of those who are friends
- Contact:
Re: Different screen blending for different pain states / damage
Damage funtions do have the red/whatever blending.
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49238
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Different screen blending for different pain states / damage
Damage color is handled per player class which makes this a bit problematic.
- Cutmanmike
- Posts: 11354
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
Re: Different screen blending for different pain states / damage
Could it be made so the playerclasses' damage color is specified by "normal" damage?
Last edited by Cutmanmike on Fri Oct 24, 2008 4:51 am, edited 1 time in total.
- Tormentor667
- Posts: 13556
- Joined: Wed Jul 16, 2003 3:52 am
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 11
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Germany
- Contact:
Re: Different screen blending for different pain states / damage
That would make sense
Re: Different screen blending for different pain states / damage
And any damagetype that doesn't have a color defined as well?Cutmanmike wrote:Could it be made so the playerclasses' damage color is specified by "normal" damage?
- Cutmanmike
- Posts: 11354
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
- .+:icytux:+.
- Posts: 2661
- Joined: Thu May 17, 2007 1:53 am
- Location: Finland
Re: Different screen blending for different pain states / damage
flashing and blinding monsters :3
Re: Different screen blending for different pain states / damage
This could be useful for flashbangs, or ice damage, slime damage, whatever.
In Duke 3D, getting hit by ice will flash the screen blue, and the Enforcer's spit will flash your screen green...
In Duke 3D, getting hit by ice will flash the screen blue, and the Enforcer's spit will flash your screen green...
-
- Posts: 3975
- Joined: Fri Jul 06, 2007 9:16 am
Re: Different screen blending for different pain states / damage
Hmm, the tazers in Goldeneye TC for Skulltag make your screen flash white, blinding you, couldn't you just use whatever method they used?
Re: Different screen blending for different pain states / damage
Flashbangs, maybe, but not for player damage. The game engine will always flash the player's screen red when he is taking damage.