multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.38k stars 424 forks source link

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

Open T-MaxWiese-T opened 1 month ago

T-MaxWiese-T commented 1 month ago

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

Fernando-A-Rocha commented 1 month ago

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?

IIYAMA12 commented 1 month ago

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