XCOM 2
Realistic Panic Behavior for LW2
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
Juravis  [author] 5 Mar, 2017 @ 12:27am 
Firing occurences are VERY rare. I've seen ONE since i play, and its an ADVENT Rocketeer that turned around and fired far away on one of his comrades.
Experiments 5 Mar, 2017 @ 12:24am 
On my current campaign I haven't seen any panic-induced friendly fire (XCOM or Alien). Not enough suffering. Unless others get the same I'm a sample size of only a few dozen battles. If this is still pristine I should start rooting around for compatibility issues. Morale Mod alters Will but pretty sure they worked together last LW2 campaign for me...
FlamingBlade 23 Feb, 2017 @ 7:08pm 
so now they just rout?
Juravis  [author] 21 Feb, 2017 @ 6:59pm 
LW2 has the toolbox integrated into it, unsub from the Toolbox. Once thats done, the Red Fog options will be in the Options menu below graphics video etc. Pick Red Fog All and click Linear Fog.
NoLiMiT72X 21 Feb, 2017 @ 6:27pm 
I am playing with the LW2 mod and there is no "red fog" option to enable it. And if i read about the LW_Toolbox, it seems incompatible with LW2 mod. Do you have an idea that could help me to install your mod with "red fog" pls??
Juravis  [author] 20 Feb, 2017 @ 4:34pm 
@Jhereg It's why i reduced the 2nd movement %. I might even cut it entirely. I like movement, but sometimes XCOM units go bonkers and move a lot for my taste. 10% is fine for now, also try not to get your units below 25% HP it's the dash threshold where it happens a lot.
Juravis  [author] 20 Feb, 2017 @ 4:33pm 
If you want to remove the dashes go to the XCOMAI.INI file and replace all the functions who have dash inside them and just copy paste the regular ones.
[PBS] Kafka Rambo 20 Feb, 2017 @ 4:11pm 
Great! I've been missing flee-freeze-fight -reactions from vanilla Xcom 1
=[NK]= Col. Jack O'Neil 20 Feb, 2017 @ 10:12am 
Do you know what I'm talking about though?? The mechanic that enemies will move to the path that's between the average width of your party and to the objective? I can't remember the name of the line though..

Is there maybe a way to make the ini editable so they can't dash with 2 movements, for those of us who don't use red fog?? :)

Regardless thanks for this and all the other great mods :)
Genom 20 Feb, 2017 @ 8:41am 
Panic just for Xcom or anyone&
Jhereg 20 Feb, 2017 @ 8:03am 
Thanks Advent Avenger!
Glad to see you had time to do this, working well. Seems to be a little more towards the enemy than the last version for vanilla. Could just be my luck and the angles on the Ayyys.
Oblivious Naga 20 Feb, 2017 @ 3:56am 
I have been waiting for this mod and it does not dissapoint (Thankyouthankyoutahnkyou)
Juravis  [author] 19 Feb, 2017 @ 1:14pm 
Oh it works alright. I saw an XCOM unit without red fog go over the top of a building to the other side and activate a pod which then promptly flanked the panicked unit. You really, really need to use Red Fog or you will cry. Dash movement is really horrible ;)
Experiments 19 Feb, 2017 @ 1:11pm 
(Evil laughter) This is an exciting change. I'd better check it works by putting units under extreme stress...
Juravis  [author] 19 Feb, 2017 @ 10:17am 
The units dont check the objective they check if the movement they are doing gives them line of sight to a friendly unit. Unless theyre hurt a lot in which case theyll just bolt out in any space sometimes far far away...
=[NK]= Col. Jack O'Neil 19 Feb, 2017 @ 2:31am 
Is there not a way to try make the soldier follow that path thing xcom does, where it knows your location and the objective, no way to make the soldier aim for that but away from the objective??
Cylindryk 19 Feb, 2017 @ 2:23am 
-= A TWIST =-

Note that the Panic Root ALSO applies to Aliens and ADVENT just as it does to you.
Martigen 19 Feb, 2017 @ 2:09am 
Possibly silly question, is this only XCOM behaviour or aliens also?