Hi. I'm having some trouble with implementing custom death models. What I want is when a player has Dark Protoss upgrade, Tempest model is applied to Battlecruiser unit actor. So far I made it switch models when it's alive. However when the unit is destroyed, it plays battlecruiser death animation.
I've also added the following entry to Combat : CActorUnit_DeathCustoms array
Model:TempestDeathID:DarkProtoss
However I can't get TempestDeath model to play when the battlecruiser unit is destroyed, after it has switched into tempest model. It plays its original battlecruiser death model instead. It seems that changing the first entry in Combat : CActorUnit_DeathArray to play TempestDeath model works, but it would still play tempest death anim when I have no Dark Protoss upgrade. I want it to play tempest death effects only when dark protoss upgrade is applied.
Any help would be greatly appreciated. Thanks for reading.
Yes, and I have tried different names to see whether their priorities are messed up. I've found the names and priorities stored in SYSTEM_ActorConfig Actor. HOTS zergling actor uses names Upgrade, UpgradedAcid and such, along with corresponding entries in DeathCustoms array. My name fields are set up correctly just like zergling and command center does it.
DarkProtoss upgrade already includes Battlecruiser in its affected units array.
I found an article on Bnet forums saying something about a glitch in physics engine.
Quote:
For example, if you modify a CUnitActor's DeathArray field, and set a AnimProps for it. It's death actor would cease to handle almost all of the actor messages, and you can't change the death animation with any messages, unless you set the DeathArray[x].AnimProps field to 'Ignore'.
So far I've tried:
Battlecruiser actor had PhysicsDeathSwarmAir macro so I tried removing all macros.
I tried changing DeathModelActor to UnitDeathModel from UnitDeathModelwithDeathMotionFlier.
SOLVED. Reduced violence option was overriding all custom death animations for terran units. I've been testing my maps only on the editor. That option gets only disabled after Bnet login. I'm almost feeling stupid now, but got it done anyway XD
Hi. I'm having some trouble with implementing custom death models. What I want is when a player has Dark Protoss upgrade, Tempest model is applied to Battlecruiser unit actor. So far I made it switch models when it's alive. However when the unit is destroyed, it plays battlecruiser death animation.
I've added the following in the event tab:
I've also added the following entry to Combat : CActorUnit_DeathCustoms array
However I can't get TempestDeath model to play when the battlecruiser unit is destroyed, after it has switched into tempest model. It plays its original battlecruiser death model instead. It seems that changing the first entry in Combat : CActorUnit_DeathArray to play TempestDeath model works, but it would still play tempest death anim when I have no Dark Protoss upgrade. I want it to play tempest death effects only when dark protoss upgrade is applied.
Any help would be greatly appreciated. Thanks for reading.
Check how HOTS zergling does it. Sure you set the name field up right?
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Yes, and I have tried different names to see whether their priorities are messed up. I've found the names and priorities stored in SYSTEM_ActorConfig Actor. HOTS zergling actor uses names Upgrade, UpgradedAcid and such, along with corresponding entries in DeathCustoms array. My name fields are set up correctly just like zergling and command center does it.
DarkProtoss upgrade already includes Battlecruiser in its affected units array.
I found an article on Bnet forums saying something about a glitch in physics engine.
So far I've tried:
Battlecruiser actor had PhysicsDeathSwarmAir macro so I tried removing all macros.
I tried changing DeathModelActor to UnitDeathModel from UnitDeathModelwithDeathMotionFlier.
SOLVED. Reduced violence option was overriding all custom death animations for terran units. I've been testing my maps only on the editor. That option gets only disabled after Bnet login. I'm almost feeling stupid now, but got it done anyway XD
Meh. Solved is solved as long as you tell other people how to do it.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg