XCOM 2
[WotC] Sparks Can Bond
57 Comments
Lop 3 Jun, 2024 @ 6:12pm 
Protocol 1: Link to Pilot
hottt3 16 Sep, 2023 @ 6:20am 
I also need "Aliens can bond" mod:)
PatientLandBeaver 11 May, 2023 @ 10:17am 
I've tried using this mod in two different campaigns and while the Sparks can bond with other soldiers and Sparks, when in combat the bond perks are not available. Has anyone else experienced this issue?
Kinsect 8 Apr, 2023 @ 8:59pm 
Does this work with the LASER Spark classes as well?
ChaosFred 26 Sep, 2022 @ 1:48am 
Stuffs to add into note:
This mod is safe to be removed mid campaign. But may left a quirky after effect for any spark(s) that produced and soldier(s) recruited before removal. Any spark or soldier after removal are completely safe from any after effect from both the old or new.

If added mid-campaign, any spark before adding the mod may still don't have any compatibility with any other old (and new) soldier/sparks. The workaround is to "force bond" thru console or use "Spark can do convert mission" then look up those "Form bond" convert mission..
XpanD 26 Aug, 2021 @ 1:58pm 
Just finished a campaign with about 280 mods, this one included, and had no major issues! Thanks for putting this up, really helped me get my SHODAN on.
liftedBodhi 9 Nov, 2018 @ 12:00pm 
can you tell me if it is possible to have Sparks only be able to form bonds with Specialists?
Yagisan  [author] 13 Jun, 2018 @ 5:46am 
Some bond skills are deliberately excluded by Firaxis for SPARKS. I have not changed any of those limitations.
PatientLandBeaver 12 Jun, 2018 @ 11:39am 
I have two Sparks bonded with each other and when in combat they don't have any of the bond abilities available. Does this only work with 1 Spark and 1 human?
Sophist88 5 Jun, 2018 @ 9:23am 
Hello, @Yagisan. Very cool mod. I do wish it could fully bond with others (i.e. teamwork), but I can see it as a balance.
Questions:
Is raising SPARK CI also hardcoded and very difficult like giving them bidirectional bonds?

I get to here in a Robots on covert actions mod, but I don't know how to make SPARK eligible or to remove the check entirely.

static function bool IsNewUnitValidForIntSlot(XComGameState_StaffSlot SlotState, StaffUnitInfo UnitInfo)
{
local XComGameState_Unit Unit;

Unit = XComGameState_Unit(`XCOMHISTORY.GetGameStateForObjectID(UnitInfo.UnitRef.ObjectID));

if (Unit.ComInt >= eComInt_Savant || (!Unit.GetSoldierClassTemplate().bAllowAWCAbilities && !Unit.IsResistanceHero())) //not a soldier hero NOR can it get AWC abilities
{
// If this unit is already at the max Com Int level, they are not available
return false;
}

return IsNewUnitValidForCovertActionSoldierSlot(SlotState, UnitInfo);

Just curious about your take on this.
Emperor Mollune Veilis Emouran 23 Nov, 2017 @ 7:52pm 
can you make this work for custom spark classes
Tatourmi 16 Sep, 2017 @ 7:21am 
Thanks, great job! :)
Yagisan  [author] 16 Sep, 2017 @ 7:14am 
@Tatourmi - Yes.
Tatourmi 16 Sep, 2017 @ 6:17am 
Aere the other bonding skills still working?
Yagisan  [author] 13 Sep, 2017 @ 6:50am 
I'll try some more tests when I get some free time, but I'm not going to push out any changes I am not happy with.
Insufferable Smartypants 12 Sep, 2017 @ 1:02pm 
@Yagisan, if a bondmate could grant an action *to* the SPARK, even if the SPARK couldn't grant one back - that would still be pretty sweet.

I have a technitian bonded to a SPARK right now. They're becoming a pretty great duo.
Insufferable Smartypants 12 Sep, 2017 @ 1:01pm 
@Malidictus

The SPARK does have a point animation - is it the same point animation that soldiers use when granting actions? The sparks use it when using the fear ability and for something else that I don't remember atm.
Malidictus 11 Sep, 2017 @ 3:35am 
SPARKs not getting the teamwork skill probably has to do with how the skill is granted by the actual Bonding mechanic, which I don't know where that would be coded. I don't think they'd be able to use the skill properly anyway, since they don't have the associated mechanic. You could leave that limitation in as a balancing feature. SPARKs can't inspire humans, but they also don't get tired.

Honestly, I'm just happy to have the option for RP purposes :)
Yagisan  [author] 11 Sep, 2017 @ 2:53am 
@Augustus - Not this mod. It currently has No code overrides.

@Malidictus - I changed it to not exclude robots in my private branch. I could grant teamwork my Spark, but I still can't get the Spark to show the skill despite having met all the requirements. I am wondering if there is a hardcoded limitation.
Araphael 10 Sep, 2017 @ 11:36pm 
I'm not sure if it's you mod or maybe something else, but after completing an ambush mission with a SPARK my game keeps crashing, so I'm stuck on the load screen before returning to the map.
Malidictus 10 Sep, 2017 @ 9:07am 
Ah, I see:

TargetCondition.ExcludeRobotic = true;

That's not the only skill which deliberately excludes robotic units, though. A lot of the Psi Operative skills do, as well. The first one I ran across - Soulfire - has the same X2Condition_UnitProperty object added to it, with ExcludeRobotic set to true. In the case of Soulfire, that's a lore-based design choice - it's a psychic attacks and robotic enemies aren't affected by psychic effects.

I wonder if excluding robotic for Teamwork is a necessity or a similar lore-based decision, i.e. you can't be friends with a robot. Could be SPARKs don't have an animation to play for it, or somehow break when affected by it. For my own sake of curiosity, how would you go about changing that stat if you could? Pulling the BondmateTeamwork templates out of the manager would work, but I'm not sure how you'd address that specific limitation.
Yagisan  [author] 10 Sep, 2017 @ 6:59am 
@Malidictus - The function is called CreateBondmateInspireAbility located in X2Ability_DefaultBondmateAbilities.uc
Malidictus 9 Sep, 2017 @ 4:47pm 
Hey, fair enough. I just want my soldiers to be friends with my robots like Shen is with her Gremlin :) Incidentally, where is this specific and deliberate exclusion handled? Where the Teamwork skill is defined, I presume?
Yagisan  [author] 9 Sep, 2017 @ 3:33pm 
@Malidictus - Yes, but that would involve changing the unrealscript. It's very specfic in that it intentionally excludes robotic units, and no other skills do. I personally have no problem with this "limitation".

Once I have investigated what is needed to override only a single function, I'll come back and reconsider this.
Malidictus 9 Sep, 2017 @ 3:23pm 
Turns out that "bonding" is not retroactive. If you enable this mod during a campaign, all existing soldiers will still hate the SPARK and not want to be friends with it. Any new soldiers joining your roster, however, will not be as racist and will accept friendship from a machine.

As to Teamwork - is there a way to un-exclude it for SPARKs?
CrumbleCat 9 Sep, 2017 @ 6:09am 
Oh :pooboo: yeah, this is the kind of mod I need. :P
awkwardmoment 8 Sep, 2017 @ 3:40pm 
Its about time for this mod! The Sparks are way more than just a bunch of metal and wires!!!

very cool :steamhappy:
CmndrWolf 8 Sep, 2017 @ 1:16pm 
having this mod plus the titanfall sparks means we can have our BT-7274 titan and pilot bonds nice.
Yagisan  [author] 8 Sep, 2017 @ 7:38am 
@pheonix89 - I have identifed why this is the case. The Teamwork skill is specfically excluded by Firaxis from working on Robotic units. No other bondmate skills are.
Yagisan  [author] 8 Sep, 2017 @ 6:08am 
@Bobbers - Indeed.
Bobbers 8 Sep, 2017 @ 6:01am 
@Saskatchewan Wtf. W@t thë ƒü©k
cbass 7 Sep, 2017 @ 8:39pm 
Don't listen to them, 2B. They don't have any feelings. They're just imitating human speech. Let's take 'em out.
pheonix89 7 Sep, 2017 @ 2:27pm 
Sparks aren't getting Teamwork when bonded for me.
sparky. 7 Sep, 2017 @ 9:27am 
Yes!!!!!
Jaffapug 7 Sep, 2017 @ 4:45am 
"Stephanie change colour, attractive, niiiiice software!"
President Jyrgunkarrd 6 Sep, 2017 @ 3:11pm 
Funk capacitor overheating.

Boogie overload imminent.

사과잭 6 Sep, 2017 @ 4:23am 
The Singularity Is Near....!!!
Yagisan  [author] 6 Sep, 2017 @ 3:19am 
@Thanos They can bond with anyone, they just prefer other Sparks.
Yagisan  [author] 5 Sep, 2017 @ 11:36pm 
@SuperJesse64 - I`m going to need more details. They were all tested before upload, and have been restricted to the smallest possible change required. All my Better Double Agent mods are mutually exclusive, as they change the same lists.
darkzero 5 Sep, 2017 @ 7:22pm 
My spark got the option of bonding with the Templar...There's a joke in there somewhere.
CastledCard 5 Sep, 2017 @ 5:26pm 
ERROR ERROR. DOES NOT COMPUTE. WHAT IS THIS FEELING I AM FEELING. IS THIS... LOVE?
4rrakis 5 Sep, 2017 @ 1:57pm 
Does this unit have a soul?
SuperJesse64 5 Sep, 2017 @ 1:49pm 
Your mods currently don't work for me, both with and without ABA. Is there any known conflicts?
Swords 5 Sep, 2017 @ 1:43pm 
#roboboner
UATUU 5 Sep, 2017 @ 1:26pm 
Can sparks bond with humans, or just other sparks?
Scrooge McDuck 5 Sep, 2017 @ 1:20pm 
"Machines making machines, how perverse." - C3PO
teh1archon 5 Sep, 2017 @ 1:06pm 
Wall-E and Eva sparks when?
Setora 5 Sep, 2017 @ 11:24am 
Say that to the one Shen build, he has feelings!(at least he fake them well)
MayMayNaenae 5 Sep, 2017 @ 11:14am 
its time for some beep boop <3
UrFrenchNeighbor 5 Sep, 2017 @ 10:54am 
Pfff, robots don't have feelings.