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.

Problem with setting Mouse2 button

Postby Vanquis » 04 Aug 2017, 12:15

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
Vanquis
ETc| Member
 
Posts: 23
{ IMAGES }: 1
Joined: 10 Jul 2017, 17:35
Cash on hand: 27,504.00
Location: Poland, Cracow

Re: Problem with setting Mouse2 button

Postby ETc|#.Jay.# » 06 Aug 2017, 19:52

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
ETc|#.Jay.#
ETc| Member
 
Posts: 1589
{ IMAGES }: 472
Joined: 25 May 2008, 22:01
Cash on hand: 158,952.00
Bank: 0.00
Location: Germany

Re: Problem with setting Mouse2 button

Postby Vanquis » 06 Aug 2017, 20:26

Such script what I wanted. Thank you Jay!

btw Best helper in clan :)
Image
User avatar
Vanquis
ETc| Member
 
Posts: 23
{ IMAGES }: 1
Joined: 10 Jul 2017, 17:35
Cash on hand: 27,504.00
Location: Poland, Cracow


Return to Technical support

Who is online

Users browsing this forum: No registered users and 1 guest