createPed server-side with the parameter synced = false, the health is still synchronized
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
- Execute this code on the server:
createPed (0, 2226.1, -2218.7, 12, 0, false) - Two players must be on the server.
- One player beats or shoots the ped until he is dead.
- 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.
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?
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:
- Create a ped with synchronized disabled
- Damage the ped
- Rejoin
- The ped health still 100%
But I can confirm that deaths are synced, which is indeed bugged.
To reproduce:
- Create a ped with synchronized disabled
- Kill the ped
- Rejoin
- Ped is still dead