open.mp icon indicating copy to clipboard operation
open.mp copied to clipboard

[BUG]: Attachments get in the way while aiming

Open ReshiramZekrom1 opened this issue 2 years ago • 2 comments

Description

This is a known Attachments bug. It happens anytime you aim with a sniper, heat seeker, rocket launcher or camera. The attachments get in your way and you can barely see something unless you zoom-in.

Prior the Pawn.Raknet plugin, the most widely used work-around relied on the RemovePlayerAttachedObject native (it checked whatever the player was aiming with one of those weapons with OnPlayerKeyStateChange, it removed the attachments and set them back once the aiming key was released) which actually fixed the issue but it was quite bizarre since the changes were visible by other players as well.

This include, published on Burgershot forums too, corrected that behavior by hiding the attachment JUST for the player which is aiming by using Pawn.Raknet.

How to re-produce this bug

  1. Set an attachment like the one below; SetPlayerAttachedObject(playerid, 0,19528,2,0.11,0.00,0.00,0.0,-6.0,0.0,1.06,1.20,0.91);
  2. Aim with sniper, heat seeker, rocket launcher or camera.

open.mp server version

public beta build 1

Operating system or distribution

Windows 10

Contact information

ReshiramZekrom#7809

Additional information

I've reported this although I don't know whether it should be patched by the omp team or not. Patching it will mean fixing it for everybody and, while I believe it's an annoying issue, might there be someone which actually relies on this somehow or likes it the way as it is. Since it can be easily fixed by simply including in the script the include linked above - which currently isn't working as, at the time I'm writing this, there are any omp natives to mess around with packets - it can even be left as it is.

ReshiramZekrom1 avatar Apr 21 '22 12:04 ReshiramZekrom1