UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

How to change the fov?

broken avatar :(
Created 11 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
3,162 views
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
i made a power up and i want it to change your field of view and it didnt work:
Code Snippet
Plaintext
setsaveddvar ( "cg_fov", 80 );

wait 30;

setsaveddvar ( "cg_fov", 65 );

Post Merge: September 07, 2013, 11:33:15 pm
thats not the whole code fore the recrd
Last Edit: September 07, 2013, 11:33:15 pm by n123q45
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
More info is needed than 3 lines.
what was the error in cod?
 With developer 1 running?
Check commas and brackets on the line above the lines that you posted.
Last Edit: September 08, 2013, 02:05:54 am by codmoddd1234
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
More info is needed than 3 lines.
what was the error in cod?
 With developer 1 running?
Check commas and brackets on the line above the lines that you posted.
no error. It does nothing with that code(basically it ignores it)
Last Edit: September 08, 2013, 02:33:53 am by n123q45
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
Have u included it in your gsc.  And included the power up gsc in your mods maps folder?
more info is needed if you want people to help.
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
Have u included it in your gsc.  And included the power up gsc in your mods maps folder?
more info is needed if you want people to help.
my code:
Code Snippet
Plaintext
blood( drop_item, player_won )
{
    players = get_players();
    players[0].ignoreme = true;
setsaveddvar ( "cg_fov", 80 );
iPrintLnBold ("Working");

wait 30;

iPrintLnBold ("Done");
setsaveddvar ( "cg_fov", 65 );
    players[0].ignoreme = false;

}
everything but the fov works
Last Edit: September 08, 2013, 02:47:16 am by n123q45
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
Try setclientdvar instead.
And its possible that the change in fov is working but too small of a difference.

Marked as best answer by Deleted User 10 years ago
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
Try setclientdvar instead.
And its possible that the change in fov is working but too small of a difference.
i hope you realize that waw is strict about capitalization. Didnt work, said unknown command
Last Edit: September 08, 2013, 12:16:30 pm by n123q45
broken avatar :(
×
broken avatar :(
[UGX] Founder
Location: usBay Area, California
Date Registered: 24 June 2011
Last active: 9 months ago
Posts
5,551
Respect
6,691Add +1
Forum Rank
Immortal
Primary Group
UGX Administrator
My Groups
More
My Contact & Social Links
More
Signature
If Java had true garbage collection, most programs would delete themselves upon execution.
×
treminaor's Groups
UGX Administrator
UGX Team Member
UGX Site Moderator Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
i hope you realize that waw is strict about capitalization. Didnt work, said unknown command
Uh, no it's not lol. iprintln and iPrintLn are going to both work. Same thing with any other function, user-created or not. The reason you got unknown command is probably because you didnt pass enough arguements in setClientDvar. Read the error you get in the game...
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
Look through ugxmod zombiesmode gsc they call setclientdvar a few different times
Also you don't have "" around 65 and 80.
Last Edit: September 10, 2013, 08:54:38 am by codmoddd1234

 
Loading ...