google-code-export / p-g-qvm

Automatically exported from code.google.com/p/p-g-qvm
Other
1 stars 0 forks source link

Repeatable messages #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Ok, one thing that could be useful for many servers, and in SST's case,
donation messages, is a feature that repeats messages.

What i was thinking of is cvar g_msg holds the message
g_msgTime is the repeat rate

When a map starts, the server sends the message once, then whenever game
clock has progressed time of g_msgTime, it sends it again.

g_msg would be printed via CP

Original issue reported on code.google.com by Paradox460 on 17 Feb 2008 at 11:26

GoogleCodeExporter commented 9 years ago
Attached patch implemented as described, plus addresses other issues.

 g_msg = "text to display"
 g_msgTime = interval in minutes, 0 disables, negative value is once per map (-5 will
print the message once 5 minutes into each map)

Supports newline escapes.
Patch also adds newline escapes to !cp (issue#45)
Patch also echos all cp style commands to console (issue#46)

Original comment by Rez...@gmail.com on 18 Feb 2008 at 7:22

Attachments:

GoogleCodeExporter commented 9 years ago
This second patch adds CP: to the !cp and rcon cp commands when echoing to the
console, players sees:

CP: message

Original patch did not do this, I am partial to not adding it as messages with
newlines look poor. Note that neither patch prefixes text to the g_msg text 
printed
to console.

Original comment by Rez...@gmail.com on 18 Feb 2008 at 7:38

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by Rez...@gmail.com on 18 Feb 2008 at 7:38

GoogleCodeExporter commented 9 years ago
Wait, does the CP patch override issue 46? You said it does.

If so, please mark google's as duplicate.

As for the message, gj and thankx.

Original comment by Paradox460 on 22 Feb 2008 at 5:11

GoogleCodeExporter commented 9 years ago
The patch included solutions to issue#45 and issue#46, they have been marked as
duplicates of this issue.

Original comment by Rez...@gmail.com on 22 Feb 2008 at 11:11

GoogleCodeExporter commented 9 years ago

Original comment by Paradox460 on 24 Feb 2008 at 11:36