Iron sight zoom + view model toggle


(Redshft) #1

Does anyone know how to bind mouse2 with an iron sight zoom and view model toggle to work correctly? I would like to play without view models when hip firing and have the view model turn on so I can iron sight. This is what I have worked out:

bind “mouse2” “_altattack; toggle ui_showgun”

It doesn’t work because the game apparently doesn’t recognize _altattack in this manner.

Any ideas?


(prophett) #2

I don’t think it is possible to script any additional actions/cvars to an action with an underscore in front of it :>


(Ketchy) #3

I have also been trying to figure this out but have yet to find a solution it would be great to find a way.


(Redshft) #4

Is there a way to alias _altattack to bypass the underscore problem?


(prophett) #5

Actions/commands with underscores in front of them have been limited on purpose to prevent macro actions - I don’t think there is any way around it.


(keefy) #6

“alias” doesnt exist in the engine.
Using “set” is similar though but it still doesnt work


(Matuka) #7

[QUOTE=Redshft;310806]Does anyone know how to bind mouse2 with an iron sight zoom and view model toggle to work correctly? I would like to play without view models when hip firing and have the view model turn on so I can iron sight. This is what I have worked out:

bind “mouse2” “_altattack; toggle ui_showgun”

It doesn’t work because the game apparently doesn’t recognize _altattack in this manner.

Any ideas?[/QUOTE]

Hey there, try this (Remember to change the integer).

bind “mouse2” “’_altattack’; toggle ui_showgun ‘0/1’”

You need to put ’ ’ for each integer (or w/e you call them).


(Crytiqal) #8

you cannot link multiple commands when there is a _ in front of the command