SERVER: Used Target messages should print to all Clients

This commit is contained in:
cypress 2024-09-01 18:42:20 -07:00
parent 1e1925ffa6
commit de90e7ddad

View file

@ -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");
}
}
//