Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onClientPlayerDamage doesn't trigger on attacker side if using sniper outside of world bounds #459

Closed
ArranTuna opened this issue Sep 13, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@ArranTuna
Copy link
Contributor

commented Sep 13, 2018

Describe the bug
If you shoot someone outside of the world bounds with a gun everything works fine, if you shoot them with a sniper rifle, onClientPlayerDamage triggers as expected for the receiver of damage but not for the attacker and the attacker does not see the receiver of damage react to the damage.

To Reproduce
Have 2 clients connected.

  • crun addEventHandler("onClientPlayerDamage", root, function() outputChatBox("Damage") end)
  • srun createObject(10831, -3100, -3100, 5)
  • crun setElementPosition(localPlayer, -3100, -3100, 15)
  • Equip sniper rifle and shoot another player, see that "Damage" doesn't appear in chatbox when using a sniper rifle.

Expected behaviour
The event should trigger.

Screenshots
If applicable, add screenshots to help explain your problem.

MTA Client (please complete the following information):
Multi Theft Auto v1.5.6-release-14370

MTA Server (please complete the following information):
MTA:SA Server v1.5.5-release-12010

Additional context
Bullet sync being on or off made no difference.

@ArranTuna ArranTuna added the bug label Sep 13, 2018

@lopezloo lopezloo self-assigned this Sep 14, 2018

@qaisjp qaisjp added this to the Backlog milestone Sep 20, 2018

@lopezloo lopezloo closed this Oct 12, 2018

@lopezloo lopezloo modified the milestones: Backlog, 1.5.7 Oct 12, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.