Comments (5)
Currently yes the menu runs on normal FOV, with no changes. IIRC you should just be able to do self setDvar("cg_fov", 160); and set it to 160, but you'd wanna save the value first, something like this should work I think,
SetFOV(value)
{
self setDvar("cg_fov", value);
self S("FOV Set To: "+value):
}
that should work I think, add it to an IntSlider option, with max value of 160, min value of 0, default of 30 or so
from bo4-lucy-menu.
Thank you.
So I added that function and added it as an option into the menu, passing in the value of 160 but I got a crash. I put a semi colon rather than a colon above and also tried removing the second line saying the fov it's set to.
Maybe this was the wrong way of doing it. I say intSliderTest but putting the code within it also caused the same crash.
Would that be something I am doing wrong?
Thanks again.
(Context below)
Menu option I added:
self addOpt("FOV", &SetFOV, 160);
Function:
SetFOV(value)
{
self setDvar("cg_fov", value);
self S("FOV Set To: "+value);
}
If I remove the two lines within SetFOV, it does not crash. Is it a case that cg_fov cannot be accessed? Doubt it?
from bo4-lucy-menu.
If anyone else is wondering how they can modify a dvar using this menu I have a solution. In functions.gsc in visual studio find the "HideGun" function and modify it to the dvar you want to change. In my case I changed the default dvar it was modifying (to hide the gun) to r_lodbiasrigid -1000 because at high FOVs the object culling is extremely noticable. This works for me without crashes. If I toggle on the "Hide gun" option in game my draw distance is increased and if I turn it off it goes back to normal.
from bo4-lucy-menu.
If anyone else is wondering how they can modify a dvar using this menu I have a solution. In functions.gsc in visual studio find the "HideGun" function and modify it to the dvar you want to change. In my case I changed the default dvar it was modifying (to hide the gun) to r_lodbiasrigid -1000 because at high FOVs the object culling is extremely noticable. This works for me without crashes. If I toggle on the "Hide gun" option in game my draw distance is increased and if I turn it off it goes back to normal.
This is basically the description I provided anyway, lol. This is the normal way of setting an int dvar, and has been standard in Call of duty for years. the only thing different is the shorthand code for defining the bool, which is also way more popular lately.
Thank you.
So I added that function and added it as an option into the menu, passing in the value of 160 but I got a crash. I put a semi colon rather than a colon above and also tried removing the second line saying the fov it's set to.
Maybe this was the wrong way of doing it. I say intSliderTest but putting the code within it also caused the same crash.
Would that be something I am doing wrong?
Thanks again.
(Context below)
Menu option I added: self addOpt("FOV", &SetFOV, 160);
Function: SetFOV(value) { self setDvar("cg_fov", value); self S("FOV Set To: "+value); }
If I remove the two lines within SetFOV, it does not crash. Is it a case that cg_fov cannot be accessed? Doubt it?
The mistake I made was including the self part, which was my bad, I wrote that reply before I went to bed. It should just be SetDvar, as the other person pointed out. Apologies, Ive been occupied with other things, so didnt have time to look into this until now.
from bo4-lucy-menu.
If anyone else is wondering how they can modify a dvar using this menu I have a solution. In functions.gsc in visual studio find the "HideGun" function and modify it to the dvar you want to change. In my case I changed the default dvar it was modifying (to hide the gun) to r_lodbiasrigid -1000 because at high FOVs the object culling is extremely noticable. This works for me without crashes. If I toggle on the "Hide gun" option in game my draw distance is increased and if I turn it off it goes back to normal.
So to close this and confirm what works, this is how you would do it.
add a Slider option as so below:
self addOptIncSlider("Set FOV To: ", &SetFOV, 0,0,300,5);
then in functions.gsc, create a function as follows:
SetFOV(Value)
{
setDvar("cg_fov", Value);
self iPrintLnBold("^4FOV Set To: ^1"+Value);
}
from bo4-lucy-menu.
Related Issues (14)
- Open Bugs HOT 5
- Max Elixer Possibility? HOT 2
- Missing weapons' names HOT 7
- Menu crashing after 512 menu items HOT 9
- Max Level & Unlock All HOT 10
- Unlock all HOT 5
- Unlockall not unlocking all camos HOT 5
- REQUEST HOT 9
- New Version of BO4 HOT 3
- Rank up working but not unlocking items HOT 2
- Request #2 HOT 2
- Some issues with the Mod Menu HOT 14
- 3 Requests HOT 42
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bo4-lucy-menu.