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

Go to the source code of this file.

Macros

#define MOTD_FILE   autocvar_motdfile
 
#define MOTD_LINES   32
 Hard-limit to how many lines are allowed within a message of the day. More...
 

Functions

void MOTD_LoadDefault (void)
 Called on the server to load the default 'message of the day' file. More...
 
void MOT_LoadFromFile (string)
 Called on the server to load a specific 'message of the day' file. More...
 
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...
 
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...
 

Variables

var string autocvar_motdfile = "motd.txt"
 

Macro Definition Documentation

◆ MOTD_FILE

#define MOTD_FILE   autocvar_motdfile

◆ MOTD_LINES

#define MOTD_LINES   32

Hard-limit to how many lines are allowed within a message of the day.

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.

Variable Documentation

◆ autocvar_motdfile

var string autocvar_motdfile = "motd.txt"