darope@0: darope@0: darope@0: darope@0: darope@0:
darope@0:comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Executes a server command, as if typed at the console (ie "exec darope@0: myconfig.cfg", or "quit"). Note that it appears no commands are darope@0: executed until after GameDLLInit is called. If darope@0: ServerCommand is called earlier than that, the command is delayed until darope@0: then. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Begin a network message to send to the client. darope@0:darope@0: darope@0:
msg_type should be a number returned by RegUserMsg. darope@0:
msg_dest is one of: darope@0:darope@0:
darope@0:- MSG_BROADCAST - "unreliable to all" darope@0:
- MSG_ONE - "reliable to one (msg_entity)" darope@0:
- MSG_ALL - "reliable to all" darope@0:
- MSG_INIT - "write to the init string" darope@0:
- MSG_PVS - "Ents in PVS of org" (PVS=potentially visible set) darope@0:
- MSG_PAS - "Ents in PAS of org" (PAS=potentially audible set) darope@0:
- MSG_PVS_R - "Reliable to PVS" darope@0:
- MSG_PAS_R - "Reliable to PAS" darope@0:
- MSG_ONE_UNRELIABLE - "Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)" darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Register a new cvar (server variable). darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Return the float value of a cvar. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Return the string value of a cvar. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Set the float value of a cvar. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Set the string value of a cvar. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Print an alert message. darope@0:darope@0: darope@0:
atype is one of: darope@0:darope@0:
darope@0:- at_notice darope@0:
- 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. darope@0:
- at_aiconsole - "same as at_console, but only shown if developer level is 2!" darope@0:
- at_warning darope@0:
- at_error darope@0:
- at_logged - "Server print to console (only in multiplayer games)." Prints output to server logs and console. darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Returns a pointer to the base class type of the given edict. For darope@0: instance: darope@0:darope@0: darope@0:darope@0: CBaseEntity *pPlayer=(CBaseEntity *)GET_PRIVATE(pEntity); darope@0:darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Returns the server slot (ie 1 to maxplayers) of the given player edict. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Returns the edict for the player in the given server slot (ie 1 to darope@0: maxplayers). darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Register a network message type with the given name, and size if known. darope@0: Returns the number assigned for the network message, to be used with MessageBegin. It appears that message darope@0: ID's 1-63 are reserved for the Engine, and that GameDLL messages are darope@0: allocated IDs starting at 64. The SDK dlls/util.h appears to darope@0: define six Engine messages: darope@0:darope@0: darope@0:darope@0:
darope@0:- SVC_TEMPENTITY = 23 darope@0:
- SVC_INTERMISSION = 30 darope@0:
- SVC_CDTRACK = 32 darope@0:
- SVC_WEAPONANIM = 35 darope@0:
- SVC_ROOMTYPE = 37 darope@0:
- SVC_HLTV = 50 darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Apparently, this finds the given exported function name string in the darope@0: GameDLL, and returns a pointer to said function (much like unix dlsym darope@0: or win32 GetProcAddress?). This appears to be used in GameDLL code for darope@0: loading savegames, as the savegames contain names of exported functions darope@0: in the GameDLL. Basically, this is the opposite of NameForFunction. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Basically, the opposite of FunctionFromName. Finds the given darope@0: function pointer address in the GameDLL, and returns the string name darope@0: for the corresponding function. This appears to be used in GameDLL darope@0: code for saving games, taking known function pointers and converting darope@0: them to function name strings to be stored in the savegames, so that darope@0: they can be converted back to function pointers upon game load. darope@0:darope@0: darope@0:
darope@0: JOHN: engine callbacks so game DLL can print messages to individual darope@0: clients darope@0:darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Prints output to the server console. darope@0:darope@0: darope@0:
darope@0: these 3 added so game DLL can easily access client 'cmd' strings darope@0:darope@0:
comments:
darope@0:
darope@0: Returns the arguments for a command, as a single string. The command darope@0: string itself is not included, and must be queried with darope@0: CMD_ARGV(0). For use in DLLAPI ClientCommand, or in darope@0: the function provided to AddServerCommand. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Returns the nth argument to the command. CMD_ARGV(0) darope@0: returns the command name itself. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Returns the number of arguments given to the command. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Opens the given filename (relative to the gamedir, or relative to the darope@0: hlds directory, in that order), and returns a pointer to a byte array darope@0: (character string) with the contents of the file. NULL-termination of darope@0: the array indicates end of file. Length of the file in bytes is darope@0: returned in the given int pointer. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Free the byte array of the given buffer which was returned by LoadFileForMe. darope@0:darope@0: darope@0:
darope@0: trigger_endsection darope@0:darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Copies the pathname of the game directory into the given buffer. Note darope@0: that there's no way to inform the engine how big the buffer is, so be darope@0: forewarned. darope@0:darope@0: darope@0:darope@0: Prior to HL 1.1.1.1 (CS 1.6), this gave the full pathname of the game darope@0: directory, ie "/usr/local/half-life/cstrike" or darope@0: "C:\Games\Half-Life\cstrike". Now, it is only the string passed to darope@0: hlds as the argument to "-game", ie "cstrike". darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
darope@0: returns NULL if fake client can't be created darope@0:darope@0:
comments:
darope@0:
darope@0: Creates "bots" (?). darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
darope@0: passing in NULL gets the serverinfo darope@0:darope@0:
comments:
darope@0:
darope@0: Returns the InfoKeyBuffer for the given edict. This is basically the darope@0: fields from "setinfo" at the client console, and includes things like darope@0: the player name. darope@0:darope@0: darope@0:darope@0: The sourcecode comment ("passing in NULL gets the serverinfo") darope@0: isn't entirely accurate. There appear to be two server-side info darope@0: buffers available, "serverinfo" and "localinfo", both darope@0: accessible from the console by those two commands, respectively. darope@0:
darope@0: Calling GetInfoKeyBuffer(NULL) will return the darope@0: localinfo buffer. Calling darope@0: GetInfoKeyBuffer(PEntityOfEntIndex(0)), ie passing the entity darope@0: of slot 0, will return the serverinfo buffer. darope@0:
comments:
darope@0:
darope@0: Returns the value for the given key in the given InfoKeyBuffer. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Adds or sets a key/value pair in the given InfoKeyBuffer. Appears to darope@0: work for only server info, and not client info. For clients, use SetClientKeyValue. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Adds or sets a key/value pair in a client's InfoKeyBuffer, by server darope@0: slot (ie 1 to maxplayers). darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
darope@0: returns the server assigned userid for this player. useful for logging darope@0: frags, etc. returns -1 if the edict couldn't be found in the list of darope@0: clients darope@0:darope@0:
comments:
darope@0:
darope@0: Returns the session userid for the given player edict. As of server darope@0: x106, this is constant for the life of the player connection, and darope@0: unique for the life of the server process. Each time a client darope@0: connects, they are given a userid of 1 plus the userid of the previous darope@0: connecting client. When the server starts/restarts, the server starts darope@0: again at userid 1. darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
darope@0: is this a dedicated server? darope@0:darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: Returns a pointer to a cvar_t struct for the given cvar darope@0: (server variable) name. darope@0:darope@0: darope@0:
darope@0: returns the server assigned WONid for this player. useful for logging darope@0: frags, etc. returns -1 if the edict couldn't be found in the list of darope@0: clients darope@0:darope@0:
comments:
darope@0:
darope@0: Returns the WON id for the given player edict. As of server x106, this darope@0: should be unique per client CD KEY, and should be consistent across all darope@0: WON auth servers. darope@0:darope@0: darope@0:
darope@0: YWB 8/1/99 TFF Physics additions darope@0:darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0:
darope@0: Forces the client and server to be running with the same version of the darope@0: specified file ( e.g., a player model ). Calling this has no effect in darope@0: single player. darope@0:darope@0:
comments:
darope@0:
darope@0: . darope@0:darope@0: darope@0: