Changing screen damage color calculation

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
Numnzel
Posts: 161
Joined: Wed Jul 18, 2012 6:17 pm
Location: Empty space

Changing screen damage color calculation

Post by Numnzel »

Hello.

I'm having trouble when increasing the player maximum health, because now almost any attack causes the player screen to go full-red and blinding you.

In more detail; I wanted to make decimals for the health HUD, like having 65.3% of life, but as life is an integer, I had to increase the value from 100 to 1000, and just use the fourth number as a decimal.

But now when recieving more than 50 of damage the screen goes full red because I guess the game thinks it is a high damage input in relation to 100 of health. There is any way of adjusting this other than disabling the player.damagescreencolor property?
Post Reply

Return to “Scripting”