From: MirceaKitsune Date: Sat, 9 Jul 2011 15:12:18 +0000 (+0300) Subject: Make bots jump while being swallowed, to make it even harder to eat them. They should... X-Git-Url: http://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=20ced522b6d87d9a42af01bfd4f363563508393c;ds=sidebyside Make bots jump while being swallowed, to make it even harder to eat them. They should not do this when a team mate is eating them, but there's no way to check sadly --- diff --git a/data/qcsrc/server/bot/havocbot/vore_ai.qc b/data/qcsrc/server/bot/havocbot/vore_ai.qc index 8f413aff..b8e7d308 100644 --- a/data/qcsrc/server/bot/havocbot/vore_ai.qc +++ b/data/qcsrc/server/bot/havocbot/vore_ai.qc @@ -183,6 +183,12 @@ void Vore_AI() // Prey bot behavior: // -------------------------------- + // while being swallowed, smart bots know to keep jumping to make it harder to be caught + // TODO: Don't do this if the predator is a team mate + if(self.swallow_progress_prey) + if(self.swallow_progress_prey * 10 >= 10 - skill) // 10 skill steps + self.BUTTON_JUMP = TRUE; + if(self.stat_eaten && time > self.decide_prey) { // all we can do in the stomach is kick and do some damage / try to escape, or leave if the circumstances allow it and we should