[TF2] Auto-equip powerup canteen when ForceUpgrades is enabled (Freaky Fair) #1424
+12
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
TL;DR: this PR auto-equips a free powerup canteen on cp_freaky_fair (and other non-MvM maps with Upgrades), a QoL change already applied to other gameplay-relevant action items, and even canteens in MvM.
When playing MvM, you get a powerup canteen as a default Action Item in your loadout menu that gets auto-equipped if your action slot is empty.
Similarly, you auto-equip a free Spellbook Magazine on maps that use Spells and the Grappling Hook in Mannpower.
This, however, isn't the case on non-MvM maps with Upgrades enabled via
ForceEnableUpgrades
. One such map, cp_freaky_fair, was added in Scream Fortress 2024.You have to manually equip your powerup canteen in your loadout... Assuming you have one... Which will then remain equipped and prevent you from using the Spells on other Halloween maps.
This Pull Request fixes that and gives you a temporary powerup canteen if
ForceEnableUpgrades
is set to2
, which is how non-MvM maps enable Upgrades.This PR also adds mode
3
toForceEnableUpgrades
. This new mode also enables the Upgrades (like mode2
), but does NOT auto-equip the canteen.This is made for potential maps that would want to use MvM money for purposes not related to Upgrades.
Because most (if not all) maps that currently use
ForceEnableUpgrades
do so specifically for the Upgrades, it's worth having canteens auto-equipped by default should Upgrades be enabled, unless specifically told not to.