branchrust_reboot/main/midiconvarcancel
17 Commits over 610 Days - 0.00cph!
Cherry pick
66688 66820
66873 from media_projects (relative knob binding)
Add a comment so plastic lets me merge
Update some error strings
Add MIDI support for multiple commands separated with ; and toggle commands prefixed with
Don't allow empty commands
Added support for binding commands to MIDI channels, can use channel 0 to accept any channel (the old behaviour)
▄▍▌▇▅ ▌▇ ▅▇▅▌█▍ ▋▇ ▄▆▅▋▊▉ ▊▅▄▉▋ ▊▋▊▆▅ █▋▋▄ █▋ ▅▋▍ ▆ ▍▇▆█, █▋█ ▄▋▊▉ ▆▍▍█ ▋▌▌█▆▉█ ▅▄▇▋ ▅▋
▌▆▅█▌█ ▊▆▌▉▄▍▅▊▌▊.▉▆▌▌▊▊▍▇▆▋▊ ▉▆ ▆▄▋▊▋▅▉█▅▇.█▇▅▍▆▋▉
▄▍▉██▄▍ ▇▄▆
Use existing server directory method to save and load loadouts
Use existing client directory method to save and load midi binds
Return a pooled list
Cleanup, add some help strings to new commands
New convars for saving and loading a set of gear onto players for cinematics:
"inventory.saveLoadout" saves the currently equipped belt and wear inventories into a file
"inventory.deployLoadout" applies a saved loadout onto the given player
"inventory.deployLoadoutInRange" applies a saved loadout onto all players in a radius
Added a new MidiConvar system to map convar commands to midi inputs (buttons and knobs)
Adds "BindKnob" command to map a knob to a command with a float value (eg "BindKnob 0 graphics.fov 70 90" to bind knob 0 to the fov)
Adds "BindKeyOn" and "BindKeyOff" to bind a midi note (eg BindKeyOn 60 "graphics.dof_debug true" and BindKeyOff 60 "graphics.dof_debug false")
Commands are automatically saved and loaded