]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Oops, fix rocketjump damage check
authorterencehill <piuntn@gmail.com>
Fri, 13 Oct 2017 20:59:58 +0000 (22:59 +0200)
committerterencehill <piuntn@gmail.com>
Fri, 13 Oct 2017 20:59:58 +0000 (22:59 +0200)
qcsrc/server/bot/default/havocbot/havocbot.qc

index b0772900cf5d88dcda18fdaaa4b7ea11a761d70f..50359e7613d86c9e5b8c2d98d69f44cde4b3b5ba 100644 (file)
@@ -614,8 +614,8 @@ void havocbot_movetogoal(entity this)
        if (skill > 6 && !(IS_ONGROUND(this)))
        {
                #define ROCKETJUMP_DAMAGE() WEP_CVAR(devastator, damage) * 0.8 \
-                       * ((this.strength_finished < time) ? autocvar_g_balance_powerup_strength_selfdamage : 1) \
-                       * ((this.invincible_finished < time) ? autocvar_g_balance_powerup_invincible_takedamage : 1)
+                       * ((this.strength_finished > time) ? autocvar_g_balance_powerup_strength_selfdamage : 1) \
+                       * ((this.invincible_finished > time) ? autocvar_g_balance_powerup_invincible_takedamage : 1)
 
                tracebox(this.origin, this.mins, this.maxs, this.origin + '0 0 -65536', MOVE_NOMONSTERS, this);
                if(tracebox_hits_trigger_hurt(this.origin, this.mins, this.maxs, trace_endpos ))