X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fassault.qc;h=0d7da73572a3083af09aff6a296b55afbe4fabf2;hp=c4fe3874780886834ba6e7744e7aa5bc3501f7a4;hb=0a5f730751cf4a7f6ce555ef920fe9fdcd8e59ac;hpb=f0c09030ea7f900872f92979f125324cca94cda1 diff --git a/qcsrc/server/assault.qc b/qcsrc/server/assault.qc index c4fe38747..0d7da7357 100644 --- a/qcsrc/server/assault.qc +++ b/qcsrc/server/assault.qc @@ -70,7 +70,7 @@ void assault_objective_decrease_use() { return; } - if(other.assault_sprite.classname == "sprite_waypoint") + if(other.assault_sprite) WaypointSprite_Disown(other.assault_sprite, waypointsprite_deadlifetime); else return; // already activated! cannot activate again! @@ -92,6 +92,17 @@ void assault_objective_decrease_use() { oldself = self; self = oldself.enemy; + if(self.message) + { + entity player; + string s; + FOR_EACH_PLAYER(player) + { + s = strcat(self.message, "\n"); + centerprint(player, s); + } + } + oldactivator = activator; activator = oldself; SUB_UseTargets(); @@ -251,31 +262,30 @@ void assault_roundstart_use() { activator = self; SUB_UseTargets(); - /* + #ifdef TTURRETS_ENABLED -entity ent,oldself; + entity ent, oldself; //(Re)spawn all turrets oldself = self; ent = find(world, classname, "turret_main"); while(ent) { - // Swap turret teams - if(ent.team == COLOR_TEAM1) - ent.team = COLOR_TEAM2; - else - ent.team = COLOR_TEAM1; + // Swap turret teams + if(ent.team == COLOR_TEAM1) + ent.team = COLOR_TEAM2; + else + ent.team = COLOR_TEAM1; - self = ent; + self = ent; - // Dubbles as teamchange - turret_stdproc_respawn(); - //ent.turret_spawnfunc(); + // Dubbles as teamchange + turret_stdproc_respawn(); - ent = find(ent, classname, "turret_main"); + ent = find(ent, classname, "turret_main"); } self = oldself; #endif -*/ + }