XCOM 2
135 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.
14 Comments
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
CunningSTOX 10 Jun @ 5:40pm 
Thanks for making this. Is it compatible with LWOTC?
Destrudo  [author] 30 May @ 1:15am 
@miku567
That's something new. It's either my oversight or\and a quirk of the SDK. Should be fixed now, unsubscribe and resubscribe if Steam won't update the mod automatically.
miku567 29 May @ 7:21am 
The official launcher (not AML) marks this mod as incompatible with WOTC, despite the fact that it works. Can you fix that?
Destrudo  [author] 6 Apr @ 7:02am 
@OverlordMGC ('-')7