[ZScript] A_ChangeBloodColor
Moderator: GZDoom Developers
-
- Posts: 8193
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
[ZScript] A_ChangeBloodColor
A dedicated function for setting different blood colors would be appreciated, if at all possible.
-
- Lead GZDoom+Raze Developer
- Posts: 49130
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [ZScript] A_ChangeBloodColor
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.
-
- Posts: 2178
- Joined: Sun Jan 10, 2010 4:05 pm
- Location: Southern California
Re: [ZScript] A_ChangeBloodColor
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.
-
- Lead GZDoom+Raze Developer
- Posts: 49130
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [ZScript] A_ChangeBloodColor
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.
-
- Posts: 2178
- Joined: Sun Jan 10, 2010 4:05 pm
- Location: Southern California
Re: [ZScript] A_ChangeBloodColor
Guess that's better than [No]. I assumed that pointers weren't exposed to blood yet because it couldn't be done period.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.
Last edited by amv2k9 on Thu Dec 15, 2016 6:32 pm, edited 1 time in total.
-
- Posts: 8193
- Joined: Sun Jan 28, 2007 3:55 pm
- Preferred Pronouns: He/Him
- Location: QZDoom Maintenance Team
Re: [ZScript] A_ChangeBloodColor
Indeed, SXF_USEBLOODCOLOR just applied the blood color as a translation to the spawned actors.