X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fbot%2Fhavocbot%2Fhavocbot.qc;h=a0e6bfffd42926004503c8e9f63b8e9eaaa07836;hb=0ab7132eba1a94b5ec19efe5a3f5f63071ed80ff;hp=7e23903ed27548a2c3df90d821b84fd5cfbdfb82;hpb=5c4ae3ec7458cf4e8d07f6eed4fe24fceea13b70;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/bot/havocbot/havocbot.qc b/qcsrc/server/bot/havocbot/havocbot.qc index 7e23903ed..a0e6bfffd 100644 --- a/qcsrc/server/bot/havocbot/havocbot.qc +++ b/qcsrc/server/bot/havocbot/havocbot.qc @@ -20,7 +20,7 @@ void havocbot_ai() } else { - if not(self.jumppadcount) + if (!self.jumppadcount) self.havocbot_role(); } @@ -146,7 +146,7 @@ void havocbot_ai() havocbot_movetogoal(); // if the bot is not attacking, consider reloading weapons - if not(self.aistatus & AI_STATUS_ATTACKING) + if (!(self.aistatus & AI_STATUS_ATTACKING)) { float i; entity e; @@ -316,7 +316,7 @@ void havocbot_bunnyhop(vector dir) if(self.aistatus & AI_STATUS_ROAMING) if(self.goalcurrent.classname=="waypoint") - if not(self.goalcurrent.wpflags & WAYPOINTFLAG_PERSONAL) + if (!(self.goalcurrent.wpflags & WAYPOINTFLAG_PERSONAL)) if(fabs(gco_z - self.origin_z) < self.maxs_z - self.mins_z) if(self.goalstack01!=world) { @@ -422,7 +422,7 @@ void havocbot_movetogoal() } // Take off - if not(self.aistatus & AI_STATUS_JETPACK_FLYING) + if (!(self.aistatus & AI_STATUS_JETPACK_FLYING)) { // Brake almost completely so it can get a good direction if(vlen(self.velocity)>10) @@ -546,7 +546,7 @@ void havocbot_movetogoal() // If there is a trigger_hurt right below try to use the jetpack or make a rocketjump if(skill>6) - if not(self.flags & FL_ONGROUND) + if (!(self.flags & FL_ONGROUND)) { tracebox(self.origin, self.mins, self.maxs, self.origin + '0 0 -65536', MOVE_NOMONSTERS, self); if(tracebox_hits_trigger_hurt(self.origin, self.mins, self.maxs, trace_endpos ))