XCOM 2
33 valoraciones
[WOTC] Fix Controller Grappling
   
Premio
Favoritos
Favorito
Quitar
Tamaño
Publicado el
Actualizado el
38.125 KB
11 ABR 2019 a las 5:51 p. m.
19 ABR 2019 a las 8:05 a. m.
11 notas sobre cambios ( ver )
Necesitas contenido descargable para poder utilizar este artículo.

Suscríbete para descargar
[WOTC] Fix Controller Grappling

Descripción
This mod fixes the annoying interaction with grapple targeting while using an xinput controller. It does so by making the ability require activation before targeting.

When you target with a grenade, you have to activate targeting. Once targeting is active, the game registers all dpad inputs as camera manipulations. This mod adds grapple and blazing pinions to this list.

In addition, in case I missed any abilities, I've made the list configurable. So if a mod adds a new targeting method, you can add it to the config file here::
%steamdir%\steamapps\workshop\content\268500\1709949270\Config\XComFixControllerGrappling.ini
The bug
The vanilla way the grapple is implemented picks the nearest valid location, and then centers the camera on your soldier.

Grapple targets are usually on a higher elevation than your soldier, so when you press UP on the dpad, it decides to switch to a different ability. This cancelling your grapple targeting. (Trying to rotate your camera also cancels out).

Activated Targeting
Activated targeting is a special mode for controllers only, It should have no impact on Mouse input mode.
There is a hardcoded list of targeting methods that get special consideration for controller. If the current ability's targeting method is on this list, or inherits from an element on this list then it must be activated before it brings up targeting.
The list::
  • X2TargetingMethod_Grenade
  • X2TargetingMethod_Cone (e.g. Kill Zone)
  • X2TargetingMethod_Line (e.g. Dark Lance)
  • X2TargetingMethod_BlasterLauncher
Note, that targeting methods that inherit from one of these templates also get this treatment. So while not explicitly listed, Gremlin AoE methods are also on this list.

The Fix
I've now added grapple, path targeting (ionic storm and other friends) and blazing pinions to the list.
Meaning, that pressing A on grapple (or Blazing Pinions if you are mind controlling an Archon) now activates the targeting mode for grapple and you can now raise the elevation, rotate the camera or do whatever. Cancelling out of this mode requires you to press B like you would with a grenade.

source code available on github [github.com]

FAQ
Q. Does this work with vanilla?
A. No, and I have no idea how to make it do that. The change is very simple, Please take a look at the code on github.

Q. You idiot, you forgot about Ability! How can I add support for my modded ability that doesn't use one of these methods?
A. There is a list in XcomFixControllerGrappling.ini. You can add targeting methods to it.

Special thanks to Mr.Nice who basically wrote this mod in the highlander.

If you're using this mod please like and favorite it, as it helps get attention.
Also if you find any other abilities in the base game that need this special treatment, I'll be happy to incorporate them.
20 comentarios
jat11241976 22 ENE 2023 a las 4:29 p. m. 
Same as hottt3 and katastrophie. Hoping this is a false flag.
hottt3 15 NOV 2022 a las 7:53 p. m. 
AML tells that this mod is in conflict with https://steamproxy.net/sharedfiles/filedetails/?id=1374808007
Katastrophie 29 SEP 2022 a las 12:27 a. m. 
Anyone know if this mod will cause issues with [WOTC] Unlimited Ability Icons? AML says there's a conflict. I looked through the mod files and see that both of these mods edit UITacticalHUD_AbilityContainer inside the XcomEngine.ini file. I know some conflicts can be ignored but I'm not sure if this is one of those cases.
WelfareRecipient  [autor] 17 ENE 2022 a las 8:54 a. m. 
It's quite possible. I don't know if they just use the vanilla four targeting methods or include the additional ones this mod adds.
Zarkil 17 ENE 2022 a las 2:46 a. m. 
@WelfareRecipient Was looking through the highlander and I believe it has this built in now.
WelfareRecipient  [autor] 3 ABR 2021 a las 9:20 a. m. 
xinput is an xbox controller yes. This does not work if you use the steam controller integration.
Boberto 2 ABR 2021 a las 6:58 p. m. 
"while using an xinput controller". Is that different from an Xbox Controller? Will this affect Xbox Controller users?
togan77 23 ABR 2020 a las 8:27 p. m. 
Thumbs Up and Faved
My Grapple with Wraith Suit was working fine till my skill pool got too large, where once I activate grapple it would only move my skill selection up or down upon D-PAD input. Making grapple useless!! Until this mod of course fixed all that.
Zarkil 14 MAR 2020 a las 6:01 a. m. 
@WelfareRecipient Thank you, thank you so much for this!
Feyn 7 MAR 2020 a las 1:21 a. m. 
What targeting method controls main weapon ?