Comment 2 for bug 895030

Revision history for this message
Marshall (m-edward) wrote :

Every animation should have a default "who invoked me" lookup to determine the player to mutate to, but you'd then need several overrides.
Example:

artmd.ini:
[PHEONIX2ANIM]
MakeInfantry=2
MakeInfantryNeutral=yes ;overrides the RP2 default 'mutate-into' player (in this case the owner of whatever caused the animation)

rulesmd.ini:
[PHEONIX]
DeathAnim=PHEONIX2ANIM
DeathAnimInvokerIsKiller=yes ;overrides the RP2 default 'mutate-into' player (in this case, the default would be the original owner of the player)

In the above example,
1. When PHEONIX dies it becomes a neutral PHEONIX2
2. Remove MakeInfantryNeutral=yes (or set to no). Now when PHEONIX dies it becomes a PHEONIX2 owned by the killer of PHEONIX.
3. Remove DeathAnimInvokerIsKiller=yes (or set to no). Now when PHEONIX dies it becomes a PHEONIX2 owned by the original owner of PHEONIX.

You might need other flags in rulesmd.ini to cover other special cases, although I can't think of any right now.
I definitely don't see any point for a random player-assignment.