Skip to content

Disable Quick Swap for Item Slots by Default#856

Merged
VMSolidus merged 6 commits intoSimple-Station:masterfrom
Mnemotechnician:tweak/no-quick-container-slot-swap
Sep 8, 2024
Merged

Disable Quick Swap for Item Slots by Default#856
VMSolidus merged 6 commits intoSimple-Station:masterfrom
Mnemotechnician:tweak/no-quick-container-slot-swap

Conversation

@Mnemotechnician
Copy link
Copy Markdown
Contributor

@Mnemotechnician Mnemotechnician commented Sep 4, 2024

Description

As was discussed on discord, quick swap is a feature that makes certain things needlessly easy. You can instantly swap the magazine in a gun without even paying attention to it, you can quickly swap cells in IPCs/borgs, you can instantly swap the ID in your pda with that of someone else without anyone noticing, et cetera. In my opinion, this is unnecessary QOL that makes the game feel more bland and primitive. Besides, it used to lead to odd and unwanted behavior, such as IPCs being able to swap their own power cells.

In addition to that, certain entities do not support quick swap. For instance, rechargers will stop working if you insert a power cell and then quick-swap it before it finishes charging.

This PR makes quick swap disabled by default. It can still be re-enabled by setting ItemSlotsComponent.Slots.[ItemSlot].Swap = true on individual entities.

Changelog

🆑

  • remove: Quick swap has been disabled for most item slots. This primarily means you will have to eject power cells/magazines from items/weapons/borgs before replacing them with different ones.

@github-actions github-actions bot added the Changes: C# Changes any cs files label Sep 4, 2024
@SimpleStation14 SimpleStation14 changed the title Disable quick swap for item slots by default Disable Quick Swap for Item Slots by Default Sep 4, 2024
@Vaaankas
Copy link
Copy Markdown
Contributor

Vaaankas commented Sep 4, 2024

having to actually use hands to interact with things ??? crazy !

@gluesniffler
Copy link
Copy Markdown
Contributor

make it a cvar

@Mnemotechnician
Copy link
Copy Markdown
Contributor Author

make it a cvar

Not sure how to achieve that since the assignment happens in the primary constructor of the class.

@DEATHB4DEFEAT
Copy link
Copy Markdown
Member

make it a cvar

Not sure how to achieve that since the assignment happens in the primary constructor of the class.

Modify it on init

@Mnemotechnician
Copy link
Copy Markdown
Contributor Author

Mnemotechnician commented Sep 8, 2024

Better solution. (turns out this property is only used in 1 place anyway)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changes: C# Changes any cs files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants