XCOM 2
[WOTC] Iridar's SPARK Arsenal 3.2
 This topic has been pinned, so it's probably important
Iridar  [developer] Jun 11, 2020 @ 11:06am
KSM Custom Death Animations
When Kinetic Strike ability kills an enemy, custom kill/death animations will play, if possible. These custom animations may inexplicably fail to play in some circumstances, in which case the game should default to regular kill/death animations.

Custom animations are configured via XComKineticStrikeModule.ini by adding KSMSpecialDeathAnimation entries, for example:
[WOTCMoreSparkWeapons.KSMHelper] +KSMSpecialDeathAnimation = (CharacterTemplateName = "AdvTrooper", KillSequence = "FF_KSMKill_TrooperA", DeathSequence = "FF_KSMDeath_TrooperA", DeathAnimSet = "IRIKineticStrikeModule.Anims.AS_Trooper_Death")

Currently available parameters are:
  • CharacterTemplateName - character template name of the unit that should play the custom death animation when killed by Kinetic Strike. By default, partially matching template names are accepted. E.g. "AdvTrooper" will work for AdvTrooperM1, AdvTrooperM2 and AdvTrooperM3.
  • bStrictMatch - if this is "true", only character templates with exactly matching template names will be accepted. This can be used, for example, if you want a "Muton" to be affected, but a "MutonCenturion" - not.
  • KillAnimSet - path to an AnimSet that will contain a custom kill animation that will be used by the SPARK / MEC Trooper. It's not necessary to specify the AnimSet if it is already applied to the unit via any means. Refer to "IRIKineticStrikeModule.Anims.AS_KSM_Pawn" for examples on how custom kill animations should look like. Note that in this case the NotifyTarget (UnitHit) AnimNotify will signal the game when to start playing the custom death animation.
  • KillSequence - name of the animsequence that will be played by the unit to kill the target.
  • DeathAnimSet - path to an AnimSet that will contain a custom death animation. Similarly, there is no need to specify the path if the target already has that AnimSet applied.
  • DeathSequence - name of the custom death animsequence.
Last edited by Iridar; Jun 11, 2020 @ 11:07am