XCOM 2
101 ratings
Dynamic Enemy Creation (BETA)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
45.162 MB
25 Jan, 2019 @ 9:51am
28 Jan, 2019 @ 2:51am
4 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Dynamic Enemy Creation (BETA)

Description
This mod is an experimental API that provides three core functionalities for modders:

- Create units from config alone. You can define templates, assign them abilities and movement presets, and adjust different values just like you would with code. This makes prototyping enemies a much easier process.

- Give units stat and ability upgrades based on force level, alert level or the progress of the avatar project. Upgrades can have a chance to apply. This functionality relies on the 'EnemyResearchBonus' perk, which is automatically added to all units, including enemies from other mods. The ability to also patch loadouts and loot tables with these upgrades will be added in a future update.

- Customize unit tints, scale and body parts (the latter is ADVENT only, requires the Advent pawn shipped with this mod). This functionality is ported from the vanilla LW Alien Pack.

To get started, take a look at XComAlienResearch, XComAlienCustomization and XComGameData_CharacterTemplates. The configs contain basic info about the data structures used, and more documentation as well as an indepth guide are in the works.
62 Comments
Dman883 19 Apr, 2023 @ 2:02pm 
Seconded on the inability to target enemies after loading a save game during combat. Not sure if it's just the mod or a conflict with another mod.
Stukov81-T.TV 15 Dec, 2022 @ 9:16am 
i was unable to make it use doom counter ... it appears it would always read 0 doom. at least that's what i had when trying to setup Advent Evolution
TheProtofire 14 Dec, 2022 @ 10:57pm 
Can someone help me set up this config? I am trying to give Advent upgrades based on the Avatar meter. At 6 points of progress, all enemies gain small bonuses to all stats that increase with each additional point. I have tried several different campaigns and tested on missions when progress is at 6 but I cannot get any of the upgrades to apply. I've tested with Tier 1 troopers and they always show up with the default stats.

+ResearchStatBonuses = (UnitName = AdvTrooperM1, UpgradeID = "AvatarLv6", Stats = ( (StatType = eStat_HP, StatAmount = 4), (StatType = eStat_Offense, StatAmount = 10), (StatType = eStat_Defense, StatAmount = 5), (StatType = eStat_ArmorMitigation, StatAmount = 1), (StatType = eStat_CritChance, StatAmount = 5), (StatType = eStat_Mobility, StatAmount = 1), (StatType = eStat_Dodge, StatAmount = 5), (StatType = eStat_Will, StatAmount = 5) ), IgnoreFL = true, IgnoreAlert = true, IgnoreDoom = false, MinDoom = 6, MaxDoom = 12, AlwaysApply = true)
Withstandinator 7 Sep, 2022 @ 11:47pm 
Just as a data point in case it helps anyone I have a consistent bug report. I have this and all the base mods for LWotC, and then at any point during a mission if i save and reload a turn then none of the enemies are target-able and I can't interact with any map objectives.

If I grenade them then they work fine again, or if I skip a turn and the enemy moves themselves, but I was out of grenades for a mission and couldn't trigger the button.
Stukov81-T.TV 13 Jul, 2022 @ 7:22am 
apparently not for everyone. i have seen it happen on other streams, but for me i never had any problem with an objective so far. can't talk about chosen stronghold
Malek Deneith 12 Jul, 2022 @ 3:41pm 
As a warning to anyone who might stumble upon this comment section I must confirm that like others mentioned having this enabled caused campaign-long issues with activating objectives but also caused crashes during final chamber of chosen stronghold assault.
Which is a crying shame because the idea of this mod is great.
Stukov81-T.TV 1 Feb, 2022 @ 12:45pm 
Why have I not seen this mod earlier. It makes possible what i ever wanted :)
Thank you
soup 19 Sep, 2021 @ 5:35pm 
It was not I don’t think
EasyName12345 19 Sep, 2021 @ 5:12pm 
Was the guide ever released? I need help adding a new unit.
Edit:Ed 7 Mar, 2021 @ 9:57am 
Perhaps someone would be able to help me, I can't seem to get the tints to work? I've added the custom bodyparts etc all working grand. But everything is coming up the editor-style weighting colours of Blue / Yellow and Red / Green. Not the tint I set, (0s or 1s, because I wanted black).

Any ideas?