Author Topic: A script that locks my fov  (Read 1605 times)

The default FOV in Blockland gives me a headache to I like to set my FOV through the command "setfov(120);". However, the fov automatically resets to the default value after I do something like change my weapon, die, ect. Is there any script or way to edit and lock the default FOV value? I'm tired of constantly having to change it.

Infinite loop that calls the setFov function?  :cookieMonster:

Infinite loop that calls the setFov function?  :cookieMonster:
well sure if that works. How do you set that up?

well sure if that works. How do you set that up?
He's being sarcastic, that will freeze up your game.

He's being sarcastic, that will freeze up your game.
I'm sure he was thinking of a schedule loop.
Speaking of schedule loops:


function lockFov(%on)
{
   cancel($fovLoop);

   if(!%on)
      return;

   setFov(120);

   $fovLoop = schedule(250, 0, lockFov, 1);
}


To start, put this in console: lockFov(1);
To stop, put this in console: lockFov(0);

Couldn't you just set $Pref::Player::DefaultFOV?
EDIT : Looks like it. Just enter this in the console and tap f.
Code: [Select]
$Pref::Player::DefaultFov = 120;
« Last Edit: August 12, 2012, 12:26:52 AM by Headcrab Zombie »

well fine then

go ahead and show off your exquisite knowledge of the prefs

>:(

Couldn't you just set $Pref::Player::DefaultFOV?
EDIT : Looks like it. Just enter this in the console and tap f.
Code: [Select]
$Pref::Player::DefaultFov = 120;
Sweet! Many thanks bro! Thanks to all who contributed as well :D