comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
Executes a server command, as if typed at the console (ie "exec myconfig.cfg", or "quit").
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
Begin a network message to send to the client.
msg_type should be a number returned by RegUserMsg.
msg_dest is one of:
- MSG_BROADCAST - "unreliable to all"
- MSG_ONE - "reliable to one (msg_entity)"
- MSG_ALL - "reliable to all"
- MSG_INIT - "write to the init string"
- MSG_PVS - "Ents in PVS of org" (PVS=potentially visible set)
- MSG_PAS - "Ents in PAS of org" (PAS=potentially audible set)
- MSG_PVS_R - "Reliable to PVS"
- MSG_PAS_R - "Reliable to PAS"
- MSG_ONE_UNRELIABLE - "Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)"
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
Register a new cvar (server variable).
comments:
Return the float value of a cvar.
comments:
Return the string value of a cvar.
comments:
Set the float value of a cvar.
comments:
Set the string value of a cvar.
comments:
Print an alert message.
atype is one of:
- at_notice
- at_console - "same as at_notice, but forces a ConPrintf, not a message box". Prints output to server console, but only shown if 'developer' is set.
- at_aiconsole - "same as at_console, but only shown if developer level is 2!"
- at_warning
- at_error
- at_logged - "Server print to console (only in multiplayer games)." Prints output to server logs and console.
comments:
.
comments:
.
comments:
Returns a pointer to the base class type of the given edict. For
instance:
CBaseEntity *pPlayer=(CBaseEntity *)GET_PRIVATE(pEntity);
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
Returns the server slot (ie 1 to maxplayers) of the given player edict.
comments:
Returns the edict for the player in the given server slot (ie 1 to maxplayers).
comments:
.
comments:
.
comments:
Register a network message type with the given name, and size if known. Returns the number assigned for the network message, to be used with MessageBegin.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
Prints output to the server console.
comments:
Returns the command name and arguments, as a single string. For use in DLLAPI ClientCommand, or in the function provided to AddServerCommand.
comments:
Returns the nth argument to the command. Cmd_Argv(0) returns the command name itself.
comments:
Returns the number of arguments given to the command.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
Opens the given filename relative to the gamedir, and returns a pointer to a byte array (character string) with the contents of the file. NULL-termination of the array indicates end of file. Length of the file in bytes is returned in the given int pointer.
comments:
Free the byte array of the given buffer which was returned by LoadFileForMe.
comments:
.
comments:
.
comments:
Returns the full pathname of the game directory, for instance "/usr/local/half-life/cstrike".
comments:
.
comments:
.
comments:
.
comments:
Creates "bots" (?).
comments:
.
comments:
.
comments:
Returns the InfoKeyBuffer for the given edict. This is basically the fields from "setinfo" at the client console, and includes things like the player name.
comments:
Returns the value for the given key in the given InfoKeyBuffer.
comments:
Adds or sets a key/value pair in the given InfoKeyBuffer. Appears to work for only server info, and not client info. For clients, use SetClientKeyValue.
comments:
Adds or sets a key/value pair in a client's InfoKeyBuffer, by server slot (ie 1 to maxplayers).
comments:
.
comments:
.
comments:
.
comments:
Returns the session userid for the given player edict. As of server x106, this is constant for the life of the player connection, and unique for the life of the server process. Each time a client connects, they are given a userid of 1 plus the userid of the previous connecting client. When the server starts/restarts, the server starts again at userid 1.
comments:
.
comments:
.
comments:
Returns a pointer to a cvar_t struct for the given cvar (server variable) name.
comments:
Returns the WON id for the given player edict. As of server x106, this should be unique per client CD KEY, and should be consistent across all WON auth servers.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.
comments:
.