Skip to content

Server side peds can often become invincible #495

Open
@ArranTuna

Description

@ArranTuna

Describe the bug
It seems that only the chosen syncer can change the health of a ped. That player could be having network trouble, that player might not even be as close as other players (a problem for me because I make peds off screen be collisionless so if a player whose syncing the ped isn't looking at the ped, other players shooting the ped can't kill it) basically this current system of having 1 nearby player syncing a ped is asking for trouble. Ideally anyone whose just damaged a ped, should be the one to tell the server to update the peds health and maybe become the new syncer of the ped.

To Reproduce
You will need 2 clients.
Create a server side ped, use getElementSyncer to see who is syncing it.
Whoever is syncing it, give them network trouble.
Other client should shoot the ped and that ped is invincible as the health changes aren't being synced by the syncer

Expected behavior
If a syncer is unresponsive then they should be removed as syncer within seconds, to prevent peds becoming invincible for a long time.

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

MTA Client (please complete the following information):
1.5.5 probably.

MTA Server (please complete the following information):
1.5.5 probably.

Additional context
https://bugs.mtasa.com/view.php?id=7371

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingsync

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions