Fov Switcher (made by r2bit)

Share your custom configs, homemade binds, ET related programs, etc.
Server High Admin
User avatar
Posts: 2672
Joined: Tue Feb 12, 2008 1:00
Location: Netherlands, Utrecht

Fov Switcher (made by r2bit)

Postby Smadje » Sat Mar 27, 2010 0:29

Dear boys and girls,

A while ago I talked with r2bit about his fov switcher, but I do not really understand how to get it work in my cfg file. Are there any wrong values in the script itself?



Code: Select all
So.. here it is. Couple of lines into your main cfg and 2 additional files.
Into the main cfg:
Code:

bind   MOUSE2       "vstr swSens" // you may want to change this
set   sensLong      "set swSens vstr sensClose; exec long.cfg; echo ^3LONG"
set   sensClose      "set swSens vstr sensLong; exec close.cfg; echo ^6CLOSE"
set   swSens      "vstr sensLong"
seta   cl_mouseAccel "0"


File close.cfg:
Code:

seta   m_pitch "-0.016" // you may want to change this
seta   m_yaw "0.022"
seta   m_filter "0"
seta   sensitivity "1.4" // you may want to change this
seta   cg_fov 112
seta   cg_drawgun "1"


File long.cfg:
Code:

seta   m_pitch "-0.016" // you may want to change this
seta   m_yaw "0.022"
seta   m_filter "0"
seta   cl_freelook "1"
seta   sensitivity "0.8" // you may want to change this
seta   cg_drawgun "0"
seta   cg_fov 90


Is the script
quoting deep:
henksmadje please read topic more carefully and other topics too where u reply, then u get the point and dont have to make stupid posts.

Server Owner
Posts: 2147
Joined: Sun Dec 23, 2007 1:00
Location: PS

Postby Ninjadeer » Sat Mar 27, 2010 0:50

just copy that first part into your current config(if you have one, if not you need to create)
then create notepad document and save it as close.cfg and copy second part into it
and then create long.cfg just like you did with close.cfg but copy third part into it

place configs in your nq folder and exec your normal config, then that script should work... about values i dont know, my self i wouldnt use those, i wouldnt use that config/script at all as imo it sucks if you change fov and sensitivity all the time. easier to take one and learn to play with that

more about cfgs here and here :P
Image thx for diamond :D

Spam God
User avatar
Posts: 1236
Joined: Sat Aug 30, 2008 0:00
Location: Netherlands

Postby IceCreamy » Sat Mar 27, 2010 2:21

not rly a pro in scripts, but imo:

[et_code]bind MOUSE2 "vstr swSens"[/et_code]

should be

[et_code]bind MOUSE2 "+vstr swSens"[/et_code]

If this does not work either:

[et_code]
bind MOUSE2 "vstr swSens" // you may want to change this
set sensLong "set swSens vstr sensClose; exec long.cfg; echo ^3LONG"
set sensClose "set swSens vstr sensLong; exec close.cfg; echo ^6CLOSE"
set swSens "vstr sensLong" [/et_code]

goes into:

[et_code]
set sensLong "exec long.cfg;echo ^3Long^7;set vstr sensClose"
set sensClose "exec close.cfg;echo ^6Close^7;set vstr sensLong"
bind MOUSE2 "+vstr sensLong sensClose"
[/et_code]

Why make it hard when you can do it easy ;) No offense btw, hope it is not taken.
My Skype account: IceCreamChris
Feel free to add me :)

Image

Spam Lord
Posts: 469
Joined: Mon Nov 02, 2009 1:00

Postby Rainbow » Sat Mar 27, 2010 2:37

.
No need to use some file.cfg's that are executed every few seconds.

[et_code] bind MOUSE4 "vstr range"
set range "vstr range0"
set range0 "set range vstr range1; set m_pitch -0.011; set m_yaw 0.022; set sensitivity 0.8; set cg_fov 90"
set range1 "set range vstr range0; set m_pitch -0.011; set m_yaw 0.022; set sensitivity 1.7; set cg_fov 112"
[/et_code]

pitch,yaw,sens and fov editable ofc. :wink:
From my current cfg.

IceCreamy wrote:Why make it hard when you can do it easy ;) No offense btw, hope it is not taken.

Hihi, same :D

Official Member
User avatar
Posts: 363
Joined: Mon Jun 22, 2009 0:00

Postby Yoschi » Sat Mar 27, 2010 5:56

old :P

Server High Admin
User avatar
Posts: 2672
Joined: Tue Feb 12, 2008 1:00
Location: Netherlands, Utrecht

Postby Smadje » Sat Mar 27, 2010 12:11

Ah thx rainy, looks a lot easier :) ty all for helping ! I will try it out soon

Rainbow wrote:.
No need to use some file.cfg's that are executed every few seconds.

[et_code] bind MOUSE4 "vstr range"
set range "vstr range0"
set range0 "set range vstr range1; set m_pitch -0.011; set m_yaw 0.022; set sensitivity 0.8; set cg_fov 90"
set range1 "set range vstr range0; set m_pitch -0.011; set m_yaw 0.022; set sensitivity 1.7; set cg_fov 112"
[/et_code]

pitch,yaw,sens and fov editable ofc. :wink:
From my current cfg.


I have no Mouse4 buttons, so i want to put it on my scroll wheel. I changed it to:
[et_code]//_ Fov Change
bind MOUSE3 "vstr range"
set range "vstr range0"
set range0 "set range vstr range1; set m_pitch -0.01501; set m_yaw 0.022; set sensitivity 1.6; set cg_fov 90"
set range1 "set range vstr range0; set m_pitch -0.01501; set m_yaw 0.022; set sensitivity 2.0; set cg_fov 103" [/et_code]

It works except the fact that my mouse got inverted
quoting deep:
henksmadje please read topic more carefully and other topics too where u reply, then u get the point and dont have to make stupid posts.

Spam Lord
Posts: 469
Joined: Mon Nov 02, 2009 1:00

Postby Rainbow » Sat Mar 27, 2010 20:20

Then you need to remove the "-" from the m_pitch values. Negative values->inverted y-axis.

Server High Admin
User avatar
Posts: 2672
Joined: Tue Feb 12, 2008 1:00
Location: Netherlands, Utrecht

Postby Smadje » Sat Mar 27, 2010 20:36

Smart girl :>

thanx for the great help, guess it will work fine now :)

*hug*
quoting deep:
henksmadje please read topic more carefully and other topics too where u reply, then u get the point and dont have to make stupid posts.

Spam Lord
Posts: 469
Joined: Mon Nov 02, 2009 1:00

Postby Rainbow » Sat Mar 27, 2010 23:03

Smadje wrote:Smart girl :>

thanx for the great help, guess it will work fine now :)

*hug*

hehe np :)

btw, problem in post #1 is:
You need to define the swSens to something first.

This line would fix it, somewhere in autoexec.cfg, best at the end of all stuff of the fov-switcher:

set swSens "vstr sensClose"

Veteran
User avatar
Posts: 1359
Joined: Sun May 14, 2006 0:00
Location: The Netherlands

Postby wenszy » Sun Mar 28, 2010 11:46

here is mine simple one :p

set fov105 "cg_fov 105;sensitivity 1.50;crosshairsize 33;echo ^3zoom in;bind MWHEELUP vstr fov90"
set fov90 "cg_fov 90;sensitivity 1.25;crosshairsize 48;echo ^3zoom out;bind MWHEELUP vstr fov105"
bind MWHEELUP "vstr fov105"

only dont use it so much anymore cause nowadays i play for fun and just screwing around :p
well to solve all my problems
to get out of drugs
i'd had enough of that
i decided i was gonna'
find a new way of life

Spam Noob
User avatar
Posts: 14
Joined: Sun Dec 13, 2009 1:00

Postby r2bit » Sun Mar 28, 2010 16:59

:\

It was put into files to allow more different settings in the future. I see no downside to ti whatsoever. Works too btw..

wabbit

Spam Lord
Posts: 469
Joined: Mon Nov 02, 2009 1:00

Postby Rainbow » Sun Mar 28, 2010 17:15

:*
More then 3-4 settings switches are not possible with the "linline" version i posted. After a certain ammount of characters inline not work anymore (80, or 100 or so?) It was not ment like "r2bit's version is shit" :oops:

Spam Pro
User avatar
Posts: 289
Joined: Sat May 16, 2009 0:00

Postby Fefe » Mon Mar 29, 2010 1:59

I dont see a reason for this :)
never used it

Spam Lord
Posts: 469
Joined: Mon Nov 02, 2009 1:00

Postby Rainbow » Mon Mar 29, 2010 6:23

Fefe wrote:I dont see a reason for this :)
never used it


"hey, you can switch to weapons with 1-9"
- " I dont see a reason for this, i have mouse wheel :) I never used 1-9"

:wink:

Spam Pro
User avatar
Posts: 289
Joined: Sat May 16, 2009 0:00

Postby Fefe » Mon Mar 29, 2010 7:26

Rainbow wrote:
Fefe wrote:I dont see a reason for this :)
never used it


"hey, you can switch to weapons with 1-9"
- " I dont see a reason for this, i have mouse wheel :) I never used 1-9"

:wink:

:D i set medpack as mousewhell up and needle as down for comfort ;)
pressing 4 or 3 or 2 doesnt rly bother me but cycling from 2 to 5 ?? cammon :D

Return to PS Techz0ne

Who is online

Users browsing this forum: No registered users and 0 guests