From: MirceaKitsune Date: Thu, 2 Sep 2010 13:26:01 +0000 (+0300) Subject: Team heal feature. When a player spends time inside a team mate's stomach, they keep... X-Git-Url: https://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=b7ef4c0921bf115c5c422142e72c0d7d05deced9;hp=0551f8173d6b71484c04ccf19963280a6211ee0e Team heal feature. When a player spends time inside a team mate's stomach, they keep healing. --- diff --git a/Todo & known bugs.txt b/Todo & known bugs.txt index 350a17cc..2b56f67e 100644 --- a/Todo & known bugs.txt +++ b/Todo & known bugs.txt @@ -6,8 +6,6 @@ Todo: - Put a HUD indicator of sorts as to when you have a weapon or not. Possibly the old HUD icon back -- Add belly team heal feature. When a team mate is in your belly, they heal /faster\ - - Add a forced digestion after a given amount of time. Otherwise, a player can take everyone in their stomach and keep them there, blocking the game - Bots must learn to use the Grabber gun. The weapon code of havocbot is still there, but doesn't know how to shoot the Grabber diff --git a/data/balance.cfg b/data/balance.cfg index 67afb2f9..65a20b25 100644 --- a/data/balance.cfg +++ b/data/balance.cfg @@ -187,6 +187,8 @@ set g_balance_vore_regurgitate_velocitylimit 1200 "when a predator is going fast set g_balance_vore_digestion_damage 4 "amount of damage applied to victims during digestion" set g_balance_vore_digestion_vampire 1 "amount of health you gain from each enemy during digestion" set g_balance_vore_digestion_vampire_stable 150 "you stop gaining health past this point (best to keep equal or lower than g_balance_health_rotstable)" +set g_balance_vore_teamheal 1 "when enabled, having a team mate in your stomach will keep healing them by this amount" +set g_balance_vore_teamheal_stable 150 "maximum amount of health you can get from a teamheal" set g_balance_vore_weight_gravity 1 "you get this heavier the more you eat, at 1 each meal makes you two times heavier" set g_balance_vore_weight_speed 0.15 "you get this slower the more you eat, at 0.5 each meal makes you two times slower" set g_balance_vore_kick_damage_min 10 "minimum amount of damage you can do during a stomach kick" diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 5c81ee2a..b7e3b6dd 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -163,6 +163,17 @@ void Vore_Digest() self.colormod = stov(cvar_string("g_vore_regurgitatecolor_digested")); } +.float teamheal_step; +void Vore_Teamheal() +{ + if(cvar("g_balance_vore_teamheal") && self.health < cvar("g_balance_vore_teamheal_stable")) + if(time > self.teamheal_step + 0.1) + { + self.health += cvar("g_balance_vore_teamheal"); + self.teamheal_step = time; + } +} + .float stomachkick_delay; void Vore_StomachKick() { @@ -288,6 +299,8 @@ void Vore() if(self.eater.digesting == TRUE) Vore_Digest(); + if(teams_matter && self.team == self.eater.team) + Vore_Teamheal(); Vore_StomachKick(); } \ No newline at end of file