Osiris
Osiris copied to clipboard
Add mouse delta fix for SMAC servers (faceit serverside, etc)
This should fix usercmd mousex/mousey for servers that check that.
nice commits man!
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
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