Adds a menu to hijack the current MvM bomb path to whatever the user wants it to be on supported maps, which can be accessed by anyone so long a wave is not active. (this is cvar-controlled)
Extending Support
This step shouldn't be necessary since the plugin already supports all default maps and a wide variety of custom maps by default, which is all setup in the file "sourcemod/data/tf2_bombpathpicker.cfg".
But if you need to, refer to the documentation inside the file:
Spoiler
PHP Code:
// ++ DOCUMENTATION ++>
// -------------------
// !! EVERY STRING IN THIS CONFIG HAS A MAX OF 255 CHARACTERS. !!
/////////////////////////////////////////////////////////////////////////////////////////
// Sections are matched by map name, or multiple map names if they're comma-separated.
// E.g. "mvm_coaltown,mvm_decoy"
//
// Partial matches are supported.
// E.g. "mvm_akure" will match "mvm_akure_rc1".
////////////////////////////////////////////////////
"mvm_example"
{
// Multiple entities can be inside a single keyvalue, they just need to be comma-separated:
// "relay1,relay2"
//
// All keyvalues also have their own default inputs, which can be changed with the pipe character:
// "prop_dynamic|Disable,relay2
////////////////////////////////////////////////////////////////////
// Relays to reset all currently-active path logic whenever we pick a path.
// Default input is "Trigger".
/// Optional, as not all maps need it. e.g. mvm_mannhattan.
"Reset" "bombpath_clearall_relay,bombpath_arrows_clear_relay"
// DEPRECATED. Case entity used by the "Random" selection. If there isn't any then the plugin uses its own logic.
// Default input is "PickRandomShuffle".
/// Optional, as not all maps have such an entity. e.g. mvm_mannhattan.
"Random" "bombpath_choose_1_case"
// Paths that the map supports and will show up in the menu for current map.
// Any selected path is triggered with a second delay.
/// I don't actually know the relays of mvm_example because I don't have it.
"Paths"
{
"Left" "bombpath_left_relay"
"Right" "bombpath_right_relay"
}
}
Console Jargon
PHP Code:
// ++ Cvars ++
// -----------
// If the path menu can be used during an in-progress MvM wave.
tf2_bpp_allow_midwave "0"
// Prints parser data to the console whenever the config is reloaded.
/// Not saved to the CFG file.
tf2_bpp_parser_debug "0"
// ++ ConCmd ++
// ------------
// Displays a menu for picking a bomb path.
sm_bpp
// Resets and reload the config for 'Bomb Path Picker'.
sm_bpp_reload
Changelog
Code:
v2.2 (17-Oct-2022)
- Upped the config's maximum string character limit from 128 to 255 just for Doppler.
- Config:
- - Removed ambiguity in these relays for the following maps:
- - - Cyberia, Hideout, Powerplant, Waterlogged
- - - Barren, Downtown, Quetzal, Metro, Underground, Tensai
- - Added support for Doppler
v2.1 (03-Oct-2022)
- Fixed string partial-matching not being functional for map names if multiple map names are in use - this prevented maps like Teien or Waterfront from working.
- Increased the global ArrayStack's cell size as entity names of path choices usually were cutting off too soon.
- Config:
- - Resolved ambiguously-named relays for the following maps:
- - - Dockyard, Outlands, Shiverpeak, Snowpine, Teien
- - Downpour: Filled in the right path relay names.
- - Skullcove: Fixed "bompath" typo. Added the missing "s" to "bombpath_holograms_clear_relay"
- "Random" choice:
- - Fixed "Random" appearing as a selection on maps have no paths.
- - Disabled selecting random paths by I/O, as the plugin can't realise what path has been chosen.
v2.0 (05-Sep-2022)
- Released on AlliedModders.