XCOM 2
354 个评价
Confirm Free Reload - WotC
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
110.104 KB
2017 年 2 月 5 日 下午 8:51
2017 年 10 月 4 日 下午 12:34
3 项改动说明 ( 查看 )
您需要 DLC 才能使用该物品。

订阅以下载
Confirm Free Reload - WotC

在 BlueRaja 的 1 个合集中
Quality of Life / UI Improvements - WotC
38 件物品
描述
A simple mod which shows a dialog if you attempt to use a free reload when you still have ammo left.

UPDATED TO SUPPORT WAR OF THE CHOSEN!
For a version that doesn't require War of the Chosen, see here

The only time it makes strategic sense to do that is if you're expecting to shoot twice between turns (eg. Killzone). I've found that most of the time I do it, it's accidental.

Thanks to Robojumper for helping me figure out ability templates.

----------------------------------------------

Compatible with Long War 2!

Classes Overridden (why do I care?):
None!

The source code for all my mods can be found on GitHub[github.com][/i]
[www.paypal.com]
热门讨论 查看全部(1)
0
2019 年 2 月 10 日 下午 5:39
Simplified Chinese Translation
zxc2008
26 条留言
Dark 2024 年 6 月 11 日 上午 9:34 
Fix for Insider Knowledge resistance order which boost upgrades. Now mod will shows a dialog when use bonus reload from Insider Knowledge.


private function bool IsLimitedFreeReload()
{
local array<X2WeaponUpgradeTemplate> weaponUpgrades;
local UnitValue numFreeReloadsUsed;
local int numFreeReloadsRemaining, i, TotalFreeReloads;

UnitState.GetUnitValue('FreeReload', numFreeReloadsUsed);

weaponUpgrades = AbilityState.GetSourceWeapon().GetMyWeaponUpgradeTemplates();

for (i = 0; i < weaponUpgrades.Length; i++)
{
if(weaponUpgrades .NumFreeReloads > 0)
{
if (weaponUpgrades .GetBonusAmountFn != none)
{
TotalFreeReloads = weaponUpgrades .GetBonusAmountFn(weaponUpgrades );
numFreeReloadsRemaining = int(TotalFreeReloads - numFreeReloadsUsed.fValue);

if(numFreeReloadsRemaining > 0 && numFreeReloadsRemaining < 10)
{
return true;
}
}
}
}
return false;
}
zin 2023 年 4 月 5 日 上午 11:10 
Oh yeah, that’s actually a good point. For some reason, I didn’t think of that.
BlueRaja  [作者] 2023 年 4 月 3 日 下午 1:14 
@zin If you have "free reload anytime" you shouldn't need this mod.
zin 2023 年 4 月 3 日 上午 3:27 
This mod doesn’t work well with Free Reload Anytime, as it still warns you even if you use the regular reload action if you have free reloads available. A compatability fix would be sweet!
HaziTru 2022 年 11 月 20 日 下午 1:03 
Okay
BlueRaja  [作者] 2022 年 11 月 20 日 下午 12:47 
@HaziTru I'm not certain, but I think so?
HaziTru 2022 年 11 月 20 日 下午 12:42 
Controller support?
| grєч wínd | 2021 年 12 月 15 日 下午 8:05 
Just a small tip for those who might be bothered by the double space after the first period in the popup message (there are two spaces after, "You have ammo remaining.")

Go to your Steam directory, steamapps\workshop\content\268500\858237491\Localization and open ConfirmFreeReload.int in any text editor like Notepad. Change the line

PopupBody=You have ammo remaining. Are you sure you want to use your free reload?

... or anything you want really. You can customize the popup message entirely to your liking.
Aks 2021 年 9 月 13 日 上午 6:15 
Russian Localization

UTF-16

ConfirmFreeReload.RUS

[X2TargetingMethod_ConfirmFreeReload]
PopupTitle=Трата свободной перезарядки
PopupBody=У вас остались боеприпасы. Вы уверены, что хотите использовать свободную перезарядку?
AcceptMessage=Перезарядить
CancelMessage=Отмена
Bardagh 2021 年 3 月 23 日 下午 7:02 
It's also necessary in order to use abilities which use more than 1 ammo (Saturation Fire and Suppression come to mind).