XCOM 2
147 ratings
Heavy Weapons Knockback Fix
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
339.347 KB
2 Apr @ 8:26am
30 May @ 1:10am
2 Change Notes ( view )

Subscribe to download
Heavy Weapons Knockback Fix

Description
Overview
This mod fixes broken knockback animations when enemies are killed by certain line- or cone- targeted abilities, which are mostly tied to Heavy Weapons. Even though it's a minor issue, once noticed, you'll probably have a hard time to unsee it. Check Iridar's video above to get the general idea.

The mod fixes four abilities for regular soldiers and SPARKs:
-Null Lance;
-Plasma Blaster;
-Shredder Gun;
-Shredstorm Cannon.

Why the mod?
When I was working on Psi Havoc I noticed that knockback animations from kills by Null Lance and some other abilities act a little strange. When the target is facing the attacker, it just goes down without ragdoll. Could be considered a normal behaviour, but It's getting weirder, when you try to attack the enemy from another directions. In that case there's a knockback, except that killed enemies fly...towards the attacker. The problem stems from the game using the same logic when calculating knockback for circle, line, and cone targeting methods. It works fine for the circle, but not for the other two. My mod utilizes a function found in Iridar's SPARK Arsenal to fix knockback direction by replacing the abilities' target location relative to the input context.

Credits
Iridar - for Iridar's SPARK Arsenal.
18 Comments
Destrudo  [author] 6 Oct @ 8:08am 
Much appreciated
Zelfana 6 Oct @ 7:54am 
I guess I can look into doing that, looks simple enough of an OPTC.
Destrudo  [author] 6 Oct @ 7:43am 
Sorry, I don't have the game and modbuddy installed, nor do I plan to get back into modding anytime soon. But you're welcome to reupload the mod or include it into your Assorted Fixes - that would be great, actually.
Zelfana 5 Oct @ 11:23am 
Could you change the config to not use indexes. Makes it impossible for multiple mods to add things to it without stepping on each others' toes.

+AbilityToAddProperKnockback="NullLance"
+AbilityToAddProperKnockback="PlasmaBlaster"
+AbilityToAddProperKnockback="ShredstormCannon"
+AbilityToAddProperKnockback="ShredderGun"
+AbilityToAddProperKnockback="SparkPlasmaBlaster"
+AbilityToAddProperKnockback="SparkShredstormCannon"
+AbilityToAddProperKnockback="SparkShredderGun"
Destrudo  [author] 1 Jul @ 11:18pm 
@Daddy Takeda
Yep
Daddy Takeda 1 Jul @ 4:12pm 
Does it take effect mid campaign?
Destrudo  [author] 26 Jun @ 2:40am 
@Rtma Eros Paragon
No, you don't need this if you have SPARK Arsenal, they fix the same thing. The only difference is that the standalone fix also applies to Null Lance by default. You can add it to Iridar's mod via ini edit, if necessary.
Rtma Eros Paragon 26 Jun @ 1:40am 
Do you need this if your using Iridar's SPARK Arsenal?
CunningSTOX 12 Jun @ 9:40pm 
Thanks I'll try it out.
Destrudo  [author] 12 Jun @ 8:53pm 
@CunningSTOX
LWOTC doesn't modifiy targeting methods afaik, so it should be compatible with the fix. Can't be 100% sure though, I didn't test them together