X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fmutators%2Fgamemode_assault.qc;h=49deac0e8f350c1f73cfea58694a21ac7927af5b;hb=244e5081c5c503c307e557c98ac864f6c9731475;hp=1eb2b77cb7d97dca6f1273a3428e51bd57591d6e;hpb=5c2f4b4147d182636eebc0c4454fc78f6561d56f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/mutators/gamemode_assault.qc b/qcsrc/server/mutators/gamemode_assault.qc index 1eb2b77cb..49deac0e8 100644 --- a/qcsrc/server/mutators/gamemode_assault.qc +++ b/qcsrc/server/mutators/gamemode_assault.qc @@ -63,20 +63,13 @@ void assault_objective_decrease_use() PlayerTeamScore_Add(activator, SP_ASSAULT_OBJECTIVES, ST_ASSAULT_OBJECTIVES, 1); self.enemy.health = -1; - entity oldself, oldactivator; + entity oldself, oldactivator, head; oldself = self; self = oldself.enemy; if(self.message) - { - entity player; - string s; - FOR_EACH_PLAYER(player) - { - s = strcat(self.message, "\n"); - centerprint(player, s); - } - } + FOR_EACH_PLAYER(head) + centerprint(head, self.message); oldactivator = activator; activator = oldself; @@ -113,9 +106,9 @@ float assault_decreaser_sprite_visible(entity e) decreaser = self.assault_decreaser; if(decreaser.enemy.health >= ASSAULT_VALUE_INACTIVE) - return FALSE; + return false; - return TRUE; + return true; } void target_objective_decrease_activate() @@ -353,7 +346,7 @@ void havocbot_goalrating_ast_targets(float ratingscale) if (!ad.bot_attack) continue; - found = FALSE; + found = false; for(tod = world; (tod = find(tod, targetname, ad.target)); ) { if(tod.classname == "target_objective_decrease") @@ -361,7 +354,7 @@ void havocbot_goalrating_ast_targets(float ratingscale) if(tod.enemy.health > 0 && tod.enemy.health < ASSAULT_VALUE_INACTIVE) { // dprint(etos(ad),"\n"); - found = TRUE; + found = true; break; } } @@ -381,7 +374,7 @@ void havocbot_goalrating_ast_targets(float ratingscale) // te_lightning2(world, '0 0 0', p); // Find and rate waypoints around it - found = FALSE; + found = false; best = world; bestvalue = 99999999999; for(radius=0; radius<1500 && !found; radius+=500) @@ -392,7 +385,7 @@ void havocbot_goalrating_ast_targets(float ratingscale) if(wp.classname=="waypoint") if(checkpvs(wp.origin, ad)) { - found = TRUE; + found = true; if(wp.cnt