SET_DESTCOORDS(this.goalcurrent, this.origin, destorg);
// in case bot ends up inside the teleport waypoint without touching
// the teleport itself, head to the teleport origin
SET_DESTCOORDS(this.goalcurrent, this.origin, destorg);
// in case bot ends up inside the teleport waypoint without touching
// the teleport itself, head to the teleport origin
- if(this.goalcurrent.wpisbox && boxesoverlap(this.goalcurrent.absmin, this.goalcurrent.absmax, this.origin, this.origin))
+ if(this.goalcurrent.wpisbox && boxesoverlap(this.goalcurrent.absmin, this.goalcurrent.absmax, this.absmin, this.absmax))
+ {
+ bunnyhop_forbidden = true;
if(skill+this.bot_moveskill >= autocvar_bot_ai_bunnyhop_skilloffset)
havocbot_bunnyhop(this, dir);
if(skill+this.bot_moveskill >= autocvar_bot_ai_bunnyhop_skilloffset)
havocbot_bunnyhop(this, dir);