XCOM 2
186 betyg
[WOTC] Nonlethal Combat
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Filstorlek
Lades upp
Uppdaterades
281.857 KB
9 dec, 2021 @ 18:46
24 okt, 2022 @ 19:57
12 ändringsnotiser ( visa )
Du behöver DLC för att kunna använda denna artikel.

Abonnera för att ladda ner
[WOTC] Nonlethal Combat

I 1 samling av FearTheBunnies
OneGrumpyBoi Season 3 Modlist
582 artiklar
Beskrivning
About This Mod
Ever wondered why you can't just smack an enemy upside the head with the butt of your weapon and knock them out? Well... now you can, with TWO new abilities: Stunning Strike and Stay Down.
  • Stunning Strike is a melee attack that attempts to stun an enemy unit. The stun duration by default is 4 actions, which equates to 2 turns, but Stunned units may naturally recover early! Costs 1 AP but is turn ending.
  • Stay Down is a special melee attack that is activated when standing next to a Stunned unit that allows you to knock that unit Unconscious. Costs 1 AP and is NOT turn ending.

How It Works
There are a few restrictions to who you can target with Nonlethal Combat abilities.
  1. The unit must be at critical health (default 3 HP remaining).
  2. The unit must be organic (no knocking out MECs).
  3. The unit must not be undead (no knocking out Lost).
  4. The unit cannot be a Chosen.
  5. The unit cannot be a Ruler.
  6. The unit cannot be a large unit (no knocking out Berserkers or Gatekeepers).
Once all restrictions are met, then you can attempt to knock them out.

This was designed to help with capturing MOCX units and I figured, why not allow it to attack everything else?

Things to Note
  • Stun duration is counted in ACTIONS not TURNS. So 4 actions is normally equivalent to 2 turns.
  • Unconscious units do NOT count as kills for Experience and leveling.
  • Already configured for the undead units added in [WOTC] World War L, A Better ADVENT: War of the Chosen, ADVENT Warlock - WOTC
  • When using [WotC] The MOCX Initiative, ending a map will NOT auto-capture the unconscious units. They must be extracted before they can be converted.
  • Can be installed mid-campaign, but NOT mid-tactical.
  • Plays nicely with Interrogation And Recruitment and Extract Corpses WOTC
  • [WOTC] Execution is a way to deal with unconscious units keeping maps from being completable. This is no longer a requirement because knocking something unconscious is now a direct choice of the player as opposed to the only way to use this mod.
  • Unconscious units can be damaged with AoE attacks such as grenades.

Configurations
Configuration options that can be found in XComGameData_WeaponData.
  • MAX_HEALTH_SUBDUE: This is the threshold of how much remaining health (or less) the unit has to be targetable by Stunning Strike. By default it is set to 3, meaning this attack is equivalent to a 3 damage melee attack that can ONLY target units it can "kill" (knock unconscious).
  • bEXCLUDE_FULL_HEALTH: Flag controlling whether or not you can knock out healthy units. By default it is set to true representing that healthy units do not have a glass jaw.
  • bEXCLUDE_FRIENDLY: Flag controlling whether or not you can knock out friendly units. There is some strategic uses behind being able to knock out friendlies, and if you want to allow that, you now can. By default it is set to true representing that XCOM has a no-friendly-fire policy.
  • bEXCLUDE_ROBOTIC: Flag controlling whether or not you can knock out robotic units. By default it is set to true representing that robots are walking hunks of metal and don't care about being smacked.
  • bEXCLUDE_LARGE_UNITS: Flag controlling whether or not you can knock out large units. By default it is set to true representing that big bulky monsters cannot be Stunning Striked.
  • SUBDUE_DURATION: The number of actions for the Stun effect to last. By default it is set to 4 which equates to 2 turns.
  • bSUBDUE_ENDS_TURN: Flag that will toggle whether Stunning Strike should end the turn or not when you use it. By default it is set to true. Strongly recommended that you only set to false when also using bFORCE_ENEMY_WITHIN_TILE_RANGE.
  • bFORCE_ENEMY_WITHIN_TILE_RANGE: Flag to restrict how close an enemy unit can be to attack it with Stunning Strike. By default is set to false. Flip to true to require enemy units to be closer to the user before you can stun them.
  • FORCED_SUBDUE_TILE_RANGE: The radius which bFORCE_ENEMY_WITHIN_TILE_RANGE uses to define the radius in which enemies can be struck. By default it is set to 7.5 which is essentially 1 blue move for a 12 movement unit.
  • bSTAY_DOWN_ADJACENT_ONLY: This config option will allow for Stay Down to be toggled from adjacent knock-out to a moving melee knockout. By default it is set to true which means it will ONLY be usable when standing next to the enemy. If set to FALSE, it uses the same rules as Stunning Strike for AP costs and range.
  • bPATCH_DARK_EVAC: This config option is only relevant when using [WotC] The MOCX Initiative. By default it is set to true which will allow Stay Down to cleanse the Dark Evac state from MOCX units.
  • Targetting lists: There are three targetting lists, SUBDUE_TARGET_INCLUSION, STAY_DOWN_TARGET_INCLUSION, and TARGET_EXCLUSION. By default, the INCLUSION lists have no values and both Stunning Strike and Stay Down use the EXCLUSION list. If a unit type is added to an INCLUSION list, then that ability will ONLY be usable against units in the INCLUSION list for that ability. This will allow for the skill to be scoped to a specific enemy set, such as MOCX.

Configuration options that can be found in XComGame.
  • bAPPLY_SUBDUE_GLOBALLY: Defaults to true. Flipping this to false will keep Stunning Strike from being given to soldiers.
  • bAPPLY_STAY_DOWN_GLOBALLY: Defaults to true. Flipping this to false will keep Stay Down from being given to soldiers.

Requirements

Known Issues
  • A lot of Long War of the Chosen mods require No Unconscious AI which will make Stay Down just extend the Stun duration instead of applying Unconscious. To stop this, add "FTB_StayDown" to the list of exclusions in that mod's configuration.

Compatibility
Adds new abilities to all classes through scripting. Should be compatible with pretty much anything out there.

Thanks
  • Shout out to Reality Machina whose MOCX Initiative got me creating this guy, as well as using the code for the Execute MOCX as a guide to do this!
  • Daevinski, Skarsatai 2.0 and Crazy_eyed1 for the feedback around completing maps with Unconscious units.
  • MrCloista for the request to add all the new flexibility options!
96 kommentarer
Technical Difficulties 13 jun @ 12:14 
Thank you!!
FearTheBunnies  [skapare] 13 jun @ 9:20 
@Technical Difficulties I agree with Dragon32. Iridar's Hand to Hand mod is more what you are looking for. This mod cannot be changed to what you want from config edits, you would have to custom build a version for yourself.
Dragon32 13 jun @ 2:35 
@Technical Difficulties
Have you seen Iridar's "Hand to Hand Abilities" mod?
Technical Difficulties 12 jun @ 20:05 
I'm not really experienced in file editing for X2, but would it be possible to edit this so that rather than only targeting low health enemies and simply one-shotting them, it instead can target anyone but deals flat damage? I've been looking for something like the universal melee attack from Chimera Squad, and this is the only mod I've found that tries something even remotely similar to that.
FearTheBunnies  [skapare] 24 jan @ 9:48 
It does not support % amounts, only whole numbers.
SKRING 24 jan @ 7:37 
Hello author, your mod is very good and interesting. But is there any way to set the value of MAX.HEALTH_SUBDUE to 30% of the enemy's maximum health? I have no idea about this, please ask me for your advice.
FearTheBunnies  [skapare] 28 okt, 2024 @ 13:15 
If you want to exclude Faceless you can add them. We don't want to do major restrictions because you can stun mutons and vipers.
StickyBackPlastic 28 okt, 2024 @ 10:51 
Faceless isn't listed. Is it a simple case of adding it to the blacklist? - on a side note the skirmisher pull&slash can only target humanoids, could a similar condition be added/
FearTheBunnies  [skapare] 27 aug, 2024 @ 6:02 
@Lux Manifestus At the moment, no. I will look into adding that restriction in the next time I push an update to this mod.
Lux Manifestus 26 aug, 2024 @ 20:24 
Is there an easy way to exclude it from specific classes? I'm thinking about SHIVs.