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

FOV Slider?

broken avatar :(
Created 9 years ago
by nabaro
0 Members and 1 Guest are viewing this topic.
3,842 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 January 2014
Last active: 3 years ago
Posts
143
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
nabaro's Groups
nabaro's Contact & Social Linkschelseafan122099nabarogamerblast11
Hey,

I'm trying to add an FOV slider to my map by adding this to the options_graphics_pc.menu (which I have saved under mapname\ui):
Code Snippet
Plaintext
CHOICE_DVARSLIDER( 35, "Field of Vision", cg_fov, 65, 65, 80, ; )

However, it won't change anything in the settings when I check it. What am I doing wrong?
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 21 September 2014
Last active: 3 months ago
Posts
191
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Let's all just light up a blunt, and make stuff.
×
AlecKeaneDUB's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
AlecKeaneDUB's Contact & Social LinksaleckeanedubAlecKeaneDUBAlecKeaneDUB
Make sure in your mod.csv in launcher, you add this line:
Code Snippet
Plaintext
menufile,ui/options_graphics_pc.menu
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 January 2014
Last active: 3 years ago
Posts
143
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
nabaro's Groups
nabaro's Contact & Social Linkschelseafan122099nabarogamerblast11
I just added it, it still doesn't work :(
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
Im probably wrong here as i know jack all about menu files but i think

Code Snippet
Plaintext
CHOICE_DVARSLIDER( 35, "Field of Vision", cg_fov, 65, 65, 80, ; )

should be

Code Snippet
Plaintext
CHOICE_DVARSLIDER( 35, "Field of Vision", cg_fov, 65, 65, 80 );
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 21 September 2014
Last active: 3 months ago
Posts
191
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Let's all just light up a blunt, and make stuff.
×
AlecKeaneDUB's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
AlecKeaneDUB's Contact & Social LinksaleckeanedubAlecKeaneDUBAlecKeaneDUB
Im probably wrong here as i know jack all about menu files but i think

Code Snippet
Plaintext
CHOICE_DVARSLIDER( 35, "Field of Vision", cg_fov, 65, 65, 80, ; )

should be

Code Snippet
Plaintext
CHOICE_DVARSLIDER( 35, "Field of Vision", cg_fov, 65, 65, 80 );
I would've guessed that as well but the way he has it is correct

I just added it, it still doesn't work :(
And as to it still not working, try messaging HitmanVere or lukkie1998 because their map, Hotel V2, has a working FOV slider. Hopefully they'll be able to help you out
Last Edit: May 10, 2015, 05:47:36 am by AlecKeaneDUB
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
well... at least i learned something lol :)
Marked as best answer by nabaro 9 years ago
broken avatar :(
×
broken avatar :(
Location: gbComing up in the world
Date Registered: 26 November 2013
Last active: 9 years ago
Posts
325
Respect
Forum Rank
Perk Hacker
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
I own the hat!
×
DuaLVII's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
DuaLVII's Contact & Social Linksthomas.gascoigne.7DuaLVIIDuaLVIITheProlonger
How I did it for farm was I put the slider into the game options instead of the graphic options. This won't effect it in any way at all, but it felt better suited in that menu.

How I did it was,
Opening raw / ui / options_game_pc_menu.menu

Commented out
Code Snippet
Plaintext
//CHOICE_DVARFLOATLIST( 22, "@MENU_ENABLE_CONSOLE", monkeytoy, { "@MENU_YES" 0 "@MENU_NO" 1 }, ; )

and replaced it with
Code Snippet
Plaintext
CHOICE_DVARSLIDER( 22, "Field of View", cg_fov, 65, 65, 90, ; )

Then added
Code Snippet
Plaintext
menufile,ui/options_game_pc.menu



Be aware though, using this basic method means that FOV can only be adjusted within game, not while in main menu.
More adjustments would be required in order to have a full FOV setting work at all times.
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 9 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
The way we did it:
At bottom of options_game_pc.menu, under
Code Snippet
Plaintext
CHOICE_DDVARALTTEXT_VIS( 25, "@MENU_MATURE", "@MENU_MATURE_REDUCED", when( ( !dvarBool(cg_allow_mature) || INGAME ) && dvarString( "cg_mature" ) == "0" && !dvarBool(ui_multiplayer) ) )

Paste this in:
Code Snippet
Plaintext
CHOICE_DVARSLIDER( 26, "FOV", cg_fov, 65, 65, 90, setLocalVarBool ui_showApply 1 )

If you have the menu called right in mod.csv, that should work
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 January 2014
Last active: 3 years ago
Posts
143
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Member
My Contact & Social Links
More
×
nabaro's Groups
nabaro's Contact & Social Linkschelseafan122099nabarogamerblast11
Thanks for your help! The problem was that I was creating a new copy of the file under my mapname folder and compiling it rather than editing the file in raw\ui itself.

 
Loading ...