1 <!-- vi: set ts=4 sw=4 : -->
2 <!-- vim: set tw=75 : -->
6 <title>HLSDK NEWAPI Notes</title>
10 <h1>HLSDK NEWAPI Notes
15 <li><a href=#OnFreeEntPrivateData>OnFreeEntPrivateData</a>
16 <li><a href=#GameShutdown>GameShutdown</a>
17 <li><a href=#ShouldCollide>ShouldCollide</a>
18 <li><a href=#CvarValue>CvarValue</a>
21 <b>NOTE</b>: No examples of these found in SDK...
25 <hr><h3><tt><a name="OnFreeEntPrivateData">OnFreeEntPrivateData</a></tt></h3>
26 <dd><tt>void OnFreeEntPrivateData(edict_t pEnt);</tt><p>
27 <i>from engine/eiface.h:</i><br>
29 Called right before the object's memory is freed. Calls its destructor.
31 <p><i>comments:</i><br>
34 href="http://list.valvesoftware.com/pipermail/hlcoders/2002-January/001397.html"
35 >Ken Birdwell on constructors</a>, from the HLCoders list.
39 <hr><h3><tt><a name="GameShutdown">GameShutdown</a></tt></h3>
40 <dd><tt>void GameShutdown(void);</tt><p>
41 <p><i>comments:</i><br>
46 <hr><h3><tt><a name="ShouldCollide">ShouldCollide</a></tt></h3>
47 <dd><tt>int ShouldCollide(edict_t *pentTouched, edict_t *pentOther);</tt><p>
50 ..a hook that can override if any two entities should collide
51 when they try to pass through each other.
53 <p><i>comments:</i><br>
55 Mugsy from DoD indicates that the return value for normal operation is 1.
59 <hr><h3><tt><a name="CvarValue">CvarValue</a></tt></h3>
60 <dd><tt>void (*pfnCvarValue)( const edict_t *pEnt, const char *value );</tt><p>
63 When the client responds to the cvar request you will get a callback to pfnCvarValue()
64 with the edict of the player who is responding and the cvars values.
66 <p><i>comments:</i><br>
68 This API can lead to conflicts when you query more than one cvar from a player
69 at a time. Use IS_QUERYING_CLIENT_CVAR to check if another plugin is querying before