Open ArranTuna opened 5 years ago
I updated the issue description to be more accurate.
As referred to, we recently discussed this issue on the development channel. We came up with 3 potential solutions;
Patch the 'realdriveby' resource to block driveby on bikes by default (opt-out or hardcode) so that we atleast won't promote or stimulate appearance of the bug through official resources.
Block driveby on bikes by default using setGlitchEnabled, so that server owners can opt-in to the bug if they prefer. This is a typical GTA bug and a result of SA not having been designed for MP.
Take the proper approach; instead of migitating, actually fix it, like Saml1er proposed we could do, and which has actually been planned upon. The code from @sbx320's earlier fix above could be partially reused, and suitable replacement anims for bikes can be picked.
Describe the bug Whenever a player is driving a bike and aims sidewards with a weapon, he is completely resistant from remote bullets. This bug has existed for as long MTA exists.
To reproduce
Expected behaviour Taking damage from bullets when in driveby mode when on (motor)bike.
Version Since MTA developer preview
Additional context Dutchman101: The driveby hitbox fix (https://github.com/multitheftauto/mtasa-blue/commit/a74285d6a5cfa2a64ad399af7121d8e6a204da4b) was only applied for vehicles other than bikes, we recently had a discussion on #development (Discord) and got to know that @saml1er likes to take on this issue and replace bike anims similarly to how the others were patched, along with resizing the hitboxes for both bikes and cars (since it takes a specific spot to deal damage to drivers, even after the previous fix - it introduced the ability to deal damage after all, but it's difficult).
From https://bugs.mtasa.com/view.php?id=7263