darope@0: darope@0: darope@0: darope@0: darope@0: darope@0: HLSDK NEWAPI Notes darope@0: darope@0: darope@0: darope@0:

HLSDK NEWAPI Notes darope@0:

darope@0: darope@0:
darope@0: darope@0: darope@0: NOTE: No examples of these found in SDK... darope@0: darope@0:

darope@0: darope@0:


OnFreeEntPrivateData

darope@0:
void OnFreeEntPrivateData(edict_t pEnt);

darope@0: from engine/eiface.h:
darope@0:

darope@0: Called right before the object's memory is freed. Calls its destructor. darope@0:
darope@0:

comments:
darope@0:

darope@0: See also Ken Birdwell on constructors, from the HLCoders list. darope@0:
Added in SDK 2.0. darope@0:
darope@0: darope@0:

GameShutdown

darope@0:
void GameShutdown(void);

darope@0:

comments:
darope@0:

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

ShouldCollide

darope@0:
int ShouldCollide(edict_t *pentTouched, edict_t *pentOther);

darope@0: from kenb@valvesoftware.com, via HLCoders:
darope@0:

darope@0: ..a hook that can override if any two entities should collide darope@0: when they try to pass through each other. darope@0:
darope@0:

comments:
darope@0:

darope@0: Mugsy from DoD indicates that the return value for normal operation is 1. darope@0:
Added in SDK 2.0. darope@0:
darope@0: darope@248:

CvarValue

darope@248:
void (*pfnCvarValue)( const edict_t *pEnt, const char *value );

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

darope@248: When the client responds to the cvar request you will get a callback to pfnCvarValue() darope@248: with the edict of the player who is responding and the cvars values. 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: pfnCvarValue2() function. See below. darope@249:
darope@249: darope@249:

CvarValue2

darope@249:
void (*pfnCvarValue2)( const edict_t *pEnt, int requestID, const char *cvarName, const char *value );

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

darope@249: When the pfnQueryClientCvarValue2() completes it will call darope@249: pfnCvarValue2() with the request ID you supplied earlier, the name darope@249: of the cvar you requested and the value of that cvar. On failure (i.e darope@249: that user is not connected or the cvar does not exist) the value of the darope@249: returned cvar will be "Bad CVAR request". If you specify an invalid darope@249: player edict you will get "Bad Player" as the value response.
darope@249: If a client has a cvar value set to "Bad CVAR request" it cannot be darope@249: differentiated from a bad request for a cvar. This is considered darope@249: okay because that value is not considered to be useful as a valid darope@249: cvar value. darope@249:
darope@249:

comments:
darope@249:

darope@249: Added 2005-11-22, 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: