Skip to content

Expose colorization to mappers and SOC

Tatsuru requested to merge Tatsuru/SRB2:dye into next

This is an attempt to make the colorize mobj_t setting accessible to mappers and people who make use of SOC actions. I'd mark it as a WIP but as far as my knowledge goes this is pretty much all I think I should do so I appreciate corrections and suggestions 😩

SOC Action: A_Dye

var1 being non-zero will color the actor's target instead of the actor themselves. var2 specified the SKINCOLOR_ value to color the target or actor. SKINCOLOR_NONE or 0 will remove the dye.

Linedef type 436: Dye Object

This linedef executor will dye players or pushables that trigger it. The color to dye the triggering player or pushable must be specified along the upper textures' names, though the constant's value will also work.

Linedef types 334 - 336: Trigger linedef executor: Object dye

334 - Continuous / 335 - Each Time / 336 - Once

These linedef types will run its respective executors when a player or a pushable dyed a specific color triggers them. The desired color is specified in the same way as type 436. Giving the linedef the Not Climbable flag will invert the linedef's triggering conditions: it will only be triggered if the player or pushable is dyed any color except the one specified, non-dyed included.

Edited by Tatsuru

Merge request reports

Loading