XCOM 2
146 ratings
Improved Smoke Defense WOTC
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
354.464 KB
5 Nov, 2018 @ 5:56pm
12 Sep, 2019 @ 8:53pm
12 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Improved Smoke Defense WOTC

Description
Smoke doesn't suck anymore.

-= EFFECTS =-
Being in a smoke cloud now provides a 35 Aim Penalty to the attacker, a 35 Dodge bonus to the target and negates 35 of the attacker's crit chance (which is usually what Flanking provides, and is thus an emulation of the old school XCOM EU/EW grenade effect).

V1.01
Smoke Grenade and Smoke Grenade MK2 description updated. Also fixed a wrong statement in MK2 stating that it gives more defense, which was never the case. All smokes provide the same maluses, the MK2 is bigger and can be thrown farther only.

-= CUSTOMIZATION =-
Why yes I'm glad you asked. It's all in the INI file. All 3 effects are customizable.

C:\Program Files (x86)\Steam\steamapps\workshop\content\268500\1557993133\Config\XComSmokeConfig.ini

I also suggest making a slight tweak to the grenades themselves and increasing both of the regular and MK2 radius by 1. This is NOT done by this mod.

-= DEFAULT VALUES =-
I use a 50/35 cover system value, so I put in 35 as the default bringing the total to 85 defense. Put whatever you seem fit, but even in a 40/20 unmodded XCOM 2 scenario it doesn't feel overpowered (would bring smoke+full cover to 75 and around 100 if Hunkered Down).

-= NOTES =-
I considered making the Smoke Cloud also give a "Darkness" style visibility penalty, but it cannot apply to people outside looking in, only to people in looking out and I don't think it's fair.

-= COMPATIBILITY =-
This was surprisingly easy to do. Overrides:
X2Effect_SmokeGrenade:GetToHitAsTargetModifiers and
X2Item_DefaultGrenades:X2Effect SmokeGrenadeEffect.

Most importantly, it works with -bg-'s excellent EU AIM Mod.
I highly suggest Hybrid Crit mode for Dodge.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1123516056

My mod ignores the old game INI SMOKE_HITMOD, so don't use it.

The way this mod is coded, any custom effect that adds smoke will also work (for example, if a mod creates a SmokeMK3 grenade and uses the base game code, this mod will apply to it.)

-= MOD PREVIEW PICTURE =-
Isn't that a sweet mod preview pic? I took it by complete accident, I didnt know the Vektor reticle removed smoke for visibility.

-= RECOMMENDED MOD =-
I recommend Reliable Smoke. Put the flanking setting to OFF because it's already handled by my mod.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=650751923

Change this otherwise you are double-dipping the bonus:

[SmokeStopsFlanks.X2Effect_SmokeGrenade_Antiflank]
bSmokePreventsFlanking=false

V1.03 this is now done by this mod automatically if true.
59 Comments
Rtma Eros Paragon 20 hours ago 
It is working. Thanks.
Juravis  [author] 2 Aug @ 1:16am 
If they both work in the same way and LWOTC Aim Rolls is based on EU AIM Rolls, it will work probably. You can probably just put both together and launch a test game and just smoke grenade and check yourself thats probably the best way to test. You can safely remove it after (ignore messages).
Rtma Eros Paragon 2 Aug @ 12:41am 
I am not using LWOTC, I am using a standalone mod alternative to EU aim rolls called LWOTC Aim Rolls, if that makes any difference.
Juravis  [author] 1 Aug @ 10:13am 
Assume nothing works with LWOTC unless someone tested it
Rtma Eros Paragon 1 Aug @ 8:39am 
Does this work with LWoTC Aim Rolls? the stat check and percentage feedback does not seem to be affected.
Nemo Jr. 4 Jul, 2021 @ 11:39am 
No worries, just letting you know :)
Juravis  [author] 4 Jul, 2021 @ 11:06am 
Actually this would be easier for Reliable Smoke to implement but im not sure hes modding anymore. He can make a "If this DLC is detected" then his parameter would be off, and the load order wouldnt count anymore.

My modding tools are not setup at this time. So youll just have to switch manually the INI parameter.
Juravis  [author] 4 Jul, 2021 @ 11:00am 
Oh I get it. Sorry it's been a while.
Nemo Jr. 4 Jul, 2021 @ 10:49am 
Thanks for the reply, but I urge you to double check bSmokePreventsFlanking.
This is the default in Reliable Smoke:
bSmokePreventsFlanking=true
Juravis  [author] 4 Jul, 2021 @ 10:42am 
.Shouldn't the last line be false
No

.Also, are the removals really necessary? Doesn't the last value overwrite the previous one(s) automatically?
The text importer in XCOM sucks, by removing both lines you ensure the parameter is empty before introducing the new one.

.So in this case, the actual important part is loading your mod after Reliable Smoke, no?
Yes, but XCOM load order changing mostly doesnt work.

You are correct on your flank bonus assessment, you can make Reliable Smoke and this mod work correctly in the fashion you best prefer!