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: bailopan@144:

CvarValue

bailopan@144:
void (*pfnCvarValue)( const edict_t *pEnt, const char *value );

bailopan@144: from alfred@valvesoftware.com, via HLCoders:
bailopan@144:

bailopan@144: When the client responds to the cvar request you will get a callback to pfnCvarValue() bailopan@144: with the edict of the player who is responding and the cvars values. bailopan@144:
bailopan@144:

comments:
bailopan@144:

bailopan@144: This API can lead to conflicts when you query more than one cvar from a player bailopan@144: at a time. Use IS_QUERYING_CLIENT_CVAR to check if another plugin is querying before bailopan@144: you do so. bailopan@144:
bailopan@144: darope@0:

darope@0:


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