Disabling mouse 2 (right click)
#4
(02 Aug 10, 07:31AM)DrauL Wrote: Other scripters stay away this is mine >:)
Since I'm not a scripter, this didn't apply to me. :D

These lines in scripts.cfg deal with altaction - what happens when you right click:
loop i 8 [ alias (concatword altaction_ $i) quicknadethrow ] // Quick nade throw is default
alias altaction_4 [ zoom 1; onrelease [ zoom 0 ] ] // Sniper
alias altaction_6 [ attack ] // Grenade
The first line creates an altaction for each current weapon; forcing a quicknadethrow. The second amends the altaction for sniper; zoom. The third amends the altaction for nades; quicknadethrow.

Copying all three lines to your autoexec.cfg, but deleting quicknadethrow in the first, accomplishes what you want, ie.
loop i 8 [ alias (concatword altaction_ $i) ] // Do nothing on right click
alias altaction_4 [ zoom 1; onrelease [ zoom 0 ] ] // Except for Sniper
alias altaction_6 [ attack ] // and Grenades

(This could also be achieved by amending the line in scripts.cfg only, but, ideally, default files should never be altered)
edit: Of course, if you don't want to throw a nade with right click, even with nades already selected, don't include the third line.
Thanks given by:


Messages In This Thread
Disabling mouse 2 (right click) - by Carnifex - 02 Aug 10, 07:28AM
RE: Disabling mouse 2 (right click) - by DrauL - 02 Aug 10, 07:31AM
RE: Disabling mouse 2 (right click) - by jamz - 02 Aug 10, 08:32AM
RE: Disabling mouse 2 (right click) - by jamz - 02 Aug 10, 09:20AM
RE: Disabling mouse 2 (right click) - by DrauL - 02 Aug 10, 09:21AM
RE: Disabling mouse 2 (right click) - by R4zor - 02 Aug 10, 09:48AM
RE: Disabling mouse 2 (right click) - by DrauL - 02 Aug 10, 10:07AM
RE: Disabling mouse 2 (right click) - by V-Man - 02 Aug 10, 03:03PM
RE: Disabling mouse 2 (right click) - by R4zor - 03 Aug 10, 07:03AM
RE: Disabling mouse 2 (right click) - by V-Man - 03 Aug 10, 02:40PM
RE: Disabling mouse 2 (right click) - by R4zor - 04 Aug 10, 06:59AM
RE: Disabling mouse 2 (right click) - by DrauL - 04 Aug 10, 07:18AM
RE: Disabling mouse 2 (right click) - by jamz - 04 Aug 10, 09:27AM