centerprint self.message for done objectives to keep players informed
authorMaik Merten <maikmerten@googlemail.com>
Sun, 28 Nov 2010 14:12:06 +0000 (15:12 +0100)
committerMaik Merten <maikmerten@googlemail.com>
Sun, 28 Nov 2010 14:12:06 +0000 (15:12 +0100)
qcsrc/server/assault.qc

index 3575d563293d4d6c20261bc5b7e4606ca576142e..0d7da73572a3083af09aff6a296b55afbe4fabf2 100644 (file)
@@ -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();