From: terencehill Date: Mon, 13 Mar 2017 00:28:42 +0000 (+0100) Subject: Take into account strength before doing a rocket jump X-Git-Tag: xonotic-v0.8.2~63 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=21ea853e4c1bce03859e4f7ebf72fdad4cffd90e;p=xonotic%2Fxonotic-data.pk3dir.git Take into account strength before doing a rocket jump --- diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index 4c3c3f02c..824d645ee 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -608,7 +608,7 @@ void havocbot_movetogoal(entity this) return; } - else if(this.health>WEP_CVAR(devastator, damage)*0.5) + else if(this.health > WEP_CVAR(devastator, damage) * 0.5 * ((this.strength_finished < time) ? autocvar_g_balance_powerup_strength_selfdamage : 1)) { if(this.velocity.z < 0) {