XCOM 2
1,006 ratings
Squad Cohesion
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
676.403 KB
Apr 6, 2016 @ 6:37pm
Jun 17, 2017 @ 11:14am
54 Change Notes ( view )

Subscribe to download
Squad Cohesion

In 1 collection by RealityMachina
RealityMachina's Mods (and the occasional other mod you should try)
65 items
Description
This mod puts a dash of Fire Emblem into your XCOM, leveraging a "squadmate score" system left in by Firaxis to give small buffs for squads that trust in each other.

LATEST UPDATE
Allowed Squads button to be manually enabled in LW2 (in XComSquadCohesion.ini), fixed math errors courtesy of Infernalis

Description

NOTE: This should now generally work with LW mods, including LW2. You will need to shift around the UI elements a bit though in the .inis.

The total cohesion score of a squad is calculated from the cohesion each soldier has with each other, and divided by the squad's size. So a four person squad that has max cohesion with each other will have a score of 400.

The squad cohesion levels, by contrast, are *multiplied* by squad size. So a four person squad has the low, medium, and high score requirements of 100 points, 200 points, and 300 points. A 10 person squad will have the requirements of 250, 500, and 750.

This means a 2 person squad can hit max cohesion if they know each other really well, while a eight person one may barely be able to hit the low amount even if some of them are at max cohesion with each other.

The values shown only update once you go to add a new soldier to the squad, not when you remove one.

The system works as such with the default values:

Below (25 * SquadSize) points, squads work as normal

At (25 to 49 * SquadSize) points, a deployed squad gains a buff of +2 Aim, +2 Def, +5 Hacking, +5 Psi Offense, and +10 Will

At (50 to 74 * SquadSize) points, a deployed squad gains a buff of +5 aim, +5 Def, +2 Crit Chance, +10 hacking, +7 Psi Offense, +1 Mobility and +15 Will

And at and past (75 * SquadSize) points, a deployed squad will gain a buff of +5 aim, +5 Def, +5 crit chance, +2 Mobility, +15 hacking, +10 Psi Offense, and +20 Will

These buffs and more can be adjusted at the XComSquadCohesion.ini located in (wherever XCOM 2 is installed)steamapps\workshop\content\268500\660665065\Config


Squadmates earn cohesion between each other by:


Vanilla Methods
Healing a soldier for +5 points
Stabilizing a downed soldier for +15 points
Carrying a downed soldier out of the battlefield for +30 points
And killing an enemy flanking a soldier for +10 points

These are all governed by XComGameData_XpData.ini that comes with the mod located in (wherever XCOM 2 is installed)steamapps\workshop\content\268500\660665065\Config. These also are all between the two soldiers that do them, no more.

Mod-added Methods
At the end of every mission, a change in cohesion between all squadmates (IE each squadmate will get the bonus or penalty with every other squadmate) will be done by getting:
Was the mission done? +5 points.
Was the mission flawless in terms of soldier injuries and fatalities? +5 points more.
How many ayys were killed? Get 10% of that in points.
Did anybody die? -3 points per death.
Did anybody get captured? -2 points per capture.
Did anybody get injured? -1 points per injury

Like the buffs above, these can be adjusted at the XComSquadCohesion.ini located in (wherever XCOM 2 is installed)steamapps\workshop\content\268500\660665065\Config


Penalties
In addition to the above, a soldier dying in a squad with some cohesion will cause everybody who knew that soldier well enough to roll for shaken.

By default:

If they didn't know them that well, nothing happens.

Each soldier in a low cohesion relationship with the dead soldier (25) will have a 20% chance of getting Shaken if a soldier ends up dying in the mission.

Each soldier in a med cohesion relationship with the dead soldier (50) will have a 40% chance of getting Shaken if a soldier ends up dying in the mission.

Each soldier in a high cohesion relationship with the dead soldier (75) will have a 70% chance of getting Shaken if a soldier ends up dying in the mission.

You can get a rough overview of soldiers relations to one another via their cohesion ratings in the personnel lists, along with seeing exact scores in the Armory Menu.

The vanilla chance of Shaken being applied to a soldier that got gravely wounded is left untouched.


Cosmetic/Quality-Of-Life Features
Individual relationship scores should be viewable by clicking on the Relationships button when viewing a soldier in the Armory.

There is now a squads organization feature at squad select, you can now save squad compositions you know work well with each other. (This can be disabled in the .ini if used with LW2)


Can't figure out what to name the squad you have? Just leave it blank, and the mod will auto-generate a squad name to go with the given squad composition.


Incompatibilities?

This mod uses UIScreenListeners to do all the major work, however some mods still conflict like:

Game Crashes on Tactical Load - unsub and resub to make sure you have the latest update, I believe I have found the issue to be the game trying to add new cohesion abilities to a team that already has one set, and set in an auto-check to prevent that. If it still crashes please report it.

Please go here to report any issues along that line.

I'm using a 21:9 Screen and I can't find the Relationship button
Change the following in the XComSquadCohesion.ini from
[SquadCohesion.RM_ArmoryMenu_ScreenListener]
POSITION_X=-250
POSITION_Y=70

to

[SquadCohesion.RM_ArmoryMenu_ScreenListener]
POSITION_X=-850
POSITION_Y=70

Credits
Full credit to Falcon and his Uniforms Manager mod, which this mod uses a modified version of its code for the squad management functionality.

Thanks to MantLemon for making the Chinese localization.
Popular Discussions View All (11)
41
Jun 19, 2016 @ 11:57pm
"My game is crashing on tactical load or when I try to move a soldier after loading"
RealityMachina
8
May 23, 2016 @ 10:01am
XCOM 2 start-up screen acknowledges the mod, but it's not working in-game.
Illusive
6
Dec 27, 2018 @ 9:43am
You state that LW 2 is compatible but fail to state how
phillosopherp
567 Comments
Alexander Oct 19, 2023 @ 7:56am 
PLEASE UPDATE! I love the mod
Warboss Thrakka Sep 22, 2023 @ 2:58pm 
Does this mod increase squad size to 8?
Destruin Jul 26, 2023 @ 10:43am 
I really enjoy the sound of this mob. I hope you swing back to give this a brush up for WotC.
RoxeusRose May 23, 2023 @ 8:08pm 
Ojala algun dia esta joya este wotc :sfcredits:
New Times Roman Feb 21, 2023 @ 12:56pm 
Still Broken
Clutch☆Kid☆Kieron Feb 3, 2023 @ 7:48am 
Still no LWOTC compatibility, feelsbadman
Remember No Russian Dec 20, 2022 @ 7:27pm 
WOTC patfch please?
Silent Jack Sep 8, 2022 @ 4:03pm 
I hope this someday gets a wotc update, this is such a great mod being left in the gutter.
poka Apr 30, 2022 @ 2:31am 
Hope someone will port this to WOTC. The Squad Based Roster contained game-breaking bug. I cannot play without any sort of squad cohesion mods anymore.
marshmallow justice Feb 11, 2022 @ 10:26pm 
I see a lot of comments on old mods where people say it's not compat. with WotC, but from what I remember when WotC came out (as this mod is favorited in my history still) this, among others, were in my playthrough (around 288 mods) when WotC first came out and I played fine. Did something change? I just came back to XCOM