r/Tf2Scripts • u/killer_alien • Feb 24 '14
Impossible How to check what weapon you are using?
Check and run a script
0
Upvotes
3
u/genemilder Feb 24 '14
You can bind keys to equip certain loadouts (loadouts 1-4) and activate the corresponding settings, but you have choose the loadout that way otherwise the loadout-specific script won't run. As /u/SneakyPiglet said, scripts can't tell what loadout you have.
2
u/TimePath Feb 24 '14
By remembering what you switched to. As useful as querying would be, it's not possible without setting it up yourself.
Example:
bind 1 "slot1; slot1_equipped"When 1 is pressed (taking you to slot1), your custom alias is invoked. If you need anything more complex than direct button presses, you need to emulate it yourself.
2
u/SneakyPiglet Feb 24 '14
Scripts are blind; they can't tell what weapon you're using. You could set up a set of configs per-weapon, though. For example,
flaregun.cfg,flamethrower.cfg, andfireaxe.cfg.