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>
20 <b>NOTE</b>: No examples of these found in SDK...
24 <hr><h3><tt><a name="OnFreeEntPrivateData">OnFreeEntPrivateData</a></tt></h3>
25 <dd><tt>void OnFreeEntPrivateData(edict_t pEnt);</tt><p>
26 <i>from engine/eiface.h:</i><br>
28 Called right before the object's memory is freed. Calls its destructor.
30 <p><i>comments:</i><br>
33 href="http://list.valvesoftware.com/pipermail/hlcoders/2002-January/001397.html"
34 >Ken Birdwell on constructors</a>, from the HLCoders list.
38 <hr><h3><tt><a name="GameShutdown">GameShutdown</a></tt></h3>
39 <dd><tt>void GameShutdown(void);</tt><p>
40 <p><i>comments:</i><br>
45 <hr><h3><tt><a name="ShouldCollide">ShouldCollide</a></tt></h3>
46 <dd><tt>int ShouldCollide(edict_t *pentTouched, edict_t *pentOther);</tt><p>
49 ..a hook that can override if any two entities should collide
50 when they try to pass through each other.
52 <p><i>comments:</i><br>
54 Mugsy from DoD indicates that the return value for normal operation is 1.