return;
self.status_teamhealing = 1; // start from the premise we can teamheal until proven otherwise
- if(self.deadflag != DEAD_NO || self.eater.classname == "player")
+ if(self.deadflag != DEAD_NO || self.eater.classname == "player" || self.flagcarried)
+ {
self.status_teamhealing = 0;
+ return;
+ }
// if we are holding a team mate that's been healed to the max, we can release them
// also use this check to not go any further if someone from the enemy team is in our stomach
{
if(head.team == self.team)
{
+ self.status_teamhealing = 2;
if(head.health >= cvar("g_balance_vore_teamheal_stable"))
self.BUTTON_REGURGITATE = TRUE; // release the team mate
}
if not(prey.flagcarried) // don't eat the flag carrier and ruin his job
if(Swallow_condition_check_bot(prey))
if(prey.health < cvar("g_balance_vore_teamheal_stable"))
- {
self.BUTTON_ATCK = TRUE; // swallow
- self.status_teamhealing = 2;
- }
}
.float swallow_retry, decide_delay1, decide_delay2;
e.colormod = stov(cvar_string("g_vore_regurgitatecolor_released"));\r
\r
if(e.eater.team == e.team && teamplay)\r
- centerprint(e.eater, "^4You have swallowed a team mate, use caution!");\r
+ centerprint(e.eater, "^3You have swallowed a team mate, use caution!");\r
\r
PlayerSound(e.eater, playersound_swallow, CHAN_PAIN, VOICETYPE_PLAYERSOUND);\r
setanim(e.eater, e.eater.anim_pain1, FALSE, TRUE, TRUE); // looks good for swallowing / regurgitating\r