darope@0: darope@0: darope@0: darope@0: darope@0: darope@0: HLSDK Engine Notes darope@0: darope@0: darope@0: darope@0:

HLSDK Engine Notes darope@0:

darope@0: darope@0:
darope@0: darope@0: darope@0:

PrecacheModel

darope@0: from engine/eiface.h:
darope@0:
int PrecacheModel(char *s);
darope@0:
PRECACHE_MODEL() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

PrecacheSound

darope@0: from engine/eiface.h:
darope@0:
int PrecacheSound(char *s);
darope@0:
PRECACHE_SOUND() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

SetModel

darope@0: from engine/eiface.h:
darope@0:
void SetModel(edict_t *e, const char *m);
darope@0:
SET_MODEL() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

ModelIndex

darope@0: from engine/eiface.h:
darope@0:
int ModelIndex(const char *m);
darope@0:
MODEL_INDEX() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

ModelFrames

darope@0: from engine/eiface.h:
darope@0:
int ModelFrames(int modelIndex);
darope@0:
MODEL_FRAMES() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

SetSize

darope@0: from engine/eiface.h:
darope@0:
void SetSize(edict_t *e, const float *rgflMin, const float *rgflMax);
darope@0:
SET_SIZE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

ChangeLevel

darope@0: from engine/eiface.h:
darope@0:
void ChangeLevel(char *s1, char *s2);
darope@0:
CHANGE_LEVEL() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

GetSpawnParms

darope@0: from engine/eiface.h:
darope@0:
void GetSpawnParms(edict_t *ent);
darope@0:
GET_SPAWN_PARMS() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

SaveSpawnParms

darope@0: from engine/eiface.h:
darope@0:
void SaveSpawnParms(edict_t *ent);
darope@0:
SAVE_SPAWN_PARMS() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

VecToYaw

darope@0: from engine/eiface.h:
darope@0:
float VecToYaw(const float *rgflVector);
darope@0:
VEC_TO_YAW() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

VecToAngles

darope@0: from engine/eiface.h:
darope@0:
void VecToAngles(const float *rgflVectorIn, float *rgflVectorOut);
darope@0:
VEC_TO_ANGLES() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

MoveToOrigin

darope@0: from engine/eiface.h:
darope@0:
void MoveToOrigin(edict_t *ent, const float *pflGoal, float dist, int iMoveType);
darope@0:
MOVE_TO_ORIGIN() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

ChangeYaw

darope@0: from engine/eiface.h:
darope@0:
void ChangeYaw(edict_t *ent);
darope@0:
oldCHANGE_YAW() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

ChangePitch

darope@0: from engine/eiface.h:
darope@0:
void ChangePitch(edict_t *ent);
darope@0:
CHANGE_PITCH() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

FindEntityByString

darope@0: from engine/eiface.h:
darope@0:
edict_t *FindEntityByString(edict_t *pEdictStartSearchAfter, const char *pszField, const char *pszValue);
darope@0:
FIND_ENTITY_BY_STRING() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

GetEntityIllum

darope@0: from engine/eiface.h:
darope@0:
int GetEntityIllum(edict_t *pEnt);
darope@0:
GETENTITYILLUM() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

FindEntityInSphere

darope@0: from engine/eiface.h:
darope@0:
edict_t *FindEntityInSphere(edict_t *pEdictStartSearchAfter, const float *org, float rad);
darope@0:
FIND_ENTITY_IN_SPHERE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

FindClientInPVS

darope@0: from engine/eiface.h:
darope@0:
edict_t *FindClientInPVS(edict_t *pEdict);
darope@0:
FIND_ENTITY_IN_PVS() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

EntitiesInPVS

darope@0: from engine/eiface.h:
darope@0:
edict_t *EntitiesInPVS(edict_t *pplayer); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

MakeVectors

darope@0: from engine/eiface.h:
darope@0:
void MakeVectors(const float *rgflVector);
darope@0:
MAKE_VECTORS() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

AngleVectors

darope@0: from engine/eiface.h:
darope@0:
void AngleVectors(const float *rgflVector, float *forward, float *right, float *up); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CreateEntity

darope@0: from engine/eiface.h:
darope@0:
edict_t *CreateEntity(void);
darope@0:
CREATE_ENTITY() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

RemoveEntity

darope@0: from engine/eiface.h:
darope@0:
void RemoveEntity(edict_t *e);
darope@0:
REMOVE_ENTITY() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CreateNamedEntity

darope@0: from engine/eiface.h:
darope@0:
edict_t *CreateNamedEntity(int className);
darope@0:
CREATE_NAMED_ENTITY() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

MakeStatic

darope@0: from engine/eiface.h:
darope@0:
void MakeStatic(edict_t *ent);
darope@0:
MAKE_STATIC() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

EntIsOnFloor

darope@0: from engine/eiface.h:
darope@0:
int EntIsOnFloor(edict_t *e);
darope@0:
ENT_IS_ON_FLOOR() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

DropToFloor

darope@0: from engine/eiface.h:
darope@0:
int DropToFloor(edict_t *e);
darope@0:
DROP_TO_FLOOR() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

WalkMove

darope@0: from engine/eiface.h:
darope@0:
int WalkMove(edict_t *ent, float yaw, float dist, int iMode);
darope@0:
WALK_MOVE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

SetOrigin

darope@0: from engine/eiface.h:
darope@0:
void SetOrigin(edict_t *e, const float *rgflOrigin);
darope@0:
SET_ORIGIN() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

EmitSound

darope@0: from engine/eiface.h:
darope@0:
void EmitSound(edict_t *entity, int channel, const char *sample, /*int*/float volume, float attenuation, int fFlags, int pitch);
darope@0:
EMIT_SOUND_DYN2() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

EmitAmbientSound

darope@0: from engine/eiface.h:
darope@0:
void EmitAmbientSound(edict_t *entity, float *pos, const char *samp, float vol, float attenuation, int fFlags, int pitch);
darope@0:
EMIT_AMBIENT_SOUND() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

TraceLine

darope@0: from engine/eiface.h:
darope@0:
void TraceLine(const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);
darope@0:
TRACE_LINE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

TraceToss

darope@0: from engine/eiface.h:
darope@0:
void TraceToss(edict_t *pent, edict_t *pentToIgnore, TraceResult *ptr);
darope@0:
TRACE_TOSS() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

TraceMonsterHull

darope@0: from engine/eiface.h:
darope@0:
int TraceMonsterHull(edict_t *pEdict, const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);
darope@0:
TRACE_MONSTER_HULL() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

TraceHull

darope@0: from engine/eiface.h:
darope@0:
void TraceHull(const float *v1, const float *v2, int fNoMonsters, int hullNumber, edict_t *pentToSkip, TraceResult *ptr);
darope@0:
TRACE_HULL() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

TraceModel

darope@0: from engine/eiface.h:
darope@0:
void TraceModel(const float *v1, const float *v2, int hullNumber, edict_t *pent, TraceResult *ptr); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

TraceTexture

darope@0: from engine/eiface.h:
darope@0:
const char *TraceTexture(edict_t *pTextureEntity, const float *v1, const float *v2);
darope@0:
TRACE_TEXTURE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

TraceSphere

darope@0: from engine/eiface.h:
darope@0:
void TraceSphere(const float *v1, const float *v2, int fNoMonsters, float radius, edict_t *pentToSkip, TraceResult *ptr); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

GetAimVector

darope@0: from engine/eiface.h:
darope@0:
void GetAimVector(edict_t *ent, float speed, float *rgflReturn);
darope@0:
GET_AIM_VECTOR() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

ServerCommand

darope@0: from engine/eiface.h:
darope@0:
void ServerCommand(char *str);
darope@0:
SERVER_COMMAND() 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:

ServerExecute

darope@0: from engine/eiface.h:
darope@0:
void ServerExecute(void);
darope@0:
SERVER_EXECUTE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

ClientCommand

darope@0: from engine/eiface.h:
darope@0:
void ClientCommand(edict_t *pEdict, char *szFmt, ...);
darope@0:
CLIENT_COMMAND() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

ParticleEffect

darope@0: from engine/eiface.h:
darope@0:
void ParticleEffect(const float *org, const float *dir, float color, float count);
darope@0:
PARTICLE_EFFECT() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

LightStyle

darope@0: from engine/eiface.h:
darope@0:
void LightStyle(int style, char *val);
darope@0:
LIGHT_STYLE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

DecalIndex

darope@0: from engine/eiface.h:
darope@0:
int DecalIndex(const char *name);
darope@0:
DECAL_INDEX() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

PointContents

darope@0: from engine/eiface.h:
darope@0:
int PointContents(const float *rgflVector);
darope@0:
POINT_CONTENTS() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

MessageBegin

darope@0: from engine/eiface.h:
darope@0:
void MessageBegin(int msg_dest, int msg_type, const float *pOrigin, edict_t *ed);
darope@0:
MESSAGE_BEGIN() darope@0:

comments:
darope@0:

darope@0: Begin a network message to send to the client. darope@0:
msg_type should be a number returned by RegUserMsg. darope@0:
msg_dest is one of: darope@0: darope@0:
darope@0: darope@0:

MessageEnd

darope@0: from engine/eiface.h:
darope@0:
void MessageEnd(void);
darope@0:
MESSAGE_END() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

WriteByte

darope@0: from engine/eiface.h:
darope@0:
void WriteByte(int iValue);
darope@0:
WRITE_BYTE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

WriteChar

darope@0: from engine/eiface.h:
darope@0:
void WriteChar(int iValue);
darope@0:
WRITE_CHAR() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

WriteShort

darope@0: from engine/eiface.h:
darope@0:
void WriteShort(int iValue);
darope@0:
WRITE_SHORT() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

WriteLong

darope@0: from engine/eiface.h:
darope@0:
void WriteLong(int iValue);
darope@0:
WRITE_LONG() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

WriteAngle

darope@0: from engine/eiface.h:
darope@0:
void WriteAngle(float flValue);
darope@0:
WRITE_ANGLE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

WriteCoord

darope@0: from engine/eiface.h:
darope@0:
void WriteCoord(float flValue);
darope@0:
WRITE_COORD() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

WriteString

darope@0: from engine/eiface.h:
darope@0:
void WriteString(const char *sz);
darope@0:
WRITE_STRING() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

WriteEntity

darope@0: from engine/eiface.h:
darope@0:
void WriteEntity(int iValue);
darope@0:
WRITE_ENTITY() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CVarRegister

darope@0: from engine/eiface.h:
darope@0:
void CVarRegister(cvar_t *pCvar);
darope@0:
CVAR_REGISTER() darope@0:

comments:
darope@0:

darope@0: Register a new cvar (server variable). darope@0:
darope@0: darope@0:

CVarGetFloat

darope@0: from engine/eiface.h:
darope@0:
float CVarGetFloat(const char *szVarName);
darope@0:
CVAR_GET_FLOAT() darope@0:

comments:
darope@0:

darope@0: Return the float value of a cvar. darope@0:
darope@0: darope@0:

CVarGetString

darope@0: from engine/eiface.h:
darope@0:
const char *CVarGetString(const char *szVarName);
darope@0:
CVAR_GET_STRING() darope@0:

comments:
darope@0:

darope@0: Return the string value of a cvar. darope@0:
darope@0: darope@0:

CVarSetFloat

darope@0: from engine/eiface.h:
darope@0:
void CVarSetFloat(const char *szVarName, float flValue);
darope@0:
CVAR_SET_FLOAT() darope@0:

comments:
darope@0:

darope@0: Set the float value of a cvar. darope@0:
darope@0: darope@0:

CVarSetString

darope@0: from engine/eiface.h:
darope@0:
void CVarSetString(const char *szVarName, const char *szValue);
darope@0:
CVAR_SET_STRING() darope@0:

comments:
darope@0:

darope@0: Set the string value of a cvar. darope@0:
darope@0: darope@0:

AlertMessage

darope@0: from engine/eiface.h:
darope@0:
void AlertMessage(ALERT_TYPE atype, char *szFmt, ...);
darope@0:
ALERT() darope@0:

comments:
darope@0:

darope@0: Print an alert message. darope@0:
atype is one of: darope@0: darope@0:
darope@0: darope@0:

EngineFprintf

darope@0: from engine/eiface.h:
darope@0:
void EngineFprintf(FILE *pfile, char *szFmt, ...);
darope@0:
ENGINE_FPRINTF() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

PvAllocEntPrivateData

darope@0: from engine/eiface.h:
darope@0:
void *PvAllocEntPrivateData(edict_t *pEdict, long cb);
darope@0:
ALLOC_PRIVATE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

PvEntPrivateData

darope@0: from engine/eiface.h:
darope@0:
void *PvEntPrivateData(edict_t *pEdict);
darope@0:
GET_PRIVATE() 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:     CBaseEntity *pPlayer=(CBaseEntity *)GET_PRIVATE(pEntity);
darope@0: 	
darope@0:
darope@0: darope@0:

FreeEntPrivateData

darope@0: from engine/eiface.h:
darope@0:
void FreeEntPrivateData(edict_t *pEdict);
darope@0:
FREE_PRIVATE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

SzFromIndex

darope@0: from engine/eiface.h:
darope@0:
const char *SzFromIndex(int iString); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

AllocString

darope@0: from engine/eiface.h:
darope@0:
int AllocString(const char *szValue);
darope@0:
ALLOC_STRING() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

GetVarsOfEnt

darope@0: from engine/eiface.h:
darope@0:
struct entvars_s *GetVarsOfEnt(edict_t *pEdict); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

PEntityOfEntOffset

darope@0: from engine/eiface.h:
darope@0:
edict_t *PEntityOfEntOffset(int iEntOffset);
darope@0:
ENT() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

EntOffsetOfPEntity

darope@0: from engine/eiface.h:
darope@0:
int EntOffsetOfPEntity(const edict_t *pEdict); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

IndexOfEdict

darope@0: from engine/eiface.h:
darope@0:
int IndexOfEdict(const edict_t *pEdict);
darope@0:
ENTINDEX() 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:

PEntityOfEntIndex

darope@0: from engine/eiface.h:
darope@0:
edict_t *PEntityOfEntIndex(int iEntIndex);
darope@0:
INDEXENT() 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:

FindEntityByVars

darope@0: from engine/eiface.h:
darope@0:
edict_t *FindEntityByVars(struct entvars_s *pvars); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

GetModelPtr

darope@0: from engine/eiface.h:
darope@0:
void *GetModelPtr(edict_t *pEdict);
darope@0:
GET_MODEL_PTR() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

RegUserMsg

darope@0: from engine/eiface.h:
darope@0:
int RegUserMsg(const char *pszName, int iSize);
darope@0:
REG_USER_MSG() 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:

AnimationAutomove

darope@0: from engine/eiface.h:
darope@0:
void AnimationAutomove(const edict_t *pEdict, float flTime); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

GetBonePosition

darope@0: from engine/eiface.h:
darope@0:
void GetBonePosition(const edict_t *pEdict, int iBone, float *rgflOrigin, float *rgflAngles);
darope@0:
GET_BONE_POSITION() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

FunctionFromName

darope@0: from engine/eiface.h:
darope@0:
unsigned long FunctionFromName(const char *pName);
darope@0:
FUNCTION_FROM_NAME() 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:

NameForFunction

darope@0: from engine/eiface.h:
darope@0:
const char *NameForFunction(unsigned long function);
darope@0:
NAME_FOR_FUNCTION() 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:

ClientPrintf

darope@0: from engine/eiface.h:
darope@0:
void ClientPrintf(edict_t *pEdict, PRINT_TYPE ptype, const char *szMsg);
darope@0:
CLIENT_PRINTF() 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:

ServerPrint

darope@0: from engine/eiface.h:
darope@0:
void ServerPrint(const char *szMsg); darope@0:

comments:
darope@0:

darope@0: Prints output to the server console. darope@0:
darope@0: darope@0:

Cmd_Args

darope@0: from engine/eiface.h:
darope@0:
const char *Cmd_Args(void);
darope@0:
CMD_ARGS() 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:

Cmd_Argv

darope@0: from engine/eiface.h:
darope@0:
const char *Cmd_Argv(int argc);
darope@0:
CMD_ARGV() 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:

Cmd_Argc

darope@0: from engine/eiface.h:
darope@0:
int Cmd_Argc(void);
darope@0:
CMD_ARGC() darope@0:

comments:
darope@0:

darope@0: Returns the number of arguments given to the command. darope@0:
darope@0: darope@0:

GetAttachment

darope@0: from engine/eiface.h:
darope@0:
void GetAttachment(const edict_t *pEdict, int iAttachment, float *rgflOrigin, float *rgflAngles);
darope@0:
GET_ATTACHMENT() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CRC32_Init

darope@0: from engine/eiface.h:
darope@0:
void CRC32_Init(CRC32_t *pulCRC);
darope@0:
CRC32_INIT() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CRC32_ProcessBuffer

darope@0: from engine/eiface.h:
darope@0:
void CRC32_ProcessBuffer(CRC32_t *pulCRC, void *p, int len);
darope@0:
CRC32_PROCESS_BUFFER() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CRC32_ProcessByte

darope@0: from engine/eiface.h:
darope@0:
void CRC32_ProcessByte(CRC32_t *pulCRC, unsigned char ch);
darope@0:
CRC32_PROCESS_BYTE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CRC32_Final

darope@0: from engine/eiface.h:
darope@0:
CRC32_t CRC32_Final(CRC32_t pulCRC);
darope@0:
CRC32_FINAL() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

RandomLong

darope@0: from engine/eiface.h:
darope@0:
long RandomLong(long lLow, long lHigh);
darope@0:
RANDOM_LONG() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

RandomFloat

darope@0: from engine/eiface.h:
darope@0:
float RandomFloat(float flLow, float flHigh);
darope@0:
RANDOM_FLOAT() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

SetView

darope@0: from engine/eiface.h:
darope@0:
void SetView(const edict_t *pClient, const edict_t *pViewent);
darope@0:
SET_VIEW() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

Time

darope@0: from engine/eiface.h:
darope@0:
float Time(void); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CrosshairAngle

darope@0: from engine/eiface.h:
darope@0:
void CrosshairAngle(const edict_t *pClient, float pitch, float yaw);
darope@0:
SET_CROSSHAIRANGLE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

LoadFileForMe

darope@0: from engine/eiface.h:
darope@0:
byte * LoadFileForMe(char *filename, int *pLength);
darope@0:
LOAD_FILE_FOR_ME() 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:

FreeFile

darope@0: from engine/eiface.h:
darope@0:
void FreeFile(void *buffer);
darope@0:
FREE_FILE() 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:

EndSection

darope@0: from engine/eiface.h:
darope@0:
void EndSection(const char *pszSectionName); darope@0:
darope@0: trigger_endsection darope@0:
darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CompareFileTime

darope@0: from engine/eiface.h:
darope@0:
int CompareFileTime(char *filename1, char *filename2, int *iCompare);
darope@0:
COMPARE_FILE_TIME() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

GetGameDir

darope@0: from engine/eiface.h:
darope@0:
void GetGameDir(char *szGetGameDir);
darope@0:
GET_GAME_DIR() 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: 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:

darope@0: darope@0:

Cvar_RegisterVariable

darope@0: from engine/eiface.h:
darope@0:
void Cvar_RegisterVariable(cvar_t *variable);
darope@0:
CVAR_CREATE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

FadeClientVolume

darope@0: from engine/eiface.h:
darope@0:
void FadeClientVolume(const edict_t *pEdict, int fadePercent, int fadeOutSeconds, int holdTime, int fadeInSeconds); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

SetClientMaxspeed

darope@0: from engine/eiface.h:
darope@0:
void SetClientMaxspeed(const edict_t *pEdict, float fNewMaxspeed); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CreateFakeClient

darope@0: from engine/eiface.h:
darope@0:
edict_t * CreateFakeClient(const char *netname); 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:

RunPlayerMove

darope@0: from engine/eiface.h:
darope@0:
void RunPlayerMove(edict_t *fakeclient, const float *viewangles, float forwardmove, float sidemove, float upmove, unsigned short buttons, byte impulse, byte msec); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

NumberOfEntities

darope@0: from engine/eiface.h:
darope@0:
int NumberOfEntities(void);
darope@0:
NUMBER_OF_ENTITIES() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

GetInfoKeyBuffer

darope@0: from engine/eiface.h:
darope@0:
char *GetInfoKeyBuffer(edict_t *e); 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: 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:

darope@0: darope@0:

InfoKeyValue

darope@0: from engine/eiface.h:
darope@0:
char *InfoKeyValue(char *infobuffer, char *key); darope@0:

comments:
darope@0:

darope@0: Returns the value for the given key in the given InfoKeyBuffer. darope@0:
darope@0: darope@0:

SetKeyValue

darope@0: from engine/eiface.h:
darope@0:
void SetKeyValue(char *infobuffer, char *key, char *value); 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:

SetClientKeyValue

darope@0: from engine/eiface.h:
darope@0:
void SetClientKeyValue(int clientIndex, char *infobuffer, char *key, char *value); 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:

IsMapValid

darope@0: from engine/eiface.h:
darope@0:
int IsMapValid(char *filename);
darope@0:
IS_MAP_VALID() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

StaticDecal

darope@0: from engine/eiface.h:
darope@0:
void StaticDecal(const float *origin, int decalIndex, int entityIndex, int modelIndex); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

PrecacheGeneric

darope@0: from engine/eiface.h:
darope@0:
int PrecacheGeneric(char *s);
darope@0:
PRECACHE_GENERIC() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

GetPlayerUserId

darope@0: from engine/eiface.h:
darope@0:
int GetPlayerUserId(edict_t *e);
darope@0:
GETPLAYERUSERID() 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:

BuildSoundMsg

darope@0: from engine/eiface.h:
darope@0:
void BuildSoundMsg(edict_t *entity, int channel, const char *sample, /*int*/float volume, float attenuation, int fFlags, int pitch, int msg_dest, int msg_type, const float *pOrigin, edict_t *ed);
darope@0:
BUILD_SOUND_MSG() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

IsDedicatedServer

darope@0: from engine/eiface.h:
darope@0:
int IsDedicatedServer(void);
darope@0:
IS_DEDICATED_SERVER() darope@0:
darope@0: is this a dedicated server? darope@0:
darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CVarGetPointer

darope@0: from engine/eiface.h:
darope@0:
cvar_t *CVarGetPointer(const char *szVarName);
darope@0:
CVAR_GET_POINTER() 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:

GetPlayerWONId

darope@0: from engine/eiface.h:
darope@0:
unsigned int GetPlayerWONId(edict_t *e); darope@0:
GETPLAYERWONID() 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:

Info_RemoveKey

darope@0: from engine/eiface.h:
darope@0:
void Info_RemoveKey(char *s, const char *key); 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:

GetPhysicsKeyValue

darope@0: from engine/eiface.h:
darope@0:
const char *GetPhysicsKeyValue(const edict_t *pClient, const char *key); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

SetPhysicsKeyValue

darope@0: from engine/eiface.h:
darope@0:
void SetPhysicsKeyValue(const edict_t *pClient, const char *key, const char *value); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

GetPhysicsInfoString

darope@0: from engine/eiface.h:
darope@0:
const char *GetPhysicsInfoString(const edict_t *pClient);
darope@0:
ENGINE_GETPHYSINFO() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

PrecacheEvent

darope@0: from engine/eiface.h:
darope@0:
unsigned short PrecacheEvent(int type, const char *psz);
darope@0:
PRECACHE_EVENT() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

PlaybackEvent

darope@0: from engine/eiface.h:
darope@0:
void PlaybackEvent(int flags, const edict_t *pInvoker, unsigned short eventindex, float delay, float *origin, float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2);
darope@0:
PLAYBACK_EVENT_FULL() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

SetFatPVS

darope@0: from engine/eiface.h:
darope@0:
unsigned char *SetFatPVS(float *org);
darope@0:
ENGINE_SET_PVS() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

SetFatPAS

darope@0: from engine/eiface.h:
darope@0:
unsigned char *SetFatPAS(float *org);
darope@0:
ENGINE_SET_PAS() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CheckVisibility

darope@0: from engine/eiface.h:
darope@0:
int CheckVisibility(const edict_t *entity, unsigned char *pset);
darope@0:
ENGINE_CHECK_VISIBILITY() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

DeltaSetField

darope@0: from engine/eiface.h:
darope@0:
void DeltaSetField(struct delta_s *pFields, const char *fieldname);
darope@0:
DELTA_SET() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

DeltaUnsetField

darope@0: from engine/eiface.h:
darope@0:
void DeltaUnsetField(struct delta_s *pFields, const char *fieldname);
darope@0:
DELTA_UNSET() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

DeltaAddEncoder

darope@0: from engine/eiface.h:
darope@0:
void DeltaAddEncoder(char *name, void (*conditionalencode)( struct delta_s *pFields, const unsigned char *from, const unsigned char *to) );
darope@0:
DELTA_ADDENCODER() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

GetCurrentPlayer

darope@0: from engine/eiface.h:
darope@0:
int GetCurrentPlayer(void);
darope@0:
ENGINE_CURRENT_PLAYER() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CanSkipPlayer

darope@0: from engine/eiface.h:
darope@0:
int CanSkipPlayer(const edict_t *player);
darope@0:
ENGINE_CANSKIP() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

DeltaFindField

darope@0: from engine/eiface.h:
darope@0:
int DeltaFindField(struct delta_s *pFields, const char *fieldname);
darope@0:
DELTA_FINDFIELD() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

DeltaSetFieldByIndex

darope@0: from engine/eiface.h:
darope@0:
void DeltaSetFieldByIndex(struct delta_s *pFields, int fieldNumber);
darope@0:
DELTA_SETBYINDEX() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

DeltaUnsetFieldByIndex

darope@0: from engine/eiface.h:
darope@0:
void DeltaUnsetFieldByIndex(struct delta_s *pFields, int fieldNumber);
darope@0:
DELTA_UNSETBYINDEX() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

SetGroupMask

darope@0: from engine/eiface.h:
darope@0:
void SetGroupMask(int mask, int op);
darope@0:
ENGINE_SETGROUPMASK() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

CreateInstancedBaseline

darope@0: from engine/eiface.h:
darope@0:
int CreateInstancedBaseline(int classname, struct entity_state_s *baseline);
darope@0:
ENGINE_INSTANCE_BASELINE() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

Cvar_DirectSet

darope@0: from engine/eiface.h:
darope@0:
void Cvar_DirectSet(struct cvar_s *var, char *value); darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

ForceUnmodified

darope@0: from engine/eiface.h:
darope@0:
void ForceUnmodified(FORCE_TYPE type, float *mins, float *maxs, const char *filename);
darope@0:
ENGINE_FORCE_UNMODIFIED() 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:

GetPlayerStats

darope@0: from engine/eiface.h:
darope@0:
void GetPlayerStats(const edict_t *pClient, int *ping, int *packet_loss);
darope@0:
PLAYER_CNX_STATS() darope@0:

comments:
darope@0:

darope@0: . darope@0:
darope@0: darope@0:

AddServerCommand

darope@0: from engine/eiface.h:
darope@0:
void AddServerCommand(char *cmd_name, void (*function) (void)); darope@0:

comments:
darope@0:

darope@0: Registers a new server console command. When the given command string darope@0: is typed at the console, the given function will be called. Arguments darope@0: for the command can be retrieved in the function with darope@0: Cmd_Args, Cmd_Argv, and darope@0: Cmd_Argc. darope@0:
darope@0: darope@0:

Voice_GetClientListening

darope@0: from engine/eiface.h:
darope@0:
qboolean Voice_GetClientListening)(int iReceiver, int iSender); darope@0:
darope@0: For voice communications, set which clients hear each other. NOTE: these darope@0: functions take player entity indices (starting at 1). darope@0:
darope@0:

comments:
darope@0:

darope@0: Added in SDK 2.2. darope@0:
darope@0: darope@0:

Voice_SetClientListening

darope@0: from engine/eiface.h:
darope@0:
qboolean Voice_SetClientListening)(int iReceiver, int iSender, qboolean bListen); darope@0:
darope@0: For voice communications, set which clients hear each other. NOTE: these darope@0: functions take player entity indices (starting at 1). darope@0:
darope@0:

comments:
darope@0:

darope@0: Added in SDK 2.2. darope@0:
darope@0: darope@0:

GetPlayerAuthId

darope@0: from engine/eiface.h:
darope@0:
const char *GetPlayerAuthId(edict_t *e); darope@0:

From Eric Smith <EricS@valvesoftware.com> on hlcoders: darope@0:

darope@0: The AuthID is a way for applications/mods to get the Authentication ID darope@0: (uniqueID) for a player. The AuthID can be a WonID or a SteamID. The darope@0: function I've written returns the AuthID as a string. Calling GetPlayerWONId will still work for Non-Steam darope@0: players just like it always has. If applications/mods want to get a darope@0: jump start on getting ready to support Steam players, then they can darope@0: start using GetPlayerAuthId, which will still work for Non-Steam darope@0: players, but it will give the WonID as a string instead of an unsigned darope@0: int. darope@0:
darope@0:

From Eric Smith <EricS@valvesoftware.com> on servertest: darope@0:

darope@0: Only clients playing via Steam will have SteamIDs. Clients who are not darope@0: using Steam will still have WonIDs (just like they always have). The darope@0: server now supports WonIDs\SteamIDs and banning using either of them. darope@0: WonIDs have not changed. SteamIDs use the format: STEAM_<#>:<#> where darope@0: <#> is replaced by numbers. An example SteamID would be darope@0: "STEAM_0:94534". darope@0:
darope@0:

From Eric Smith <EricS@valvesoftware.com> on hlcoders: darope@0:

darope@0: This function will now return the string "BOT" as the AuthID for fake darope@0: clients. darope@0:
darope@0:

comments:
darope@0:

darope@249: Added for HL 1109; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) darope@0:
darope@0: darope@0:

SequenceGet

darope@0: from engine/eiface.h:
darope@0:
void *SequenceGet(const char *fileName, const char *entryName); darope@0:

comments:
darope@0:

darope@249: Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) darope@0:
darope@0: darope@0:

SequencePickSentence

darope@0: from engine/eiface.h:
darope@0:
void *SequencePickSentence(const char *groupName, int pickMethod, darope@0: int *picked); darope@0:

comments:
darope@0:

darope@249: Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) darope@0:
darope@0: darope@0:

GetFileSize

darope@0: from engine/eiface.h:
darope@0:
int GetFileSize(char *filename); darope@0:

comments:
darope@0:

darope@249: Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) darope@0:
darope@0: darope@0:

GetApproxWavePlayLen

darope@0: from engine/eiface.h:
darope@0:
unsigned int GetApproxWavePlayLen(const char *filepath); darope@0:

comments:
darope@0:

darope@249: Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) darope@0:
darope@0: darope@0:

IsCareerMatch

darope@0: from engine/eiface.h:
darope@0:
int IsCareerMatch(void); darope@0:

comments:
darope@0:

darope@249: Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) darope@0:
darope@0: darope@0:

GetLocalizedStringLength

darope@0: from engine/eiface.h:
darope@0:
int GetLocalizedStringLength(const char *label); darope@0:

comments:
darope@0:

darope@249: Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) darope@0:
darope@0: darope@0:

RegisterTutorMessageShown

darope@0: from engine/eiface.h:
darope@0:
void RegisterTutorMessageShown(int mid); darope@0:

comments:
darope@0:

darope@249: Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) darope@0:
darope@0: darope@0:

GetTimesTutorMessageShown

darope@0: from engine/eiface.h:
darope@0:
int GetTimesTutorMessageShown(int mid); darope@0:

comments:
darope@0:

darope@249: Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) darope@0:
darope@0: darope@0:

ProcessTutorMessageDecayBuffer

darope@0: from engine/eiface.h:
darope@0:
void ProcessTutorMessageDecayBuffer(int *buffer, int bufferLength); darope@0:

comments:
darope@0:

darope@249: Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) darope@0:
darope@0: darope@0:

ConstructTutorMessageDecayBuffer

darope@0: from engine/eiface.h:
darope@0:
void ConstructTutorMessageDecayBuffer(int *buffer, int bufferLength); darope@0:

comments:
darope@0:

darope@249: Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) darope@0:
darope@0: darope@0:

ResetTutorMessageDecayData

darope@0: from engine/eiface.h:
darope@0:
void ResetTutorMessageDecayData(void); darope@0:

comments:
darope@0:

darope@249: Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) darope@0:
darope@0: darope@249:

QueryClientCvarValue

darope@248:
void (*pfnQueryClientCvarValue)( const edict_t *player, const char *cvarName );

darope@248: from alfred@valvesoftware.com, via HLCoders
darope@248:

darope@248: Calling this function requests the value of cvarName from player. The darope@248: result is returned via a callback from NEW_DLL_FUNCTIONS. darope@248:
darope@248:

comments:
darope@248:

darope@249: Added 2005-08-11, no SDK update. (Available in patched SDK as of hlsdk-2.3-p2.) darope@249:
darope@249:
darope@249: Use of this function is DEPRECATED. It has been obsoleted by the darope@249: pfnQueryClientCvarValue2() function. See below. darope@249:
darope@249:
darope@249: This API can lead to conflicts when you query more than one cvar from a player darope@249: at a time. When using this function, use IS_QUERYING_CLIENT_CVAR to check if darope@249: another plugin is querying before you do so. Use of this function is strongly darope@249: advised against. Instead use the pfnQueryClientCvarValue2() function. darope@249:
darope@249: darope@249: darope@249:

QueryClientCvarValue2

darope@249:
void (*pfnQueryClientCvarValue2)( const edict_t *player, const char *cvarName, int requestID );

darope@249: from alfred@valvesoftware.com, via hlds_apps
darope@249:

darope@249: Calling this function requests the value of cvarName from player and darope@249: returns to you the supplied requestID on success (or failure). darope@249: darope@249: The response is sent to a pfnCvarValue2 callback in the darope@249: NEW_DLL_FUNCTIONS structure. darope@249:
darope@249:

comments:
darope@249:

darope@249: Added 2005-11-23, no SDK update. (Available in patched SDK as of hlsdk-2.3-p3.) darope@248:
darope@248: darope@0: darope@0:

darope@0:


darope@0: darope@0: darope@0: