Osiris icon indicating copy to clipboard operation
Osiris copied to clipboard

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

Open r3muxd opened this issue 3 years ago • 3 comments

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

r3muxd avatar Apr 16 '21 16:04 r3muxd

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