Nuclide
Software Development Kit for id Tech
motd.qc File Reference

Functions

void MOTD_Init (void)
 Called by CSQC_Init() on the client game and by initents() on the server game to set up a networked 'message of the day'. More...
 
void MOTD_LoadDefault (void)
 Called on the server to load the default 'message of the day' file. More...
 
void MOT_LoadFromFile (string fileName)
 Called on the server to load a specific 'message of the day' file. More...
 
string MOTD_GetTextBody (void)
 Returns the full text body of the 'message of the day' that is on the server. More...
 
int MOTD_GetLineCount (void)
 Returns how many individual lines are present in the message of the day. More...
 

Function Documentation

◆ MOT_LoadFromFile()

void MOT_LoadFromFile ( string  fileName)

Called on the server to load a specific 'message of the day' file.

◆ MOTD_GetLineCount()

int MOTD_GetLineCount ( void  )

Returns how many individual lines are present in the message of the day.

◆ MOTD_GetTextBody()

string MOTD_GetTextBody ( void  )

Returns the full text body of the 'message of the day' that is on the server.

Can be retrieved by clients via the motd console command.

◆ MOTD_Init()

void MOTD_Init ( void  )

Called by CSQC_Init() on the client game and by initents() on the server game to set up a networked 'message of the day'.

◆ MOTD_LoadDefault()

void MOTD_LoadDefault ( void  )

Called on the server to load the default 'message of the day' file.