XCOM 2
59 ratings
Realistic Panic Behavior for LW2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
140.723 KB
18 Feb, 2017 @ 10:54pm
19 Feb, 2017 @ 12:36pm
4 Change Notes ( view )

Subscribe to download
Realistic Panic Behavior for LW2

Description
Changes the panic rules according to the table included in the mod screencaps. Click the image so it's not blurry anymore or read on.

RULES:
> One movement, one action. The units can use Dash moves and very, very seldom fire on aliens or teammates (trust me, it's bearable).

> Unit behavior is directly dependent on how many HPs it has left when it panics. As your HP drops, your possible moves and actions become less and less safe in the sense that your movement might put you into trouble (or not move at all!)

> If you have a 0 Willpower score, your unit will not move nor act and freeze in place.

> 10% of the time, the Action section is skipped and your second action is another movement instead, unless your first movement was a dash then this doesnt apply to you as you dont have any actions left.

-= ORIGINAL BEHAVIOR =-

LW2 units Hunker Down in place immediately. No movement is allowed.

-= A TWIST =-

Note that the Panic Root ALSO applies to Aliens and ADVENT just as it does to you.

-= RECOMMENDATIONS =-

Honestly if you don't play with Red Fog on for all units, you'll probably see your units dash halfway across the map into enemy territory. This mod was balanced around the fact damaged units move less and hit targets less. If you play with this as-is without Red Fog, you are in for a surprise when your squad panics.

-= COMPATIBILITY =-
LW2 1.1
Includes some AI stuff from Long War (Dash to lower cover), don't use with Vanilla.

-= REMOVAL =-
If you remove this mod, your current tactical game will use it until you're back in the avenger, then it's gone. So if you want to remove this, save outside of tactical.
28 Comments
Juravis  [author] 4 Jan, 2020 @ 1:30pm 
There are like 5 red fog mods on the shop.
Dragorm 4 Jan, 2020 @ 3:11am 
Red Fog?
Darquan 5 Jul, 2019 @ 5:18am 
We on the other hand want to see advent also affected by panic. How does advent morale system work, can they be affected by panic? If so how might we go about this? Thanks!
Juravis  [author] 27 Dec, 2018 @ 9:27pm 
You can't disable panic with AI, the Root is run every time one of your soldier panics. If the root is empty, invalid or such you will have broken soldiers. A much better approach would be to make everyone immune to panic effects. You need to mod however.
jessicest 27 Dec, 2018 @ 8:10pm 
Hi! I'm trying to disable panic completely.

I tried installing this mod, then modifying the first few lines of C:\Program Files (x86)\Steam\steamapps\workshop\content\268500\867355101\Config\XComAI.ini in an attempt to make panic never happen:

[XComGame.X2AIBTBehaviorTree]
; Root replacement.
-Behaviors=(BehaviorName=PanickedRoot, NodeType=Selector, Child[0]=Panicked_FirstAction, Child[1]=Panicked_LastAction, Child[2]=SkipMove)
+Behaviors=(BehaviorName=PanickedRoot, NodeType=StatCondition, Param[0]=eStat_HP, Param[1]="<", Param[2]="0%")

2However, this seems to have no effect -- sectoids can panic my soldiers, and they also collapse like idiots the moment one of their friends breaks a fingernail.

Can you see any problems with my approach, or suggest a simpler workaround?
Juravis  [author] 5 Mar, 2017 @ 1:04am 
You can change both < 50% SkipMove actions to Fire if you want, its real easy to tweak.
Experiments 5 Mar, 2017 @ 1:02am 
Agh... I really should... No, I HAVE to tweak it because I shouldn't have had no deaths above squaddie on max difficulty... If it's mods or me savescuming more than in the past I need to up the feels again. Just to 33% threshold at first but that may make it absurdly common for all I know. Damn your excellent work, avenging Advent.
Juravis  [author] 5 Mar, 2017 @ 12:53am 
I think the roll for HP is rolled AFTER the damage and panic, so the unit already needs to be < 25% and then take a small hit or become panicked by mind effects. Anyhow, if you want, you can tweak the percentages to your liking in the mod config INI hehe
Experiments 5 Mar, 2017 @ 12:46am 
Yep, and it seemed a statistical anomaly when similar technique had previously yeilded one every dozen battles or maybe per hundred enemies killed. The chart is massively appreciated, btw. Anyhow, you've got a point that small probabilities have variable frequencies. I'm just one data point, and perhaps somehow learned tactics no longer proc panic below the HP thresholds unless none occur by campaign end.
Juravis  [author] 5 Mar, 2017 @ 12:29am 
Remember that to see a firing occurence, this has to happen:
Unit panics
Unit has 50% or less HP at the time it does
Unit rolls 10% on a D100
Unit needs a valid target if its firing on enemies or allies