rebel1324 / NutScript

A free role-play framework for Garry's Mod.
http://nutscript.net
MIT License
66 stars 32 forks source link

Divide by clients max health #332

Closed Stanstar22 closed 3 years ago

Stanstar22 commented 4 years ago

Issue with if the LocalPlayer has a higher max health than client, it will say the client is injured when in reality, the client is at their max health

The client is networked regardless so might as well divide by the correct value

TovarischPootis commented 3 years ago

Reasonable fix. Current version compares another player's health to the viewing player's max health, meaning that the is injured text appears incorrectly if the max health of the players are different