vstr .,,,.,.
•
7 Jun 2007, 15:45
•
Journals
set fov83 "cg_fov 83; sensitivity 2.00; cg_drawgun 0; echo ^p[^0Zoom ^1in^0]; "
set fov106.5 "cg_fov 106.5; sensitivity 2.00; cg_drawgun 1; echo ^p[^wZoom ^oout^p]; "
set fovtoggle "vstr fov83"
bind z "vstr fov83" what wrong with this?
set fov106.5 "cg_fov 106.5; sensitivity 2.00; cg_drawgun 1; echo ^p[^wZoom ^oout^p]; "
set fovtoggle "vstr fov83"
bind z "vstr fov83" what wrong with this?
but this wont do what you expect from it
set fovsw1 "cg_fov 90; sensitivity "2"; seta cg_drawgun "0"; set fovswitch vstr fovsw2"
set fovsw2 "cg_fov 106.5; sensitivity "2"; seta cg_drawgun "1"; set fovswitch vstr fovsw1"
bind Z ..... ?
that's the best!
or 360!
set fov106.5 "cg_fov 106.5; sensitivity 2.00; cg_drawgun 1; echo ^p[^wZoom ^oout^p]; "
set fovtoggle "vstr fov83"
bind z "vstr fov83" what wrong with this?
This script is total rubbish, first you forgot to define what fovtoggle is, then you write some ";"'s too much, and last but not least sorry but wtf is "106.5" oO just use a normal variable to switch to like "106" the script doesnt care.
The right one:
bind z vstr fovswitch
set fovswitch vstr fov83
set fov83 "cg_fov 83; sensitivity 2.00; cg_drawgun 0; echo ^p[^0Zoom ^1in^0]; set fovswitch vstr fov106"
set fov106 "cg_fov 106.5; sensitivity 2.00; cg_drawgun 1; echo ^p[^wZoom ^oout^p]; set fovswitch vstr fov83"