set g_healthsize_death_min -100 "Health at which dead players stop being shrunken"\r
set g_healthsize_weight 0.75 "Size affects player gravity by this amount"\r
set g_healthsize_movementfactor 0.5 "Amount by which player size affects jumping and running"\r
+set g_healthsize_falldamagefactor 0.5 "Amount by which player size influences fall damage"\r
set g_healthsize_viewfactor 2 "The view is offset by this amount based on player size"\r
set g_healthsize_soundfactor 0.5 "The sounds players make are amplified or reduced by this amount based on their size"\r
set g_healthsize_exteriorweapon_scalefactor 1 "Amount by which player size resizes the exterior weapon model"\r
// check for falling damage\r
if(!(g_cts && !cvar("g_cts_selfdamage")))\r
{\r
+ // if we are smaller or larger, take more or less falling damage\r
+ float scalefac;\r
+ scalefac = cvar("g_healthsize") ? pow(self.scale, cvar("g_healthsize_falldamagefactor")) : 1;\r
+\r
dm = vlen(self.oldvelocity) - vlen(self.velocity); // dm is now the velocity DECREASE. Velocity INCREASE should never cause a sound or any damage.\r
if (self.deadflag)\r
- dm = (dm - cvar("g_balance_falldamage_deadminspeed")) * cvar("g_balance_falldamage_factor");\r
+ dm = (dm - cvar("g_balance_falldamage_deadminspeed") * scalefac) * cvar("g_balance_falldamage_factor");\r
else\r
- dm = min((dm - cvar("g_balance_falldamage_minspeed")) * cvar("g_balance_falldamage_factor"), cvar("g_balance_falldamage_maxdamage"));\r
- if(cvar("g_healthsize")) // if we are smaller or larger, we take more or less falling damage\r
- dm *= (1 + cvar("g_healthsize_movementfactor")) - cvar("g_healthsize_movementfactor") * self.scale; \r
+ dm = min((dm - cvar("g_balance_falldamage_minspeed") * scalefac) * cvar("g_balance_falldamage_factor"), cvar("g_balance_falldamage_maxdamage"));\r
+ dm /= scalefac;\r
if (dm > 0)\r
Damage (self, world, world, dm, DEATH_FALL, self.origin, '0 0 0');\r
else if(vlen(self.velocity) > 100000 && cvar("developer"))\r
\r
- 0.8: Does the wind trigger brush need to account scale based gravity?\r
\r
+- 0.8 BUG: Stomach load appeared 101 while my health was 100\r
+\r
- 0.8: Make some g_healthsize cvars g_balance_healthsize, and move them to balanceVT.cfg\r
\r
- 0.8: Make player fatness depend on frags, using a trick I heard about with shaders\r