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

"Fix invincible peds (#777)" introduces a player post-death bug #1404

Closed
Dutchman101 opened this issue Apr 23, 2020 · 2 comments
Closed

"Fix invincible peds (#777)" introduces a player post-death bug #1404

Dutchman101 opened this issue Apr 23, 2020 · 2 comments
Labels
bug Something isn't working
Milestone

Comments

@Dutchman101
Copy link
Member

Dutchman101 commented Apr 23, 2020

Describe the bug
The change e43d34f has bugged the behavior of player ped right after death.

To reproduce

  1. Spawn
  2. Kill yourself (setElementHealth(localPlayer,0))
  3. Observe the bugged behavior as seen in this video:
    https://streamable.com/v0egjq

What is bugged: player can control their dead ped for a couple of seconds, which means either jump once (after which they'll be stuck), or fire a weapon in free aim if they were wielding one upon death. Additionally, the "up into the sky" cam behavior for wasted players is broken.

The correct behavior (including the cam): https://streamable.com/y32vl6
This video was taken on build r20515, right before the bug got introduced.

Version
Client r20518

@FileEX

@Dutchman101 Dutchman101 added the bug Something isn't working label Apr 23, 2020
@qaisjp qaisjp added this to the 1.5.8 milestone Apr 23, 2020
@qaisjp
Copy link
Contributor

qaisjp commented Apr 23, 2020

Yeah I think we should just revert #777 until it is fixed.

@qaisjp qaisjp closed this as completed in 159d291 Apr 23, 2020
@Addlibs
Copy link
Contributor

Addlibs commented Apr 23, 2020

As a follow up, if there's no resource respawning player automatically, they remains dead on the server but alive on all clients (except the local client if killed by killPed or /kill etc.), vehicle position (but not player position if on foot) continues to sync and the player can effectively drive cars if gets killed by gunfire etc. while driving, which could be problematic for a number of servers. This appears to only happen while there's another alive player in proximity faciliating the sync. If all players nearby are dead, vehicle position does not appear to sync.

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

3 participants