]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Team heal feature. When a player spends time inside a team mate's stomach, they keep...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 2 Sep 2010 13:26:01 +0000 (16:26 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 2 Sep 2010 13:26:01 +0000 (16:26 +0300)
Todo & known bugs.txt
data/balance.cfg
data/qcsrc/server/vore.qc

index 350a17ccac8e4d2b1c62e220c28240319256a88b..2b56f67ec5ec0f398655b6c5795fe264f9920d1d 100644 (file)
@@ -6,8 +6,6 @@ Todo:
 \r
 - Put a HUD indicator of sorts as to when you have a weapon or not. Possibly the old HUD icon back\r
 \r
 \r
 - Put a HUD indicator of sorts as to when you have a weapon or not. Possibly the old HUD icon back\r
 \r
-- Add belly team heal feature. When a team mate is in your belly, they heal /faster\\r
-\r
 - 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\r
 \r
 - 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\r
 - 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\r
 \r
 - 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\r
index 67afb2f9169be0afb585972e14e7eee3bb88a013..65a20b25e3f691d7a7390fdac498cb69a732caa4 100644 (file)
@@ -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"\r
 set g_balance_vore_digestion_vampire 1 "amount of health you gain from each enemy during digestion"\r
 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)"\r
 set g_balance_vore_digestion_damage 4 "amount of damage applied to victims during digestion"\r
 set g_balance_vore_digestion_vampire 1 "amount of health you gain from each enemy during digestion"\r
 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)"\r
+set g_balance_vore_teamheal 1 "when enabled, having a team mate in your stomach will keep healing them by this amount"\r
+set g_balance_vore_teamheal_stable 150 "maximum amount of health you can get from a teamheal"\r
 set g_balance_vore_weight_gravity 1 "you get this heavier the more you eat, at 1 each meal makes you two times heavier"\r
 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"\r
 set g_balance_vore_kick_damage_min 10 "minimum amount of damage you can do during a stomach kick"\r
 set g_balance_vore_weight_gravity 1 "you get this heavier the more you eat, at 1 each meal makes you two times heavier"\r
 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"\r
 set g_balance_vore_kick_damage_min 10 "minimum amount of damage you can do during a stomach kick"\r
index 5c81ee2a6aa8053ff748f78d11e3b4c43176bf3d..b7e3b6ddf1563f5956f04813b4f6dbe6fc4b55dc 100644 (file)
@@ -163,6 +163,17 @@ void Vore_Digest()
                self.colormod = stov(cvar_string("g_vore_regurgitatecolor_digested"));\r
 }\r
 \r
                self.colormod = stov(cvar_string("g_vore_regurgitatecolor_digested"));\r
 }\r
 \r
+.float teamheal_step;\r
+void Vore_Teamheal()\r
+{\r
+       if(cvar("g_balance_vore_teamheal") && self.health < cvar("g_balance_vore_teamheal_stable"))\r
+       if(time > self.teamheal_step + 0.1)\r
+       {\r
+               self.health += cvar("g_balance_vore_teamheal");\r
+               self.teamheal_step = time;\r
+       }\r
+}\r
+\r
 .float stomachkick_delay;\r
 void Vore_StomachKick()\r
 {\r
 .float stomachkick_delay;\r
 void Vore_StomachKick()\r
 {\r
@@ -288,6 +299,8 @@ void Vore()
 \r
        if(self.eater.digesting == TRUE)\r
                Vore_Digest();\r
 \r
        if(self.eater.digesting == TRUE)\r
                Vore_Digest();\r
+       if(teams_matter && self.team == self.eater.team)\r
+               Vore_Teamheal();\r
 \r
        Vore_StomachKick();\r
 }
\ No newline at end of file
 \r
        Vore_StomachKick();\r
 }
\ No newline at end of file