r/tf2scripthelp • • 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

7 comments sorted by

View all comments

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.

2

u/[deleted] Sep 05 '13

Well shit, scripting is really complicated for me and I use Q.

2

u/genemilder Scripter Sep 05 '13

The script I linked does allow for q (and default mousewheel behavior), but you will need to reset it for your other classes, the script for that is also provided, embedded in the linked script. Details on how to install: http://www.reddit.com/r/tf2scripthelp/wiki/introduction