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.
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: tral=yes ;overrides the RP2 default 'mutate-into' player (in this case the owner of whatever caused the animation)
[PHEONIX2ANIM]
MakeInfantry=2
MakeInfantryNeu
rulesmd.ini: PHEONIX2ANIM rIsKiller= yes ;overrides the RP2 default 'mutate-into' player (in this case, the default would be the original owner of the player)
[PHEONIX]
DeathAnim=
DeathAnimInvoke
In the above example, tral=yes (or set to no). Now when PHEONIX dies it becomes a PHEONIX2 owned by the killer of PHEONIX. rIsKiller= yes (or set to no). Now when PHEONIX dies it becomes a PHEONIX2 owned by the original owner of PHEONIX.
1. When PHEONIX dies it becomes a neutral PHEONIX2
2. Remove MakeInfantryNeu
3. Remove DeathAnimInvoke
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.