mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

createPed server-side with the parameter synced = false, the health is still synchronized

Open T-MaxWiese-T opened this issue 1 year ago • 2 comments

Describe the bug

The server-side function createPed with the parameter synced = false synchronizes the health anyway. However, the desired behaviour is that no synchronization takes place at all.

Steps to reproduce

  1. Execute this code on the server: createPed (0, 2226.1, -2218.7, 12, 0, false)
  2. Two players must be on the server.
  3. One player beats or shoots the ped until he is dead.
  4. The health is synchronized between the clients.

Version

Client: Multi Theft Auto v1.6-release-22628 Server: MTA:SA Server v1.6-release-22628

Additional context

None

Relevant log output

None

Security Policy

  • [X] I have read and understood the Security Policy and this issue is not security related.

T-MaxWiese-T avatar Jul 22 '24 03:07 T-MaxWiese-T

So you're saying that non synced peds shouldn't take damage? Or by not syncing the health then it would only die for the client that killed it?

Fernando-A-Rocha avatar Jul 25 '24 10:07 Fernando-A-Rocha

Health does not seems to be synced. At least if there are no other players around. Not sure if having another remote player in the server matters in the outcome.

To reproduce:

  1. Create a ped with synchronized disabled
  2. Damage the ped
  3. Rejoin
  4. The ped health still 100%

But I can confirm that deaths are synced, which is indeed bugged.

To reproduce:

  1. Create a ped with synchronized disabled
  2. Kill the ped
  3. Rejoin
  4. Ped is still dead

IIYAMA12 avatar Jul 26 '24 19:07 IIYAMA12