From: MirceaKitsune Date: Mon, 2 May 2011 10:17:32 +0000 (+0300) Subject: Allow specifying health at which the player is default size X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9476b45c525bfb1886a7c296f3583e3b57c9d372;p=voretournament%2Fvoretournament.git Allow specifying health at which the player is default size --- diff --git a/data/defaultVT.cfg b/data/defaultVT.cfg index 9a549b34..ddc86dd2 100644 --- a/data/defaultVT.cfg +++ b/data/defaultVT.cfg @@ -1547,7 +1547,7 @@ set g_vore_regurgitatecolor_release_fade 0.01 "how quickly the regurgitation col set g_vore_regurgitatecolor_digest "0.15 0.25 0" "the color players will have when digested, only works when g_vore_keepdeadprey is disabled" set g_vore_keepdeadprey 1 "If enabled, prey remains in the stomach after dying, else the predator throws up their dead body. 0 = disabled, 1 = enabled, anything between = probability" -set g_healthsize 1 "Players who are low on health shrink and become smaller" +set g_healthsize 100 "Players who are low on health shrink and become smaller, value specifies health at which the player has default size" // part of an ugly hack for the menu audio sliders to work with the cutsound feature seta menu_volume 0.5 diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 2ae048db..9ca8a4e7 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -2258,7 +2258,7 @@ void ApplyHealthSize() } else { - self.scale = self.health / 100; // ranges between 0 and 100 + self.scale = cvar("g_healthsize") / self.health; // The following code sets the bounding box to match the player's size. // It is currently disabled because of issues with engine movement prediction (cl_movement).