XCOM: Chimera Squad

XCOM: Chimera Squad

Create and Share Mods
Create your own enemies, characters, weapons, maps, and other content to expand XCOM: Chimera Squad. Mods are created by and for the XCOM community and are not officially supported by Firaxis or 2K.
[Mod Request/Help] Shelter relocate enhancements
I'm looking for a means to mod Shelter's Relocate such that:

1. Shelter can always switch with his fracture/copy, even if he doesn't have line of sight. Provided I can get this working, I'd like to add a buff when he switches like this (or his copy switches with him), like +15 to +20 aim (assuming he's sharing senses with his counterpart).
Can an experienced modder give a hint, or at least let us know if it's possible to combine different kinds of targeting like this? Or would we have to make this a new ability strictly for switching with the copy?

2. Allowing Shelter a free move after a relocate, though about half his standard (non-dashing) distance.

3. Allowing Shelter to switch with a grenade (on the timeline). While I was able to change the ability target conditions to allow targeting of non-units, apparently the code in X2Ability_TemplarAbilitySet that is used for Relocate expects XComGameState_Units, and not XComGameState_Destructibles. I think I'll have to use modified copies of those functions, and thus a separate ability just for swapping with a grenade, but I'm looking for any additional hints here, how to only target grenades on the timeline and not other destructible environmental objects.

Of course if anyone wants to run with this and make their own mod with these ideas, please do.
Last edited by InverseFalcon; 6 May, 2020 @ 11:35pm
< >
Showing 1-1 of 1 comments
chair5768 8 7 May, 2020 @ 6:43am 
I'm not experienced enough to say for sure how to do things, but I'll answer what I'd try first in case someone more experienced doesn't come along.

2. There's a way to give action points on ability use already built in, check out Hellion's momentum or Inquisitor's Tongue Pull for example. Add a point of type "move" (the types can be found in X2CharacterTemplateManager). After that, if you want to make it at reduced movement, create a custom X2Effect that reduces Shelter's mobility with a watchrule setup to remove it then attach the effect to his relocate.'

1. I'd add a second, list-invisible, ability that's only available with fracture active, that's basically a copy of relocate but gives the additional aim buff and can only target the fracture. You could make them share a cooldown too but, since it uses an actionpoint anyway, if a player really wanted to relocate once with a fracture and once with something else, I don't think it'd be a big deal.

Another possibility, is to use the bVisibleToAnyAlly flag in the visibility condition; this would allow him to use relocate on anything any ally could see, if you don't mind that. Then maybe give both him and his fracture and invisible ability that acts as a condition for the buff.

3. Dunno, you're probably on the correct path already.
Last edited by chair5768; 7 May, 2020 @ 6:46am
< >
Showing 1-1 of 1 comments
Per page: 1530 50