Facepunch / garrysmod-issues

Garry's Mod issue tracker
144 stars 56 forks source link

SetHealth does nothing on the client #5449

Closed Kefta closed 1 year ago

Kefta commented 1 year ago

It should set m_iHealth like the server does, similar to how GMod has changed the default GetHealth/GetMaxHealth impl on the client.

Kefta commented 1 year ago

https://github.com/Facepunch/garrysmod-issues/issues/3572 can be closed by this.

Goldermor commented 1 year ago

why should it do anything?

Kefta commented 1 year ago

So that prediction errors don't occur every time the player's health is set.

Goldermor commented 1 year ago

how the hell do you get prediction errors from thing that is on the server side?

Kefta commented 1 year ago

That's the entire point of prediction errors. Server does something, client doesn't expect it because it didn't do the same thing = misprediction

robotboy655 commented 1 year ago

Done.