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?
1
u/clovervidia Batman Sep 05 '13
If you wouldn't mind, kindly hit "add tag" below the post and select an appropriate tag for your post.
1
u/TimePath Stylesheet Sep 05 '13
More of a request, wouldn't you agree?
1
u/clovervidia Batman Sep 05 '13
Yeah I guess.
Oh well. Some posts are better than dying alone and forgotten.
1
u/neobowman Sep 06 '13
Stabby has a script that he uses. Changes sensitivity, triggers hide viewmodel and changes FOV. http://forums.steampowered.com/forums/showthread.php?t=1591457
I use a variant of it that changes sensitivity for gun only after shooting because I felt it annoyed me to change sensitivity while moving around and just changing weapons. I can post it up if you want.
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.