[ZScript] A_ChangeBloodColor

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

Moderator: GZDoom Developers

[ZScript] A_ChangeBloodColor

Postby Major Cooke » Sat Dec 10, 2016 11:08 am

A dedicated function for setting different blood colors would be appreciated, if at all possible.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007

Re: [ZScript] A_ChangeBloodColor

Postby Graf Zahl » Sun Dec 11, 2016 6:27 am

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [ZScript] A_ChangeBloodColor

Postby amv2k9 » Thu Dec 15, 2016 5:04 pm

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
amv2k9
That Strife Guy
 
Joined: 10 Jan 2010
Location: Southern California

Re: [ZScript] A_ChangeBloodColor

Postby Graf Zahl » Thu Dec 15, 2016 5:41 pm

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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Re: [ZScript] A_ChangeBloodColor

Postby amv2k9 » Thu Dec 15, 2016 5:53 pm

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
amv2k9
That Strife Guy
 
Joined: 10 Jan 2010
Location: Southern California

Re: [ZScript] A_ChangeBloodColor

Postby Major Cooke » Thu Dec 15, 2016 6:29 pm

Indeed, SXF_USEBLOODCOLOR just applied the blood color as a translation to the spawned actors.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007


Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest