branchrust_reboot/main/modding_max_hpcancel
3 Commits over 0 Days - ∞cph!
- fix ent commands sometimes showing "no command found"
- modified setmaxhealth command to work with new maxHealthOverride
- clamp maxHP after overriding it
- fix compile errors
merge from main -> modding_max_hp
Add `maxHealthOverride` to BaseCombatEntity so any entity can have their max HP overridden
- setting it to anything >0 will cause MaxHP to be overridden on both server & client
- check for maxHealthOverride in every MaxHealth() override
- works for all entities (except nodes because they don't show their HP to client)
Add `ent maxhp` command to allow setting max HP to a non-default value