r1ch.net forums
* Home Help Search Login Register
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: quake2 motd
Pages: [1]
Print
Author Topic: quake2 motd  (Read 9046 times)
macanah
Guest
« on: March 27, 2011, 10:55:41 am »

is it possible to make the motd (message of the day) appear for longer?
Logged
mhanor
Member

Posts: 120


« Reply #1 on: March 27, 2011, 11:28:46 am »

the game dll handles that, not r1q2
Logged
QwazyWabbit
Member

Posts: 402


« Reply #2 on: March 27, 2011, 12:36:40 pm »

The game doesn't know anything about the duration of the centerprint message on the client screen. It sends it to the engine and the engine sends it as a network message.

You can change the hang time by setting the client-side cvar: scr_centertime

The default value for the scr_centertime variable is 2.5 seconds.

To set it to 5 seconds, you would write: set scr_centertime 5.0

This will affect all messages that are printed to the center of the client screen.
« Last Edit: March 27, 2011, 12:41:46 pm by QwazyWabbit » Logged
mhanor
Member

Posts: 120


« Reply #3 on: March 28, 2011, 03:53:07 pm »

I was thinking of g_motd_message from opentdm, which is implemented by the game dll and it's not affected by that client side cvar. So, it all depends on how motd is implemented.
Logged
wision
Member

Posts: 237



« Reply #4 on: March 29, 2011, 08:22:15 am »

i believe motd is displayed until scoreboard/menu is shown.. there's also motd command which shows it again
Logged
QwazyWabbit
Member

Posts: 402


« Reply #5 on: March 29, 2011, 07:54:18 pm »

OpenTDM sends the motd message as a scoreboard message. Most other mods that have a motd when a player first joins use the gi.centerprint function in the mods I checked. It looks like the OpenTDM motd hangs around for 8 seconds and it's hard-coded for that delay. Other mods that use the gi.centerprint method can be modified by setting the client variable I posted above. I think if you were to set it in your default.cfg it would work for all mods that do it that way. I don't know if aprq2 also supports this variable or if it has another name.
Logged
wision
Member

Posts: 237



« Reply #6 on: March 30, 2011, 01:37:26 am »

well.. since it was me who coded the motd feature, I guess I should know Smiley.. motd disappears when menu/scoreboard is shown.. otherwise it stays on screen (at least that's how it was coded and I didn't see any changes in the code after that)
Logged
QwazyWabbit
Member

Posts: 402


« Reply #7 on: March 30, 2011, 05:30:34 pm »

My mistake, Lithium has an 8 second hang time on the motd display, it uses gi.centerprint. OpenTDM is as wision describes. I had both projects open when looking at the code and confused them. So I guess you can say, it depends a lot on the mod and how the motd is implemented whether you can get it to hang around longer with the client variable or whether it can be extended in the mod or as in the case of OpenTDM that it is just another kind of scoreboard message with no timeout.
Logged
macanah
Guest
« Reply #8 on: April 15, 2011, 07:11:05 am »

so what is the line that i put in the server config to make the motd last longer- any 1 know.
Logged
macanah
Guest
« Reply #9 on: April 15, 2011, 07:55:01 am »

how do i execute the comand    motd  when a client joins  in the server config
bcause if u type motd in console it will display the motd again
Logged
QwazyWabbit
Member

Posts: 402


« Reply #10 on: April 15, 2011, 03:34:35 pm »

so what is the line that i put in the server config to make the motd last longer- any 1 know.

set scr_centertime 10.0
Logged
macanah
Guest
« Reply #11 on: April 15, 2011, 06:10:54 pm »

i am using q2admin
Logged
macanah
Guest
« Reply #12 on: April 19, 2011, 08:59:10 am »

i am using q2admin for the motd
does ne1 know the server config line for that to make the motd last longer
thanku
Logged
Pages: [1]
Print
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: quake2 motd
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines