Zoom script

Locked
D'Artagnan
Posts: 468
Joined: Sun May 14, 2000 7:00 am

Zoom script

Post by D'Artagnan »

This one is interressing too...i just don't get it...how does it work ?

Zoom with Custom Sensitivity Adjust
Adjust as required, this script cycles between 40 / 110 fov and adjusts sensitivity accordingly. NOTE: this script will only work on servers that do not limit g_fov settings (90 to 110)

bind q "toggle g_fov 40 110; toggle sensitivity 5 15; addchatline 'FOV';addchatline $g_fov"

the way i understand it, is that when i hit the bind key (q for the exemple) i'm gonna change the fov and sensitivity, but i'm gonna have to hold the key, and thats what i don't want.
I wanna bind a key so if i press it, i'm gonna change the fov and sens, and when ill press again the same bind, it will go back to normal fov and sens...
[url=http://powerquebec.forumpro.fr/][color=red][b]Fast and furious_[/b][/color]That's what it's all about...[/url][img]http://pages.infinit.net/oldman/rank14.gif[/img]
D'Artagnan
Posts: 468
Joined: Sun May 14, 2000 7:00 am

Post by D'Artagnan »

OK i'm getting close to what i want, so maybe someone better then me could improve what i have done so far, it work but i'm just a newb at script;

// Zoom Script //
set zoomin "toggle g_fov 40 105; toggle sensitivity 2 5; addchatline 'FOV';addchatline $g_fov"
set zoomout "toggle g_fov 105 40; toggle sensitivity 5 2; addchatline 'FOV';addchatline $g_fov"
set zoomtoggle vstr zoomin
bind SPACE "vstr zoomtoggle"
[url=http://powerquebec.forumpro.fr/][color=red][b]Fast and furious_[/b][/color]That's what it's all about...[/url][img]http://pages.infinit.net/oldman/rank14.gif[/img]
Requ!em
Posts: 62
Joined: Wed Mar 08, 2000 8:00 am

Post by Requ!em »

I wanna bind a key so if i press it, i'm gonna change the fov and sens, and when ill press again the same bind, it will go back to normal fov and sens...
Please mention your sources, the script you found is in http://ucguides.savagehelp.com/Quake4/scripts.htm

bind q "toggle g_fov 40 110; toggle sensitivity 5 15; addchatline 'FOV';addchatline $g_fov"

The script already does what you want, it simply cycles the values for two cvars.

First keypress sensitivity gets set to 5 and g_fov gets set to 40
Next keypress sensitivity gets set to 15 and g_fov gets set to 110
Next keypress sensitivity gets set to 5 and g_fov gets set to 40
etc.
D'Artagnan
Posts: 468
Joined: Sun May 14, 2000 7:00 am

Post by D'Artagnan »

OH, ok i understand better now...thanks...
[url=http://powerquebec.forumpro.fr/][color=red][b]Fast and furious_[/b][/color]That's what it's all about...[/url][img]http://pages.infinit.net/oldman/rank14.gif[/img]
Locked