GithubHelp home page GithubHelp logo

FOV (Scale) about bo4-lucy-menu HOT 5 CLOSED

theunknowncod3r avatar theunknowncod3r commented on August 17, 2024
FOV (Scale)

from bo4-lucy-menu.

Comments (5)

TheUnknownCod3r avatar TheUnknownCod3r commented on August 17, 2024

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.

Markopolo784 avatar Markopolo784 commented on August 17, 2024

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.

DoubleG17 avatar DoubleG17 commented on August 17, 2024

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.
image

from bo4-lucy-menu.

TheUnknownCod3r avatar TheUnknownCod3r commented on August 17, 2024

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. image

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.

TheUnknownCod3r avatar TheUnknownCod3r commented on August 17, 2024

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. image

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.