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

Damage Ped (NPC) desynchronization with syncer #2069

Open
Toliak opened this issue Feb 4, 2021 · 0 comments
Open

Damage Ped (NPC) desynchronization with syncer #2069

Toliak opened this issue Feb 4, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Toliak
Copy link

Toliak commented Feb 4, 2021

Describe the bug
Ped becomes invincible, if server will set such syncer, that the ped has not ever been on syncer's client screen

To reproduce
0. We will need 2 players

  1. Create server-side ped
  2. Distance between Player1 and ped must be less than draw distance
  3. Rotate camera away for ped (ped must not be on Player1 client screen)
  4. Restart the code (because ped must never appear on Player1 screen)
  5. Damage ped by Player2 weapons: ped will be invincible. Video fragment
  6. [Optional] Create server-side ped2, set aim target and fire control on Player1 client: ped is still invincible. Video fragment
  7. Rotate camera to ped: now damage synchronization works well (for 5 and 6 steps)

Expected behavior
Expected from ped to be damageable.

Screenshots
Experiment video
Video fragment explanation
image

Version
Multi Theft Auto v1.5.8-release-20779

Experiments
Here I have performed some experiments with damage synchronization. Results:
results

Code
Reproducing code (without Line of sight part)

Workaround
I have found similar issue: #495 ,however that issue describes case with network trouble
onClientPedDamage client-side event for all players can partially fix the problem.

@Toliak Toliak added the bug Something isn't working label Feb 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant