]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Take into account strength before doing a rocket jump
authorterencehill <piuntn@gmail.com>
Mon, 13 Mar 2017 00:28:42 +0000 (01:28 +0100)
committerterencehill <piuntn@gmail.com>
Mon, 13 Mar 2017 00:28:42 +0000 (01:28 +0100)
qcsrc/server/bot/default/havocbot/havocbot.qc

index 4c3c3f02cd74cfcf1c1f7ce609cfab534e9e2efc..824d645eec6ecdbb54d4d577eff73259040b0a85 100644 (file)
@@ -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)
                        {