This post has been edited by shadowblade34: 01 June 2010 - 09:50 AM
Press and hold zoom + walk?
Make this as well?
#1
Posted 01 June 2010 - 09:31 AM
-JC Denton (Deus Ex, the best game ever made)
#2
Posted 01 June 2010 - 09:37 AM
- Optimized exe; builds of ioq3 engine for urt With GoogleTranslate, Bumpy, dmaHD, iKALiZER, Raw Mouse, Bug Fixes, ..
- Networking, lag meter, and gaming consistency guide
#3
Posted 01 June 2010 - 09:49 AM
mitsubishi, on 01 June 2010 - 09:37 AM, said:
when ya zoom, ya walk, so you are more accurate. saves pressing multiple buttons at once, ya get is now?
-JC Denton (Deus Ex, the best game ever made)
#4
Posted 01 June 2010 - 10:27 AM
//[ field of view toggle ]
seta cf.-fovcrosshair "cg_drawcrosshair 11; cg_crosshairsize 2"
seta cf.-fovhands "cg_drawhands 0"
seta cf.-fovsens "sensitivity 0.970"
seta cf.-fov "cg_fov 90; vstr cf.-fovcrosshair; vstr cf.-fovhands; vstr cf.-fovsens"
seta cf.+fovcrosshair "cg_drawcrosshair 8; cg_crosshairsize 16"
seta cf.+fovhands "cg_drawhands 1"
seta cf.+fovsens "sensitivity 0.935"
seta cf.+fov "cg_fov 110; vstr cf.+fovcrosshair; vstr cf.+fovhands; vstr cf.+fovsens"
// ^^ adjust the proper sensitivity and crosshair color/size for your hardware and preferences
//[ zoom/fov- toggle ]
seta cf.zoomin "vstr cf.-fov; ut_zoomin; vstr cf.+speed; set cf.zoom vstr cf.zoomout" //<<-- code added here from your idea
seta cf.zoomout "vstr cf.+fov; ut_zoomout; vstr cf.+speed; set cf.zoom vstr cf.zoomin" //<<-- code added here from your idea
seta cf.zoomreset "vstr cf.+fov; ut_zoomreset; vstr cf.-speed; set cf.zoom vstr cf.zoomin" //<<-- code added here from your idea
seta cf.zoom "vstr cf.zoomin"
//[ walk toggle ]
seta cf.+speed "vstr cf.-button8; +speed; set cf.speed vstr cf.-speed; ut_echo ^7>^4>>^7 Walk >>^4>>"
seta cf.-speed " -speed; set cf.speed vstr cf.+speed"
seta cf.speed "vstr cf.+speed"
//[ crouch toggle ]
seta cf.+movedown "+movedown; vstr cf.msgbankcrouch; set cf.movedown vstr cf.-movedown"
seta cf.-movedown "-movedown; vstr cf.msgbanknormal; set cf.movedown vstr cf.+movedown"
seta cf.movedown "vstr cf.+movedown"
//[ sprint toggle ]
seta cf.+button8 "vstr cf.-movedown; vstr cf.-speed; +button8; vstr cf.msgbanksprint; set cf.button8 vstr cf.-button8"
seta cf.-button8 " -button8; vstr cf.msgbanknormal; set cf.button8 vstr cf.+button8"
seta cf.button8 "vstr cf.+button8"
Reason i had to include so much unrelated scripts is because the movement and stances needs to be managed by a script or you will stuck in walk mode, or some other odd behavior.
Also the zoom script is integrated with the FOV script.
Here are bindings example:
bind ALT "+vstr cf.+movedown cf.-movedown" // crouch [h-toggle]
bind SHIFT "vstr cf.speed" // run / walk [toggle]
bind SPACE "+vstr cf.+button8 cf.-button8" // sprint [h-toggle]
bind MOUSE4 "+vstr cf.zoomin cf.zoomout" // zoom weapon [h-toggle]
#5
Posted 01 June 2010 - 10:57 AM
- Optimized exe; builds of ioq3 engine for urt With GoogleTranslate, Bumpy, dmaHD, iKALiZER, Raw Mouse, Bug Fixes, ..
- Networking, lag meter, and gaming consistency guide
#6
Posted 01 June 2010 - 05:20 PM
//PRESS AND HOLD ZOOM + WALK//
set do_zoom_on "ut_zoomin ; +speed; vstr fov_small"
set do_zoom_off "ut_zoomreset; -speed; vstr fov_wide"
set fov_small "cg_fov 90 ; cg_drawCrosshair 13; cg_crosshairSize 15"
set fov_wide "cg_fov 110 ; cg_drawCrosshair 11; cg_crosshairSize 30"
bind MOUSE2 "+vstr do_zoom_on do_zoom_off"
?
Quote
#7
Posted 01 June 2010 - 05:23 PM
So it's better to make sure every state is accounted for and gets resetted.
This post has been edited by Nexu: 01 June 2010 - 05:24 PM
#8
Posted 01 June 2010 - 05:28 PM
- Optimized exe; builds of ioq3 engine for urt With GoogleTranslate, Bumpy, dmaHD, iKALiZER, Raw Mouse, Bug Fixes, ..
- Networking, lag meter, and gaming consistency guide
#9
Posted 01 June 2010 - 05:29 PM
edit:
:-)
This post has been edited by ObScUrE: 01 June 2010 - 05:30 PM
Quote
#10
Posted 01 June 2010 - 06:21 PM
And generally if you are scripting (either for a game or shell script), it's best to make sure (or atleast try and test) they work properly under various supported clients/shells/target software ;-)
This post has been edited by Nexu: 01 June 2010 - 06:22 PM