vstr .,,,.,.

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?
Comments
18
nothing.
but this wont do what you expect from it
set fovswitch "vstr fovsw1"
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"
Parent
and the bind?

bind Z ..... ?
Parent
bind z "vstr fovswitch"
Parent
cg_fov 110
that's the best!
cg_fov [90 120]
jsut what wrong because its only zooming in and not out
try to use seta and take variables without "fov"
83 isnt allowed.
fov 83 isnt possible, lowest value is 90
i want fov 30!
or 360!
tested fov's 10, 999, 1337(ya rly) and 360 on some random nonpb on 2.55 1,5 years ago. those looked bit wierd..
Parent
why not just run a demo?
Parent
Becuz I'm stupid.
Parent
cmon, that was just too easy bash for me
Parent
Becuz I'm Stupid
Parent
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?


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"
oh my god, this is so nerdy <o/
Back to top