mirror of
https://github.com/nzp-team/quakec.git
synced 2024-11-24 21:02:14 +00:00
SERVER: Used Target messages should print to all Clients
This commit is contained in:
parent
1e1925ffa6
commit
de90e7ddad
1 changed files with 9 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue