XCOM 2
No More Cheese
15 Comments
Malidictus  [author] 8 May, 2019 @ 6:00am 
Agreed. The AI has too many cheesy tactics it can try with little cost to itself. If we end our turn on pretty much any offensive action, so should they.
hammerstar 8 May, 2019 @ 12:46am 
Downloaded this solely for the viper tongue change. Hated how many times they'd use the tongue, miss, and then poison spit out of spite.
Malidictus  [author] 30 Sep, 2017 @ 2:40pm 
That turned out to be a bit more difficult than I expected, since action point costs share the same array as ability charge costs and potentially other costs I'm not aware of. That and I can't rely on action point costs to be the first item in the AbilityCosts array. Had to trace through that array, attempt a typecast on all AbilityCost objects and attempt to change the bConsumeAllPoints to true only on the objects which actually pass the typecast. Should avoid random crashes or unpredictable behaviour.

Incidentally, there's now an array of abilities which will all be set to end the turn if desired, so this functionality should be more easily extensible.
Malidictus  [author] 30 Sep, 2017 @ 12:01pm 
@-bg-

Well, a year and a half later, I finally got around to trying to make the Avatar's Dimensional Rift and Null Lance end their turn explicitly. Dimensional Rift was easy (I think, haven't had the chance to test it). Pull the 'PsiDimensionalRiftStage1' ability template, grab its typecast the only AbilityCost it has as an ActionPointCost, set bConsumeAllPoints to true, just like you said.

The trouble is Null Lance. Near as I can tell, Avatarts use the same Null Lance that Psi Operatives do, which is already set to end the turn when used. Near as I can tell, all of the Avatar's abilities are attached to its Psi Amp. I can find two of them - AdvPsiWitchM2_PsiAmp and AdvPsiWitchM3_PsiAmp. Not sure what they are, but both reference the ability 'NullLance', which is defined in the PsiOperative class and ends the turn already.
Malidictus  [author] 30 Aug, 2017 @ 8:46am 
Updated this mod to War of the Chosen. The ini file lines this mod targets have not changed so those should still work. There's a minor UnrealScript override for the Gatekeeper Mass Psi Reanimation ability to add a Shred effect. The majority of this was still the same, though a line to do with knockback was missing and a new auto-generated line had been added. Updated those.

So the mod SHOULD work. I haven't had the opportunity to test it, however, so let me know if it still works.
Malidictus  [author] 22 Jan, 2017 @ 4:02pm 
Yes, it is. Long time no see :)
Zombra 22 Jan, 2017 @ 1:56pm 
Samuel_Tow? Is that you?
Kikibreeki 20 Dec, 2016 @ 12:18pm 
TOBUSCUS!
Malidictus  [author] 30 Jul, 2016 @ 7:02pm 
Ah, gotcha. I'll look into that, then. I'm... Not nearly as good at Unreal Engine as your own mods :)
-bg- 30 Jul, 2016 @ 3:51pm 
unfortunately, no. But those abilities are op enough to be your only move, and AI are not smart enough to use non turn abilities before moving to cover anyway
Malidictus  [author] 30 Jul, 2016 @ 10:32am 
That said - will the AI know how to handle this? Normally, the AI will move before using turn-ending abilities, but will it know to do that with those if they start ending the turn?
Malidictus  [author] 30 Jul, 2016 @ 10:32am 
I'm still trying to figure out how to "get" stuff out of the templates. Near as I can tell, there are no getters for anything. It's what causes me to do it the "wrong" way of replacing entire templates. But yes, that's what I was thinking - find the action points cost and set it to consume all.
-bg- 30 Jul, 2016 @ 10:28am 
yup, the rift and lance don't end an avatar's turn when they are used as first action.

you can patch then by editing their template, look for the first x2abilitycost_actionpoints and set bConsumeAllPoints to true
Malidictus  [author] 30 Jul, 2016 @ 5:27am 
Hmm... I don't have THAT much experience with Avatar abilities. Which ones do you mean? Adding a turn end to them shouldn't be too difficult, though I might need a better way of doing that than what I'm currently using. Are you referring to stuff like Psionic Rift and Void Lance and such?
-bg- 29 Jul, 2016 @ 9:03pm 
the cheesiest is still those avatar abilities don't end turn