Osiris: fov (xyz) Changer

Created on 23 Jul 2020  路  8Comments  路  Source: danielkrupinski/Osiris

how can you add fov xyz at osiris?

viewmodel_offset_x
viewmodel_offset_y
viewmodel_offset_z
Unbenannt

is this possible to add? (on osiris)

Most helpful comment

void Misc::customViewmodel() noexcept
{

if (config->misc.CustomViewModel) {
    if (!localPlayer)
        return;

    static ConVar* view_x = interfaces->cvar->findVar("viewmodel_offset_x");
    static ConVar* view_y = interfaces->cvar->findVar("viewmodel_offset_y");
    static ConVar* view_z = interfaces->cvar->findVar("viewmodel_offset_z");
    static ConVar* sv_minspec = interfaces->cvar->findVar("sv_competitive_minspec");

    *(int*)((DWORD)&sv_minspec->onChangeCallbacks + 0xC) = 0;

    sv_minspec->setValue(0);
    view_x->setValue(config->misc.viewmodel_x);
    view_y->setValue(config->misc.viewmodel_y);
    view_z->setValue(config->misc.viewmodel_z);
}

}

All 8 comments

sure

void Misc::customViewmodel() noexcept
{

if (config->misc.CustomViewModel) {
    if (!localPlayer)
        return;

    static ConVar* view_x = interfaces->cvar->findVar("viewmodel_offset_x");
    static ConVar* view_y = interfaces->cvar->findVar("viewmodel_offset_y");
    static ConVar* view_z = interfaces->cvar->findVar("viewmodel_offset_z");
    static ConVar* sv_minspec = interfaces->cvar->findVar("sv_competitive_minspec");

    *(int*)((DWORD)&sv_minspec->onChangeCallbacks + 0xC) = 0;

    sv_minspec->setValue(0);
    view_x->setValue(config->misc.viewmodel_x);
    view_y->setValue(config->misc.viewmodel_y);
    view_z->setValue(config->misc.viewmodel_z);
}

}

@Cyk-Fad

void Misc::customViewmodel() noexcept

and it shouldn't be like that?

void Misc::customViewmodel(UserCmd* cmd) noexcept

and how i add this (this change ingame not)
Unbenan2nt
Unben3annt
Unbe1nannt
Unbenannt

@Florian9900

Look Hooks.cpp and paste this

Misc::CustomViewmodel(cmd);

and how i add this (this change ingame not)
Unbenan2nt
Unben3annt
Unbe1nannt
Unbenannt

it could be better in visual tab)

image
image
what in the hell did I do wrong here, won't save at all

they have to be the same
"viewmodel_x", "Custom Viewmodel X"
those arent the same so the cheat doesnt read it

pls someone make pr of this

Was this page helpful?
0 / 5 - 0 ratings

Related issues

noteffex picture noteffex  路  4Comments

NameNotTakenYAY picture NameNotTakenYAY  路  3Comments

chovss picture chovss  路  4Comments

Flaam picture Flaam  路  4Comments

nosexynomoney picture nosexynomoney  路  3Comments