Modified version of the Randomizer Team Fortress 2 plugin by FortyTwoFortyTwo that allows player to choose their own loadout. Supports all TF2 stock gamemodes excluding Mann Vs Machine.
All builds can be found here.
- SourceMod 1.10
- tf2attributes
- tf_econ_data
- dhooks with detour support
randomizer_version
: Plugin version number, don't touch.randomizer_enabled
: Enable/Disable the entire plugin, another option for load/unload plugins.randomizer_droppedweapons
: Enable/Disable dropped weapons.randomizer_huds
: Mode to display weapons from hud.- 0: No hud display
- 1: Hud text
- 2: Menu
sm_loadout
: Sets your loadout; Syntax: sm_loadout <class_name> <primary_id> <secondary_id> <melee_id> [watch_id]sm_cantsee
: Set your active weapon transparent or fully visible, for everyone
Examples on parameters that is valid to use for sm_rndsetweapon
, sm_rndsetslotweapon
and sm_rndgiveweapon
:
220
for Shortstop (item def index)direct hit
for Direct Hit (name based in translations)backburner, loch, 424
for Backburner, Loch-n-Load and Tomislavprimary shotgun, secondary panic attack
for Shotgun from primary slot and Panic Attack from secondary slot
There currently 5 configs able to easily change for future TF2 updates:
controls.cfg
: Manages how weapons withattack2
passive button should be handled, should it beattack3
orreload
instead.huds.cfg
: Lists all of the netprop meters to display in hud for many weapons.reskins.cfg
: List of reskins for players to equip weapon from loadout instead of default weapon.viewmodels.cfg
: List of all weapons with class specified to set transparent by default, without needing to usesm_cantsee
on weapon that covers player screen everytime.weapons.cfg
: Whitelist of weapon indexs to select from random pool, along with weapon name to display in HUD.
This plugin itself aims to not not require modifications when valve releases TF2 updates. Gamedatas is likely to break if TF2 update were to also break other plugin's gamedata (e.g. TF2Items). If weapon additions or rebalances were to happen, it's possible configs need an update, or possibly even plugin itself if TF2 update were to make changes only work for one class.