PDA

View Full Version : Changing FOV in CoD2



EvoloZz
24th February 2013, 13:46
Hey, does anyone know how to change FOV view in CoD2, because "set cg_fov" didn't work for me, cheats are needed to be enabled?

Tally
24th February 2013, 13:55
Hey, does anyone know how to change FOV view in CoD2, because "set cg_fov" didn't work for me, cheats are needed to be enabled?

Hmm, I'll have to double check. I forget which dvar it is.

kung foo man
24th February 2013, 13:59
Yea, its cheat protected, but you can do:



player setClientCvar("cg_fov", "140");


Also nice effect is to put those cvars into a loop and change it often. :D


EDIT:

Range is from 1 to 180 in CoD2.

EvoloZz
24th February 2013, 13:59
Thanks for help

EvoloZz
24th February 2013, 14:10
So i must have cheats enabled? Because that sucks :/

kung foo man
24th February 2013, 14:16
No, just set it by script.

EvoloZz
24th February 2013, 14:19
Then that's weird, cause it did not change anything

Earliboy
24th February 2013, 14:47
Well lets explain:
If a player uses /cg_fov he get the message "Cheats are not enabled at this server". If you start an map with cheats (/devmap MAP) then he can use it.
But if you set "self setClientCvar("cg_fov","140");" then it will change WITHOUT cheats enabled.

If you enable cheats: Everyone can use
If you disable cheats: Only script/server can set it

Hope it explains for u.

EvoloZz
24th February 2013, 14:51
I know that, but it didn't change the fov even thought i did write it into the script

Ni3ls
24th February 2013, 15:07
Did you try it with developer 1 enabled?
self setClientCvar("developer","1");

randall
24th February 2013, 16:49
Did you try it with developer 1 enabled?
self setClientCvar("developer","1");

it won't work

Earliboy
24th February 2013, 17:26
Not developer 1, just post the script.

Tally
24th February 2013, 17:51
No developer mode; no developer script. Just setting the dvar via script at player spawn:

http://imageshack.us/a/img109/5898/shot0004pw.jpg

Set at 120. If you try to set it above 160, it defaults to 80. So, although the range may be above 160 to 180, for some reason it wont actually go any higher than 160.

I had forgotten that before COD4, it was not possible for clients to set their own FOV. With COD4 and WaW, a client could edit their config_mp.cfg file and set FOV between 65 and 80. Obviously, with MW2 and MW3, they took out the dvar again, and it was only put back in with BO1 and BO2 by way of a FOV slider in the options menu.

EvoloZz
24th February 2013, 18:00
For me, it works now