From de90e7ddad1cb94b429873ea799434e23d4a5ccb Mon Sep 17 00:00:00 2001 From: cypress Date: Sun, 1 Sep 2024 18:42:20 -0700 Subject: [PATCH] SERVER: Used Target messages should print to all Clients --- source/server/entities/sub_functions.qc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/server/entities/sub_functions.qc b/source/server/entities/sub_functions.qc index e04f350..0859f75 100644 --- a/source/server/entities/sub_functions.qc +++ b/source/server/entities/sub_functions.qc @@ -85,9 +85,16 @@ void() SUB_UseTargets = // // print the message // - if (activator.classname == "player" && self.message != "") + if (self.message != "") { - centerprint (activator, self.message); + // cypress -- NZ:P specific change, we should be firing the centerprint from + // activation onto all clients to not leave anyone out of the loop. + entity clients = find(world, classname, "player"); + + while (clients != world) { + centerprint(clients, self.message); + clients = find(clients, classname, "player"); + } } //