X-Git-Url: https://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=blobdiff_plain;f=data%2Fqcsrc%2Fserver%2Fvore.qc;h=b7e3b6ddf1563f5956f04813b4f6dbe6fc4b55dc;hp=5c81ee2a6aa8053ff748f78d11e3b4c43176bf3d;hb=b7ef4c0921bf115c5c422142e72c0d7d05deced9;hpb=0551f8173d6b71484c04ccf19963280a6211ee0e 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