]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Allow specifying health at which the player is default size
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 10:17:32 +0000 (13:17 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 May 2011 10:17:32 +0000 (13:17 +0300)
data/defaultVT.cfg
data/qcsrc/server/cl_client.qc

index 9a549b34cff662cd4a66f81e4f0e5945c5f286cd..ddc86dd2292cf972312310021df5f0da0a460376 100644 (file)
@@ -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"\r
 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"\r
 \r
-set g_healthsize 1 "Players who are low on health shrink and become smaller"\r
+set g_healthsize 100 "Players who are low on health shrink and become smaller, value specifies health at which the player has default size"\r
 \r
 // part of an ugly hack for the menu audio sliders to work with the cutsound feature\r
 seta menu_volume 0.5\r
index 2ae048dbc8cd968a62fa56d7a3e958c7b84094b4..9ca8a4e7627b0f1991be5c944a4cc4ce611a0b59 100644 (file)
@@ -2258,7 +2258,7 @@ void ApplyHealthSize()
        }\r
        else\r
        {\r
-               self.scale = self.health / 100; // ranges between 0 and 100\r
+               self.scale = cvar("g_healthsize") / self.health;\r
 \r
                // The following code sets the bounding box to match the player's size.\r
                // It is currently disabled because of issues with engine movement prediction (cl_movement).\r