r/tf2scripthelp • u/[deleted] • Sep 05 '13
Answered Changing sensitivity based on weapons?
I'd like to keep my sensitivity at 4 for my knife but get it lower for my revolver. Is this possible?
3
Upvotes
r/tf2scripthelp • u/[deleted] • Sep 05 '13
I'd like to keep my sensitivity at 4 for my knife but get it lower for my revolver. Is this possible?
4
u/genemilder Scripter Sep 05 '13
It is possible but you have to script all weapon-changing interactions in order to keep track of which weapon is currently out. Depending on what keys you use to switch (especially q), this can be quite a large script.
I've already written a script that allows for slot-specific settings, so I'll link that for you. It's written to allow for specific viewmodels to be turned off and possible specific crosshairs. It also allows you to autoredisguise on attack (revolver and knife). All of these can be disabled, currently redisguise is off as are specific crosshairs. Revolver viewmodels disappear on attack only.
http://pastebin.com/mDCnRDzN
If you only use keys that directly switch to a single weapon, this script can be a lot simpler.