g_vore = ReadCoord();\r
g_balance_vore_swallow_limit = ReadCoord();\r
g_healthsize = ReadCoord();\r
+ g_healthsize_min = ReadCoord();\r
+ g_healthsize_max = ReadCoord();\r
\r
armor_max = ReadCoord();\r
teamheal_max = ReadCoord();\r
\r
float g_vore;\r
float g_balance_vore_swallow_limit;\r
-float g_healthsize;\r
+float g_healthsize, g_healthsize_min, g_healthsize_max;\r
float armor_max;\r
float teamheal_max;\r
\r
// offset the name by player scale, decided by health
if(g_healthsize)
- ent.origin_z -= (g_healthsize - ent.healthvalue) * cvar("hud_shownames_offset_healthsize");
+ ent.origin_z -= (g_healthsize - bound(g_healthsize_min, ent.healthvalue, g_healthsize_max)) * cvar("hud_shownames_offset_healthsize");
traceline(ent.origin, view_origin, 1, ent);
WriteCoord(MSG_ENTITY, cvar("g_vore"));\r
WriteCoord(MSG_ENTITY, g_balance_vore_swallow_limit);\r
WriteCoord(MSG_ENTITY, cvar("g_healthsize"));\r
+ WriteCoord(MSG_ENTITY, cvar("g_healthsize_min"));\r
+ WriteCoord(MSG_ENTITY, cvar("g_healthsize_max"));\r
\r
// tell the client if this server uses armor\r
float armor_max;\r