XCOM 2
279 lượt đánh giá
Free Carry Drop Subdue WOTC
   
Giải thưởng
Yêu thích
Đã yêu thích
Bỏ thích
Kích cỡ file
Đã đăng
Đã cập nhật
169.258 KB
8 Thg09, 2017 @ 3:37pm
21 Thg03, 2022 @ 12:28pm
8 ghi chú thay đổi ( xem )
Bạn cần DLC để sử dụng vật phẩm này.

Đăng ký để tải xuống
Free Carry Drop Subdue WOTC

Mô tả
Carry, Drop and Subdue are now free at 100%.

If you dont like the option being available even if nobody has any action left like EVAC, you can configure it in the INI file. But it doesnt happen enough for me personnally that it annoys me.

V2.0 - Converted to OnPostTemplatesCreated

V2.1 - Explicitly disallowed the abilities to break concealment. I've done all i could, now if you still break concealment because you pick up a prisoner in the Rescue Ally mission after silently opening the door, i cant do much more. I hope it works. All 3 abilities now have ConcealBreak = Never.

V2.2 - You can now control if it ends the turn or not.

V2.3 - Fixed issue with carry cost (Thanks to MrMister)

They are all configurable individually in the INI file.

C:\Program Files (x86)\Steam\steamapps\workshop\content\268500\1130901449\Config\XComFreeUnitCarryAndDrop.ini
69 bình luận
Ray 7 Thg09, 2024 @ 6:30am 
Nice works in 2024 no problemo
MrMister 16 Thg11, 2022 @ 5:20am 
Yes it is.
hottt3 16 Thg11, 2022 @ 4:13am 
Is it compatible with LWotC ? Thanks)
Juravis  [tác giả] 21 Thg03, 2022 @ 12:29pm 
Your fix is up. You are lucky, it instantly launched ModBuddy and it was configured correctly i forgot that VS is for Chimera Squad. Try this version with your fix now up.
Juravis  [tác giả] 21 Thg03, 2022 @ 12:19pm 
My VSCode isn't working I'll try to fix it
MrMister 21 Thg03, 2022 @ 11:55am 
So you're saying you can't update the mod anymore? If so I can just released a fixed redux version, but that'd be a shame as the work and credit is still all yours.
MrMister 21 Thg03, 2022 @ 11:55am 
I found the cause and the fix!

You forgot a line in the Carry script block

// Carry Unit free
CurrentAbility = AllAbilities.FindAbilityTemplate('CarryUnit');
CurrentAbility.AbilityCosts.Length = 0;
ActionPointCost = new class'X2AbilityCost_ActionPoints'; <<<---- THIS IS WHAT YOU MISSED
ActionPointCost.iNumPoints = default.PICKUP_ACTION_POINTS;
ActionPointCost.bConsumeAllPoints = default.PICKUP_ENDS_TURN;
ActionPointCost.bFreeCost = default.PICKUP_TOTALLY_FREE;
CurrentAbility.AbilityCosts.AddItem(ActionPointCost);
CurrentAbility.ConcealmentRule = eConceal_Always;

Because you forgot to declare ActionPointCost anew for Carry, it was reusing the one for Drop (further up in the code) and overriding its values.


I rebuilt the mod just adding that one line, and it works! I can make Carry cost 1 AP while Drop costs 0 AP.
Juravis  [tác giả] 21 Thg03, 2022 @ 8:51am 
I cant and i dont code anymore its possible. The initial goal of the mod was making everything free, exposing the variables came after.
MrMister 21 Thg03, 2022 @ 6:37am 
Testing with no other mod at all except this, I have identified the exact issue, albeit not the cause.

It seems like Drop uses the same "_IS_TOTALLY_FREE" behaviour as in PICKUP_TOTALLY_FREE, ignoring or overriding DROP_TOTALLY_FREE.

Why, I do not know - looking at your source code, the variable called is the correct one.

To confirm this: try the same settings as what you had, but with

DROP_TOTALLY_FREE = true
PICKUP_TOTALLY_FREE = false

and you will see that dropping costs 1 AP when it should cost 0, and that similarly

DROP_TOTALLY_FREE = false
PICKUP_TOTALLY_FREE = true

costs 0 AP when it should cost 1.

Again, no idea why this should happen from a look at your code, but it does happen. Can you confirm it?
Juravis  [tác giả] 17 Thg03, 2022 @ 3:29pm 
Note: This mod does not support LWOTC. If you are trying to mod Long War, it may not work. It may, but it also may not i have not tested.