OsirisAndExtra icon indicating copy to clipboard operation
OsirisAndExtra copied to clipboard

Roll

Open SightDev opened this issue 2 years ago • 11 comments

I feel like it would give a advantage above other users as everyone is using roll nowadays

SightDev avatar Sep 12 '22 04:09 SightDev

I feel like it would give a advantage above other users as everyone is using roll nowadays

why ask for this when its just cmd->viewangles.z

JannesBonk avatar Sep 12 '22 06:09 JannesBonk

lol

image

image

image

image

dapaster avatar Sep 12 '22 17:09 dapaster

lol

image

image

image

image

anim fix issue, i ported nixware roll to my fork

JannesBonk avatar Sep 14 '22 16:09 JannesBonk

lol

image

image

image

image

anim fix issue, i ported nixware roll to my fork

could you send me nixware source?

Neryliusz avatar Sep 16 '22 09:09 Neryliusz

lol

image

image

image

image

anim fix issue, i ported nixware roll to my fork

could you send me nixware source?

i ported from a lua

JannesBonk avatar Sep 16 '22 09:09 JannesBonk

Your fork doesnt have much. Mind updating it?

Synth1a avatar Sep 16 '22 18:09 Synth1a

Your fork doesnt have much. Mind updating it?

cause its just private, not even public

JannesBonk avatar Sep 17 '22 06:09 JannesBonk

// for actual code
if (g_settings.m_bRoll) cmd->m_view_angles.z = 45.f;

// for clamp
cmd->m_view_angles.z = std::clamp(cmd->m_view_angles.z, -45.f.f, 45.f);

Wolfyyta avatar Dec 19 '22 11:12 Wolfyyta

// for actual code
if (g_settings.m_bRoll) cmd->m_view_angles.z = 45.f;

// for clamp
cmd->m_view_angles.z = std::clamp(cmd->m_view_angles.z, -45.f.f, 45.f);

thats mega lean

JannesBonk avatar Dec 19 '22 19:12 JannesBonk

// for actual code
if (g_settings.m_bRoll) cmd->m_view_angles.z = 45.f;

// for clamp
cmd->m_view_angles.z = std::clamp(cmd->m_view_angles.z, -45.f.f, 45.f);

thats mega lean

z is roll, so it's the same thing different name

notgoodusename avatar Dec 21 '22 20:12 notgoodusename

changge these to "std::clamp(this->z, -90.f, 90.f);" https://github.com/notgoodusename/OsirisAndExtra/blob/main/Osiris/SDK/Vector.h#L152 https://github.com/notgoodusename/OsirisAndExtra/blob/main/Osiris/Hooks.cpp#L420 then add this stuff to the place you thingk it shou be cmd->viewangles.z = (roll angle you want);

M3351AN avatar Jan 13 '23 13:01 M3351AN