Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[HL2DM] Severe Revolver Aiming Bug

Open StrikerTheHedgefox opened this issue 13 years ago • 4 comments

This bug has existed for a long time in HL2DM, and has always been problematic for those with pings over 50. Basically, what happens, is when you fire the revolver while turning, your view and orientation will snap back to where it was when you fired.

Good way to test this is to somehow force your ping to be over 200, face north, fire your revolver and quickly face south. Once your client catches up with the server, you'll suddenly be facing north again. This makes it very hard, sometimes impossible to aim and move correctly when using this weapon.

StrikerTheHedgefox avatar Apr 10 '13 23:04 StrikerTheHedgefox

+1 a long term problem that needs fixing, this and many other bug fixes for hl2dm have already been fixed in a mod called AG2 (adrenaline gamer 2) sadly no one plays the mod but they do still play hl2dm, maybe a valve employee might want to have a look at their work.

ibscotty avatar Jun 26 '13 15:06 ibscotty

I'd love it if Valve got in contact with the AG2 Creator and asked if they could use some of his code.

StrikerTheHedgefox avatar Jun 29 '13 18:06 StrikerTheHedgefox

Video example of this bug https://www.youtube.com/watch?v=pVt5aUOBckg

gavvvr avatar Jul 24 '15 19:07 gavvvr

This can be fixed by removing the SnapEyeAngles call (Which is serverside and not predicted correctly, such a boneheaded idea to use it in a weapon) and replacing it with the following in weapon_357.cpp:

#ifdef CLIENT_DLL
    //Disorient the player
    if (prediction->IsFirstTimePredicted()) // [Striker] Got rid of the shitty SnapEyeAngles crap.
    {
        QAngle angles;
        engine->GetViewAngles(angles);

        angles.x += random->RandomInt(-1, 1);
        angles.y += random->RandomInt(-1, 1);
        angles.z = 0;

        engine->SetViewAngles(angles);
    }
#endif

Including prediction.h is necessary.

This was an easy to find, simple and fully functional fix, and it only took about 30 seconds to write. Something Valve couldn't be assed with. Pathetic. Folks need some initiative.

StrikerTheHedgefox avatar Apr 30 '16 13:04 StrikerTheHedgefox