[ZScript] A_ChangeBloodColor

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

Moderator: GZDoom Developers

User avatar
Major Cooke
Posts: 8193
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

[ZScript] A_ChangeBloodColor

Post by Major Cooke »

A dedicated function for setting different blood colors would be appreciated, if at all possible.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49130
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [ZScript] A_ChangeBloodColor

Post by Graf Zahl »

The problem is that blood colors as such are not a simple number. For each color a translation table needs to be generated and translation tables are a limited resource.
User avatar
amv2k9
Posts: 2178
Joined: Sun Jan 10, 2010 4:05 pm
Location: Southern California

Re: [ZScript] A_ChangeBloodColor

Post by amv2k9 »

Is it possible to allow for a monster becoming, for example, a master of the actor class specified in its BloodType property? If that was doable, a blood replacement actor could do a species/class/uservar/etc check for its master and than call A_SetTranslation.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49130
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [ZScript] A_ChangeBloodColor

Post by Graf Zahl »

It's doable but I won't tell you how it can be done. The way blood colors are implemented limits them to 255 values globally and that limit first needs to be lifted before making the relevant stuff accessible.
User avatar
amv2k9
Posts: 2178
Joined: Sun Jan 10, 2010 4:05 pm
Location: Southern California

Re: [ZScript] A_ChangeBloodColor

Post by amv2k9 »

Graf Zahl wrote:It's doable but I won't tell you how it can be done. ...That limit first needs to be lifted before making the relevant stuff accessible.
Guess that's better than [No]. :lol: I assumed that pointers weren't exposed to blood yet because it couldn't be done period.
Last edited by amv2k9 on Thu Dec 15, 2016 6:32 pm, edited 1 time in total.
User avatar
Major Cooke
Posts: 8193
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: [ZScript] A_ChangeBloodColor

Post by Major Cooke »

Indeed, SXF_USEBLOODCOLOR just applied the blood color as a translation to the spawned actors.

Return to “Feature Suggestions [GZDoom]”