From 248cf47b022caea9730cae1a8d13ca1dfbfe5db3 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Mon, 19 Mar 2012 13:58:24 +0200 Subject: [PATCH] Player size now influences a player's weight as well, alongside stomach load. Macros will be very heavy and fall fast, while micros will rather float in the air a bit more. Needs some important changes before this is ready --- data/defaultVT.cfg | 1 + data/qcsrc/server/vore.qc | 2 +- docs/TODO.txt | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/defaultVT.cfg b/data/defaultVT.cfg index 83d5f7bb..68d2bdb6 100644 --- a/data/defaultVT.cfg +++ b/data/defaultVT.cfg @@ -1677,6 +1677,7 @@ set g_healthsize_min 50 "Player size may not drop below this amount of health" set g_healthsize_max 150 "Player size may not grow past this amount of health" set g_healthsize_death 0.25 "Dead players are further shrunken by this amount" set g_healthsize_death_min -100 "Health at which dead players stop being shrunken" +set g_healthsize_weight 0.75 "Size affects player gravity by this amount" set g_healthsize_movementfactor 0.5 "Amount by which player size affects jumping and running" set g_healthsize_viewfactor 2 "The view is offset by this amount based on player size" set g_healthsize_soundfactor 0.5 "The sounds players make are amplified or reduced by this amount based on their size" diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index fa8f453e..e64eaab6 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -209,7 +209,7 @@ void Vore_StomachLoad_Apply() self.stomach_load = final_load; // apply weight - self.gravity = 1 + (self.stomach_load / self.stomach_maxload) * cvar("g_balance_vore_load_pred_weight"); + self.gravity = 1 * (cvar("g_healthsize") ? pow(self.scale, cvar("g_healthsize_weight")) : 1) + (self.stomach_load / self.stomach_maxload) * cvar("g_balance_vore_load_pred_weight"); if(!self.gravity && self.stomach_load) self.gravity = 0.00001; // 0 becomes 1 for gravity, so do this to allow 0 gravity } diff --git a/docs/TODO.txt b/docs/TODO.txt index bb800c0c..dd4d822c 100644 --- a/docs/TODO.txt +++ b/docs/TODO.txt @@ -104,7 +104,7 @@ - +0.8: Some sort of bullet time feature in single player, by setting the slowmo cvar -- 0.8: Make weight depend on player size as well, not only stomach load +- 0.8: Make some g_healthsize cvars g_balance_healthsize, and move them to balanceVT.cfg - 0.8: Make player fatness depend on frags, using a trick I heard about with shaders -- 2.39.2