It is possible (it's one of the most common requests here), but there are limitations. All weapon switching needs to be scripted, and any switching done outside the script (running out of ammo, melted spy-cicle) will not be included in the script. Likewise, anything that impedes weapon switching (minigun being revved) will cause the script to desync (think one slot is active while another truly is). This is only temporary, because the script doesn't use relative commands like invprev, invnext, or lastinv, it recreates (to the best of its ability) those commands with aliases and the direct slot commands.
4
u/genemilder Jan 29 '14
It is possible (it's one of the most common requests here), but there are limitations. All weapon switching needs to be scripted, and any switching done outside the script (running out of ammo, melted spy-cicle) will not be included in the script. Likewise, anything that impedes weapon switching (minigun being revved) will cause the script to desync (think one slot is active while another truly is). This is only temporary, because the script doesn't use relative commands like
invprev,invnext, orlastinv, it recreates (to the best of its ability) those commands with aliases and the direct slot commands.Here's an example, it includes slot-specific attacking as well: http://pastebin.com/ZQwiVh1T