Osiris icon indicating copy to clipboard operation
Osiris copied to clipboard

Add mouse delta fix for SMAC servers (faceit serverside, etc)

Open dr3murr opened this issue 4 years ago • 3 comments

This should fix usercmd mousex/mousey for servers that check that.

dr3murr avatar Apr 16 '21 16:04 dr3murr

nice commits man!

KurastikO avatar Apr 17 '21 01:04 KurastikO

nice converted pseudocode from popular p2c dump... also it should be before all functions that manipulate angles

static QAngle angDeltaView = { };

const Vector2D vecMouseDelta = M::AnglePixels(U::sensitivity->GetFloat(), U::m_pitch->GetFloat(), U::m_yaw->GetFloat(), pCmd->angViewPoint, angDeltaView);
pCmd->sMouseDeltaX = static_cast<short>(vecMouseDelta.x);
pCmd->sMouseDeltaY = static_cast<short>(vecMouseDelta.y);

// save angles for next tick
angDeltaView = pCmd->angViewPoint;

will be enough

rollraw avatar Apr 18 '21 09:04 rollraw

nice converted pseudocode from popular p2c dump... also it should be before all functions that manipulate angles

complain about it being pasted and then proceed to paste

mkot2 avatar Apr 18 '21 15:04 mkot2