Problem with setting Mouse2 button

You have a problem with your PC? TV? Fridge?
Tell us about it and we'll try to help you.
Post Reply
User avatar
Vanquis
ETc| Member
Posts: 30
Joined: 10 Jul 2017, 17:35
discord:
Location: Poland, Cracow

Problem with setting Mouse2 button

Post by Vanquis »

Hi guys. I would like to ask you how can I set the Mouse2 button as Reload action and scope view (snipe). Now I'm talking about what I mean exactly. I play mostly 2 classes covert ops and medic. I got used to the settings like R Reload rifle and scope view Mouse2. After map change if I want to play with smg for example medic or engi I have to change manually in controls Reload weapon on Mouse2 and so every time it's annyoing :| Scope view works for me in settings Nitmod-Controls-Alternate Fire set Mouse2 (to time I will choose smg). I don't understand button Switch to Alternate under Attack command- I have weapalt there. In short can I set the action for 2 things with 1 button?. I know that option Reload works as R or Mouse2 but I can't assign Alternate Fire button as Mouse2 anymore. Help me guys :D
Image
User avatar
ETc|#.Jay.#
ETc| Member
Posts: 1775
Joined: 25 May 2008, 22:01
discord: ETc|₪.Jay.₪ #4322
Location: Germany
Contact:

Re: Problem with setting Mouse2 button

Post by ETc|#.Jay.# »

bind 9 "bind mouse2 +reload"
bind 0 "bind mouse2 +attack2"

thats the easy way. if you wanna switch with 1 key only you need to script it.



script:

create a cfg called switch.cfg and put that text below inside.
save in nitmodfolder and do /exec switch.cfg

Code: Select all

set reload1 "bind mouse2 +reload ; set attack2_reload1 vstr attack2"
set attack2 "bind mouse2 +attack2 ; set attack2_reload1 vstr reload1"
set attack2_reload1 "vstr reload1"
bind 0 "vstr attack2_reload1"
now you can switch your bind on mouse2
Image
User avatar
Vanquis
ETc| Member
Posts: 30
Joined: 10 Jul 2017, 17:35
discord:
Location: Poland, Cracow

Re: Problem with setting Mouse2 button

Post by Vanquis »

Such script what I wanted. Thank you Jay!

btw Best helper in clan :)
Image
Post Reply