From: terencehill Date: Fri, 13 Oct 2017 20:59:58 +0000 (+0200) Subject: Oops, fix rocketjump damage check X-Git-Tag: xonotic-v0.8.5~2378^2~41 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9c3378bea708a7748c646cd06578e4a7750735f3;p=xonotic%2Fxonotic-data.pk3dir.git Oops, fix rocketjump damage check --- diff --git a/qcsrc/server/bot/default/havocbot/havocbot.qc b/qcsrc/server/bot/default/havocbot/havocbot.qc index b0772900c..50359e761 100644 --- a/qcsrc/server/bot/default/havocbot/havocbot.qc +++ b/qcsrc/server/bot/default/havocbot/havocbot.qc @@ -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 ))