diff --git a/source/server/entities/sub_functions.qc b/source/server/entities/sub_functions.qc index 5860ed4..56014ae 100644 --- a/source/server/entities/sub_functions.qc +++ b/source/server/entities/sub_functions.qc @@ -82,6 +82,29 @@ void() SUB_UseTargets = if (self.target8) tempcount = tempcount + 1; + // + // print the message + // + if (activator.classname == "player" && self.message != "") + { + centerprint (activator, self.message); + } + + // + // kill the killtagets + // + if (self.killtarget) + { + t = world; + do + { + t = find (t, targetname, self.killtarget); + if (!t) + breakthis = true; + remove (t); + } while (!breakthis); + } + while(tempcount > temptotal) { temptotal = temptotal + 1; @@ -125,30 +148,6 @@ void() SUB_UseTargets = return; } - - // - // print the message - // - if (activator.classname == "player" && self.message != "") - { - centerprint (activator, self.message); - } - - // - // kill the killtagets - // - if (self.killtarget) - { - t = world; - do - { - t = find (t, targetname, self.killtarget); - if (!t) - breakthis = true; - remove (t); - } while (!breakthis); - } - // // fire targets //