[Added] CopyBloodColor

Moderator: GZDoom Developers

CopyBloodColor

Postby Nash » Mon Mar 23, 2020 11:28 am

https://github.com/coelckers/gzdoom/pull/1052

The use case is simple: if you want to spawn additional body parts of a monster, but have it work in a generic way (meaning, you don't know the monster's blood color), all this does is just copy the blood color and translation fields over to the other actor.

I understand that there was a previous PR to SetBloodColor but it had issues with serialization. I believe that CopyBloodColor should cover most typical use cases (the ability to change a blood color of a matching actor at runtime, for special effects) and because it's copying an already existing translation, it shouldn't introduce any additional issues than what is already in the engine with regards to translation.

Any more complicated modder use cases of setting a blood color dynamically is something my PR is never meant to cover.
User avatar
Nash
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Re: CopyBloodColor

Postby Marisa Kirisame » Mon Mar 23, 2020 3:07 pm

Good.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: magusmarisa
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests