|
darope@0
|
1 |
<!-- vi: set ts=4 sw=4 : --> |
|
darope@0
|
2 |
<!-- vim: set tw=75 : --> |
|
darope@0
|
3 |
|
|
darope@0
|
4 |
<HTML> |
|
darope@0
|
5 |
<head> |
|
darope@0
|
6 |
<title>HLSDK Engine Notes</title> |
|
darope@0
|
7 |
</head> |
|
darope@0
|
8 |
<body> |
|
darope@0
|
9 |
|
|
darope@0
|
10 |
<h1>HLSDK Engine Notes |
|
darope@0
|
11 |
</h1> |
|
darope@0
|
12 |
|
|
darope@0
|
13 |
<hr> |
|
darope@0
|
14 |
<ul> |
|
darope@0
|
15 |
<li><a href=#PrecacheModel>PrecacheModel</a> |
|
darope@0
|
16 |
<li><a href=#PrecacheSound>PrecacheSound</a> |
|
darope@0
|
17 |
<li><a href=#SetModel>SetModel</a> |
|
darope@0
|
18 |
<li><a href=#ModelIndex>ModelIndex</a> |
|
darope@0
|
19 |
<li><a href=#ModelFrames>ModelFrames</a> |
|
darope@0
|
20 |
<li><a href=#SetSize>SetSize</a> |
|
darope@0
|
21 |
<li><a href=#ChangeLevel>ChangeLevel</a> |
|
darope@0
|
22 |
<li><a href=#GetSpawnParms>GetSpawnParms</a> |
|
darope@0
|
23 |
<li><a href=#SaveSpawnParms>SaveSpawnParms</a> |
|
darope@0
|
24 |
<li><a href=#VecToYaw>VecToYaw</a> |
|
darope@0
|
25 |
<li><a href=#VecToAngles>VecToAngles</a> |
|
darope@0
|
26 |
<li><a href=#MoveToOrigin>MoveToOrigin</a> |
|
darope@0
|
27 |
<li><a href=#ChangeYaw>ChangeYaw</a> |
|
darope@0
|
28 |
<li><a href=#ChangePitch>ChangePitch</a> |
|
darope@0
|
29 |
<li><a href=#FindEntityByString>FindEntityByString</a> |
|
darope@0
|
30 |
<li><a href=#GetEntityIllum>GetEntityIllum</a> |
|
darope@0
|
31 |
<li><a href=#FindEntityInSphere>FindEntityInSphere</a> |
|
darope@0
|
32 |
<li><a href=#FindClientInPVS>FindClientInPVS</a> |
|
darope@0
|
33 |
<li><a href=#EntitiesInPVS>EntitiesInPVS</a> |
|
darope@0
|
34 |
<li><a href=#MakeVectors>MakeVectors</a> |
|
darope@0
|
35 |
<li><a href=#AngleVectors>AngleVectors</a> |
|
darope@0
|
36 |
<li><a href=#CreateEntity>CreateEntity</a> |
|
darope@0
|
37 |
<li><a href=#RemoveEntity>RemoveEntity</a> |
|
darope@0
|
38 |
<li><a href=#CreateNamedEntity>CreateNamedEntity</a> |
|
darope@0
|
39 |
<li><a href=#MakeStatic>MakeStatic</a> |
|
darope@0
|
40 |
<li><a href=#EntIsOnFloor>EntIsOnFloor</a> |
|
darope@0
|
41 |
<li><a href=#DropToFloor>DropToFloor</a> |
|
darope@0
|
42 |
<li><a href=#WalkMove>WalkMove</a> |
|
darope@0
|
43 |
<li><a href=#SetOrigin>SetOrigin</a> |
|
darope@0
|
44 |
<li><a href=#EmitSound>EmitSound</a> |
|
darope@0
|
45 |
<li><a href=#EmitAmbientSound>EmitAmbientSound</a> |
|
darope@0
|
46 |
<li><a href=#TraceLine>TraceLine</a> |
|
darope@0
|
47 |
<li><a href=#TraceToss>TraceToss</a> |
|
darope@0
|
48 |
<li><a href=#TraceMonsterHull>TraceMonsterHull</a> |
|
darope@0
|
49 |
<li><a href=#TraceHull>TraceHull</a> |
|
darope@0
|
50 |
<li><a href=#TraceModel>TraceModel</a> |
|
darope@0
|
51 |
<li><a href=#TraceTexture>TraceTexture</a> |
|
darope@0
|
52 |
<li><a href=#TraceSphere>TraceSphere</a> |
|
darope@0
|
53 |
<li><a href=#GetAimVector>GetAimVector</a> |
|
darope@0
|
54 |
<li><a href=#ServerCommand>ServerCommand</a> |
|
darope@0
|
55 |
<li><a href=#ServerExecute>ServerExecute</a> |
|
darope@0
|
56 |
<li><a href=#ClientCommand>ClientCommand</a> |
|
darope@0
|
57 |
<li><a href=#ParticleEffect>ParticleEffect</a> |
|
darope@0
|
58 |
<li><a href=#LightStyle>LightStyle</a> |
|
darope@0
|
59 |
<li><a href=#DecalIndex>DecalIndex</a> |
|
darope@0
|
60 |
<li><a href=#PointContents>PointContents</a> |
|
darope@0
|
61 |
<li><a href=#MessageBegin>MessageBegin</a> |
|
darope@0
|
62 |
<li><a href=#MessageEnd>MessageEnd</a> |
|
darope@0
|
63 |
<li><a href=#WriteByte>WriteByte</a> |
|
darope@0
|
64 |
<li><a href=#WriteChar>WriteChar</a> |
|
darope@0
|
65 |
<li><a href=#WriteShort>WriteShort</a> |
|
darope@0
|
66 |
<li><a href=#WriteLong>WriteLong</a> |
|
darope@0
|
67 |
<li><a href=#WriteAngle>WriteAngle</a> |
|
darope@0
|
68 |
<li><a href=#WriteCoord>WriteCoord</a> |
|
darope@0
|
69 |
<li><a href=#WriteString>WriteString</a> |
|
darope@0
|
70 |
<li><a href=#WriteEntity>WriteEntity</a> |
|
darope@0
|
71 |
<li><a href=#CVarRegister>CVarRegister</a> |
|
darope@0
|
72 |
<li><a href=#CVarGetFloat>CVarGetFloat</a> |
|
darope@0
|
73 |
<li><a href=#CVarGetString>CVarGetString</a> |
|
darope@0
|
74 |
<li><a href=#CVarSetFloat>CVarSetFloat</a> |
|
darope@0
|
75 |
<li><a href=#CVarSetString>CVarSetString</a> |
|
darope@0
|
76 |
<li><a href=#AlertMessage>AlertMessage</a> |
|
darope@0
|
77 |
<li><a href=#EngineFprintf>EngineFprintf</a> |
|
darope@0
|
78 |
<li><a href=#PvAllocEntPrivateData>PvAllocEntPrivateData</a> |
|
darope@0
|
79 |
<li><a href=#PvEntPrivateData>PvEntPrivateData</a> |
|
darope@0
|
80 |
<li><a href=#FreeEntPrivateData>FreeEntPrivateData</a> |
|
darope@0
|
81 |
<li><a href=#SzFromIndex>SzFromIndex</a> |
|
darope@0
|
82 |
<li><a href=#AllocString>AllocString</a> |
|
darope@0
|
83 |
<li><a href=#GetVarsOfEnt>GetVarsOfEnt</a> |
|
darope@0
|
84 |
<li><a href=#PEntityOfEntOffset>PEntityOfEntOffset</a> |
|
darope@0
|
85 |
<li><a href=#EntOffsetOfPEntity>EntOffsetOfPEntity</a> |
|
darope@0
|
86 |
<li><a href=#IndexOfEdict>IndexOfEdict</a> |
|
darope@0
|
87 |
<li><a href=#PEntityOfEntIndex>PEntityOfEntIndex</a> |
|
darope@0
|
88 |
<li><a href=#FindEntityByVars>FindEntityByVars</a> |
|
darope@0
|
89 |
<li><a href=#GetModelPtr>GetModelPtr</a> |
|
darope@0
|
90 |
<li><a href=#RegUserMsg>RegUserMsg</a> |
|
darope@0
|
91 |
<li><a href=#AnimationAutomove>AnimationAutomove</a> |
|
darope@0
|
92 |
<li><a href=#GetBonePosition>GetBonePosition</a> |
|
darope@0
|
93 |
<li><a href=#FunctionFromName>FunctionFromName</a> |
|
darope@0
|
94 |
<li><a href=#NameForFunction>NameForFunction</a> |
|
darope@0
|
95 |
<li><a href=#ClientPrintf>ClientPrintf</a> |
|
darope@0
|
96 |
<li><a href=#ServerPrint>ServerPrint</a> |
|
darope@0
|
97 |
<li><a href=#Cmd_Args>Cmd_Args</a> |
|
darope@0
|
98 |
<li><a href=#Cmd_Argv>Cmd_Argv</a> |
|
darope@0
|
99 |
<li><a href=#Cmd_Argc>Cmd_Argc</a> |
|
darope@0
|
100 |
<li><a href=#GetAttachment>GetAttachment</a> |
|
darope@0
|
101 |
<li><a href=#CRC32_Init>CRC32_Init</a> |
|
darope@0
|
102 |
<li><a href=#CRC32_ProcessBuffer>CRC32_ProcessBuffer</a> |
|
darope@0
|
103 |
<li><a href=#CRC32_ProcessByte>CRC32_ProcessByte</a> |
|
darope@0
|
104 |
<li><a href=#CRC32_Final>CRC32_Final</a> |
|
darope@0
|
105 |
<li><a href=#RandomLong>RandomLong</a> |
|
darope@0
|
106 |
<li><a href=#RandomFloat>RandomFloat</a> |
|
darope@0
|
107 |
<li><a href=#SetView>SetView</a> |
|
darope@0
|
108 |
<li><a href=#Time>Time</a> |
|
darope@0
|
109 |
<li><a href=#CrosshairAngle>CrosshairAngle</a> |
|
darope@0
|
110 |
<li><a href=#LoadFileForMe>LoadFileForMe</a> |
|
darope@0
|
111 |
<li><a href=#FreeFile>FreeFile</a> |
|
darope@0
|
112 |
<li><a href=#EndSection>EndSection</a> |
|
darope@0
|
113 |
<li><a href=#CompareFileTime>CompareFileTime</a> |
|
darope@0
|
114 |
<li><a href=#GetGameDir>GetGameDir</a> |
|
darope@0
|
115 |
<li><a href=#Cvar_RegisterVariable>Cvar_RegisterVariable</a> |
|
darope@0
|
116 |
<li><a href=#FadeClientVolume>FadeClientVolume</a> |
|
darope@0
|
117 |
<li><a href=#SetClientMaxspeed>SetClientMaxspeed</a> |
|
darope@0
|
118 |
<li><a href=#CreateFakeClient>CreateFakeClient</a> |
|
darope@0
|
119 |
<li><a href=#RunPlayerMove>RunPlayerMove</a> |
|
darope@0
|
120 |
<li><a href=#NumberOfEntities>NumberOfEntities</a> |
|
darope@0
|
121 |
<li><a href=#GetInfoKeyBuffer>GetInfoKeyBuffer</a> |
|
darope@0
|
122 |
<li><a href=#InfoKeyValue>InfoKeyValue</a> |
|
darope@0
|
123 |
<li><a href=#SetKeyValue>SetKeyValue</a> |
|
darope@0
|
124 |
<li><a href=#SetClientKeyValue>SetClientKeyValue</a> |
|
darope@0
|
125 |
<li><a href=#IsMapValid>IsMapValid</a> |
|
darope@0
|
126 |
<li><a href=#StaticDecal>StaticDecal</a> |
|
darope@0
|
127 |
<li><a href=#PrecacheGeneric>PrecacheGeneric</a> |
|
darope@0
|
128 |
<li><a href=#GetPlayerUserId>GetPlayerUserId</a> |
|
darope@0
|
129 |
<li><a href=#BuildSoundMsg>BuildSoundMsg</a> |
|
darope@0
|
130 |
<li><a href=#IsDedicatedServer>IsDedicatedServer</a> |
|
darope@0
|
131 |
<li><a href=#CVarGetPointer>CVarGetPointer</a> |
|
darope@0
|
132 |
<li><a href=#GetPlayerWONId>GetPlayerWONId</a> |
|
darope@0
|
133 |
<li><a href=#Info_RemoveKey>Info_RemoveKey</a> |
|
darope@0
|
134 |
<li><a href=#GetPhysicsKeyValue>GetPhysicsKeyValue</a> |
|
darope@0
|
135 |
<li><a href=#SetPhysicsKeyValue>SetPhysicsKeyValue</a> |
|
darope@0
|
136 |
<li><a href=#GetPhysicsInfoString>GetPhysicsInfoString</a> |
|
darope@0
|
137 |
<li><a href=#PrecacheEvent>PrecacheEvent</a> |
|
darope@0
|
138 |
<li><a href=#PlaybackEvent>PlaybackEvent</a> |
|
darope@0
|
139 |
<li><a href=#SetFatPVS>SetFatPVS</a> |
|
darope@0
|
140 |
<li><a href=#SetFatPAS>SetFatPAS</a> |
|
darope@0
|
141 |
<li><a href=#CheckVisibility>CheckVisibility</a> |
|
darope@0
|
142 |
<li><a href=#DeltaSetField>DeltaSetField</a> |
|
darope@0
|
143 |
<li><a href=#DeltaUnsetField>DeltaUnsetField</a> |
|
darope@0
|
144 |
<li><a href=#DeltaAddEncoder>DeltaAddEncoder</a> |
|
darope@0
|
145 |
<li><a href=#GetCurrentPlayer>GetCurrentPlayer</a> |
|
darope@0
|
146 |
<li><a href=#CanSkipPlayer>CanSkipPlayer</a> |
|
darope@0
|
147 |
<li><a href=#DeltaFindField>DeltaFindField</a> |
|
darope@0
|
148 |
<li><a href=#DeltaSetFieldByIndex>DeltaSetFieldByIndex</a> |
|
darope@0
|
149 |
<li><a href=#DeltaUnsetFieldByIndex>DeltaUnsetFieldByIndex</a> |
|
darope@0
|
150 |
<li><a href=#SetGroupMask>SetGroupMask</a> |
|
darope@0
|
151 |
<li><a href=#CreateInstancedBaseline>CreateInstancedBaseline</a> |
|
darope@0
|
152 |
<li><a href=#Cvar_DirectSet>Cvar_DirectSet</a> |
|
darope@0
|
153 |
<li><a href=#ForceUnmodified>ForceUnmodified</a> |
|
darope@0
|
154 |
<li><a href=#GetPlayerStats>GetPlayerStats</a> |
|
darope@0
|
155 |
<li><a href=#AddServerCommand>AddServerCommand</a> |
|
darope@0
|
156 |
<li><a href=#Voice_GetClientListening>Voice_GetClientListening</a> |
|
darope@0
|
157 |
<li><a href=#Voice_SetClientListening>Voice_SetClientListening</a> |
|
darope@0
|
158 |
<li><a href=#GetPlayerAuthId>GetPlayerAuthId</a> |
|
darope@0
|
159 |
<li><a href=#SequenceGet>SequenceGet</a> |
|
darope@0
|
160 |
<li><a href=#SequencePickSentence>SequencePickSentence</a> |
|
darope@0
|
161 |
<li><a href=#GetFileSize>GetFileSize</a> |
|
darope@0
|
162 |
<li><a href=#GetApproxWavePlayLen>GetApproxWavePlayLen</a> |
|
darope@0
|
163 |
<li><a href=#IsCareerMatch>IsCareerMatch</a> |
|
darope@0
|
164 |
<li><a href=#GetLocalizedStringLength>GetLocalizedStringLength</a> |
|
darope@0
|
165 |
<li><a href=#RegisterTutorMessageShown>RegisterTutorMessageShown</a> |
|
darope@0
|
166 |
<li><a href=#GetTimesTutorMessageShown>GetTimesTutorMessageShown</a> |
|
darope@0
|
167 |
<li><a href=#ProcessTutorMessageDecayBuffer>ProcessTutorMessageDecayBuffer</a> |
|
darope@0
|
168 |
<li><a href=#ConstructTutorMessageDecayBuffer>ConstructTutorMessageDecayBuffer</a> |
|
darope@0
|
169 |
<li><a href=#ResetTutorMessageDecayData>ResetTutorMessageDecayData</a> |
|
darope@249
|
170 |
<li><a href=#QueryClientCvarValue>QueryClientCvarValue</a> |
|
darope@249
|
171 |
<li><a href=#QueryClientCvarValue2>QueryClientCvarValue2</a> |
|
darope@0
|
172 |
</ul> |
|
darope@0
|
173 |
|
|
darope@0
|
174 |
<hr><h3><tt><a name="PrecacheModel">PrecacheModel</a></tt></h3> |
|
darope@0
|
175 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
176 |
<dd><tt>int PrecacheModel(char *s);</tt><br> |
|
darope@0
|
177 |
<dd><tt>PRECACHE_MODEL()</tt> |
|
darope@0
|
178 |
<p><i>comments:</i><br> |
|
darope@0
|
179 |
<blockquote> |
|
darope@0
|
180 |
. |
|
darope@0
|
181 |
</blockquote> |
|
darope@0
|
182 |
|
|
darope@0
|
183 |
<hr><h3><tt><a name="PrecacheSound">PrecacheSound</a></tt></h3> |
|
darope@0
|
184 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
185 |
<dd><tt>int PrecacheSound(char *s);</tt><br> |
|
darope@0
|
186 |
<dd><tt>PRECACHE_SOUND()</tt> |
|
darope@0
|
187 |
<p><i>comments:</i><br> |
|
darope@0
|
188 |
<blockquote> |
|
darope@0
|
189 |
. |
|
darope@0
|
190 |
</blockquote> |
|
darope@0
|
191 |
|
|
darope@0
|
192 |
<hr><h3><tt><a name="SetModel">SetModel</a></tt></h3> |
|
darope@0
|
193 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
194 |
<dd><tt>void SetModel(edict_t *e, const char *m);</tt><br> |
|
darope@0
|
195 |
<dd><tt>SET_MODEL()</tt> |
|
darope@0
|
196 |
<p><i>comments:</i><br> |
|
darope@0
|
197 |
<blockquote> |
|
darope@0
|
198 |
. |
|
darope@0
|
199 |
</blockquote> |
|
darope@0
|
200 |
|
|
darope@0
|
201 |
<hr><h3><tt><a name="ModelIndex">ModelIndex</a></tt></h3> |
|
darope@0
|
202 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
203 |
<dd><tt>int ModelIndex(const char *m);</tt><br> |
|
darope@0
|
204 |
<dd><tt>MODEL_INDEX()</tt> |
|
darope@0
|
205 |
<p><i>comments:</i><br> |
|
darope@0
|
206 |
<blockquote> |
|
darope@0
|
207 |
. |
|
darope@0
|
208 |
</blockquote> |
|
darope@0
|
209 |
|
|
darope@0
|
210 |
<hr><h3><tt><a name="ModelFrames">ModelFrames</a></tt></h3> |
|
darope@0
|
211 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
212 |
<dd><tt>int ModelFrames(int modelIndex);</tt><br> |
|
darope@0
|
213 |
<dd><tt>MODEL_FRAMES()</tt> |
|
darope@0
|
214 |
<p><i>comments:</i><br> |
|
darope@0
|
215 |
<blockquote> |
|
darope@0
|
216 |
. |
|
darope@0
|
217 |
</blockquote> |
|
darope@0
|
218 |
|
|
darope@0
|
219 |
<hr><h3><tt><a name="SetSize">SetSize</a></tt></h3> |
|
darope@0
|
220 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
221 |
<dd><tt>void SetSize(edict_t *e, const float *rgflMin, const float *rgflMax);</tt><br> |
|
darope@0
|
222 |
<dd><tt>SET_SIZE()</tt> |
|
darope@0
|
223 |
<p><i>comments:</i><br> |
|
darope@0
|
224 |
<blockquote> |
|
darope@0
|
225 |
. |
|
darope@0
|
226 |
</blockquote> |
|
darope@0
|
227 |
|
|
darope@0
|
228 |
<hr><h3><tt><a name="ChangeLevel">ChangeLevel</a></tt></h3> |
|
darope@0
|
229 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
230 |
<dd><tt>void ChangeLevel(char *s1, char *s2);</tt><br> |
|
darope@0
|
231 |
<dd><tt>CHANGE_LEVEL()</tt> |
|
darope@0
|
232 |
<p><i>comments:</i><br> |
|
darope@0
|
233 |
<blockquote> |
|
darope@0
|
234 |
. |
|
darope@0
|
235 |
</blockquote> |
|
darope@0
|
236 |
|
|
darope@0
|
237 |
<hr><h3><tt><a name="GetSpawnParms">GetSpawnParms</a></tt></h3> |
|
darope@0
|
238 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
239 |
<dd><tt>void GetSpawnParms(edict_t *ent);</tt><br> |
|
darope@0
|
240 |
<dd><tt>GET_SPAWN_PARMS()</tt> |
|
darope@0
|
241 |
<p><i>comments:</i><br> |
|
darope@0
|
242 |
<blockquote> |
|
darope@0
|
243 |
. |
|
darope@0
|
244 |
</blockquote> |
|
darope@0
|
245 |
|
|
darope@0
|
246 |
<hr><h3><tt><a name="SaveSpawnParms">SaveSpawnParms</a></tt></h3> |
|
darope@0
|
247 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
248 |
<dd><tt>void SaveSpawnParms(edict_t *ent);</tt><br> |
|
darope@0
|
249 |
<dd><tt>SAVE_SPAWN_PARMS()</tt> |
|
darope@0
|
250 |
<p><i>comments:</i><br> |
|
darope@0
|
251 |
<blockquote> |
|
darope@0
|
252 |
. |
|
darope@0
|
253 |
</blockquote> |
|
darope@0
|
254 |
|
|
darope@0
|
255 |
<hr><h3><tt><a name="VecToYaw">VecToYaw</a></tt></h3> |
|
darope@0
|
256 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
257 |
<dd><tt>float VecToYaw(const float *rgflVector);</tt><br> |
|
darope@0
|
258 |
<dd><tt>VEC_TO_YAW()</tt> |
|
darope@0
|
259 |
<p><i>comments:</i><br> |
|
darope@0
|
260 |
<blockquote> |
|
darope@0
|
261 |
. |
|
darope@0
|
262 |
</blockquote> |
|
darope@0
|
263 |
|
|
darope@0
|
264 |
<hr><h3><tt><a name="VecToAngles">VecToAngles</a></tt></h3> |
|
darope@0
|
265 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
266 |
<dd><tt>void VecToAngles(const float *rgflVectorIn, float *rgflVectorOut);</tt><br> |
|
darope@0
|
267 |
<dd><tt>VEC_TO_ANGLES()</tt> |
|
darope@0
|
268 |
<p><i>comments:</i><br> |
|
darope@0
|
269 |
<blockquote> |
|
darope@0
|
270 |
. |
|
darope@0
|
271 |
</blockquote> |
|
darope@0
|
272 |
|
|
darope@0
|
273 |
<hr><h3><tt><a name="MoveToOrigin">MoveToOrigin</a></tt></h3> |
|
darope@0
|
274 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
275 |
<dd><tt>void MoveToOrigin(edict_t *ent, const float *pflGoal, float dist, int iMoveType);</tt><br> |
|
darope@0
|
276 |
<dd><tt>MOVE_TO_ORIGIN()</tt> |
|
darope@0
|
277 |
<p><i>comments:</i><br> |
|
darope@0
|
278 |
<blockquote> |
|
darope@0
|
279 |
. |
|
darope@0
|
280 |
</blockquote> |
|
darope@0
|
281 |
|
|
darope@0
|
282 |
<hr><h3><tt><a name="ChangeYaw">ChangeYaw</a></tt></h3> |
|
darope@0
|
283 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
284 |
<dd><tt>void ChangeYaw(edict_t *ent);</tt><br> |
|
darope@0
|
285 |
<dd><tt>oldCHANGE_YAW()</tt> |
|
darope@0
|
286 |
<p><i>comments:</i><br> |
|
darope@0
|
287 |
<blockquote> |
|
darope@0
|
288 |
. |
|
darope@0
|
289 |
</blockquote> |
|
darope@0
|
290 |
|
|
darope@0
|
291 |
<hr><h3><tt><a name="ChangePitch">ChangePitch</a></tt></h3> |
|
darope@0
|
292 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
293 |
<dd><tt>void ChangePitch(edict_t *ent);</tt><br> |
|
darope@0
|
294 |
<dd><tt>CHANGE_PITCH()</tt> |
|
darope@0
|
295 |
<p><i>comments:</i><br> |
|
darope@0
|
296 |
<blockquote> |
|
darope@0
|
297 |
. |
|
darope@0
|
298 |
</blockquote> |
|
darope@0
|
299 |
|
|
darope@0
|
300 |
<hr><h3><tt><a name="FindEntityByString">FindEntityByString</a></tt></h3> |
|
darope@0
|
301 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
302 |
<dd><tt>edict_t *FindEntityByString(edict_t *pEdictStartSearchAfter, const char *pszField, const char *pszValue);</tt><br> |
|
darope@0
|
303 |
<dd><tt>FIND_ENTITY_BY_STRING()</tt> |
|
darope@0
|
304 |
<p><i>comments:</i><br> |
|
darope@0
|
305 |
<blockquote> |
|
darope@0
|
306 |
. |
|
darope@0
|
307 |
</blockquote> |
|
darope@0
|
308 |
|
|
darope@0
|
309 |
<hr><h3><tt><a name="GetEntityIllum">GetEntityIllum</a></tt></h3> |
|
darope@0
|
310 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
311 |
<dd><tt>int GetEntityIllum(edict_t *pEnt);</tt><br> |
|
darope@0
|
312 |
<dd><tt>GETENTITYILLUM()</tt> |
|
darope@0
|
313 |
<p><i>comments:</i><br> |
|
darope@0
|
314 |
<blockquote> |
|
darope@0
|
315 |
. |
|
darope@0
|
316 |
</blockquote> |
|
darope@0
|
317 |
|
|
darope@0
|
318 |
<hr><h3><tt><a name="FindEntityInSphere">FindEntityInSphere</a></tt></h3> |
|
darope@0
|
319 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
320 |
<dd><tt>edict_t *FindEntityInSphere(edict_t *pEdictStartSearchAfter, const float *org, float rad);</tt><br> |
|
darope@0
|
321 |
<dd><tt>FIND_ENTITY_IN_SPHERE()</tt> |
|
darope@0
|
322 |
<p><i>comments:</i><br> |
|
darope@0
|
323 |
<blockquote> |
|
darope@0
|
324 |
. |
|
darope@0
|
325 |
</blockquote> |
|
darope@0
|
326 |
|
|
darope@0
|
327 |
<hr><h3><tt><a name="FindClientInPVS">FindClientInPVS</a></tt></h3> |
|
darope@0
|
328 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
329 |
<dd><tt>edict_t *FindClientInPVS(edict_t *pEdict);</tt><br> |
|
darope@0
|
330 |
<dd><tt>FIND_ENTITY_IN_PVS()</tt> |
|
darope@0
|
331 |
<p><i>comments:</i><br> |
|
darope@0
|
332 |
<blockquote> |
|
darope@0
|
333 |
. |
|
darope@0
|
334 |
</blockquote> |
|
darope@0
|
335 |
|
|
darope@0
|
336 |
<hr><h3><tt><a name="EntitiesInPVS">EntitiesInPVS</a></tt></h3> |
|
darope@0
|
337 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
338 |
<dd><tt>edict_t *EntitiesInPVS(edict_t *pplayer);</tt> |
|
darope@0
|
339 |
<p><i>comments:</i><br> |
|
darope@0
|
340 |
<blockquote> |
|
darope@0
|
341 |
. |
|
darope@0
|
342 |
</blockquote> |
|
darope@0
|
343 |
|
|
darope@0
|
344 |
<hr><h3><tt><a name="MakeVectors">MakeVectors</a></tt></h3> |
|
darope@0
|
345 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
346 |
<dd><tt>void MakeVectors(const float *rgflVector);</tt><br> |
|
darope@0
|
347 |
<dd><tt>MAKE_VECTORS()</tt> |
|
darope@0
|
348 |
<p><i>comments:</i><br> |
|
darope@0
|
349 |
<blockquote> |
|
darope@0
|
350 |
. |
|
darope@0
|
351 |
</blockquote> |
|
darope@0
|
352 |
|
|
darope@0
|
353 |
<hr><h3><tt><a name="AngleVectors">AngleVectors</a></tt></h3> |
|
darope@0
|
354 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
355 |
<dd><tt>void AngleVectors(const float *rgflVector, float *forward, float *right, float *up);</tt> |
|
darope@0
|
356 |
<p><i>comments:</i><br> |
|
darope@0
|
357 |
<blockquote> |
|
darope@0
|
358 |
. |
|
darope@0
|
359 |
</blockquote> |
|
darope@0
|
360 |
|
|
darope@0
|
361 |
<hr><h3><tt><a name="CreateEntity">CreateEntity</a></tt></h3> |
|
darope@0
|
362 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
363 |
<dd><tt>edict_t *CreateEntity(void);</tt><br> |
|
darope@0
|
364 |
<dd><tt>CREATE_ENTITY()</tt> |
|
darope@0
|
365 |
<p><i>comments:</i><br> |
|
darope@0
|
366 |
<blockquote> |
|
darope@0
|
367 |
. |
|
darope@0
|
368 |
</blockquote> |
|
darope@0
|
369 |
|
|
darope@0
|
370 |
<hr><h3><tt><a name="RemoveEntity">RemoveEntity</a></tt></h3> |
|
darope@0
|
371 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
372 |
<dd><tt>void RemoveEntity(edict_t *e);</tt><br> |
|
darope@0
|
373 |
<dd><tt>REMOVE_ENTITY()</tt> |
|
darope@0
|
374 |
<p><i>comments:</i><br> |
|
darope@0
|
375 |
<blockquote> |
|
darope@0
|
376 |
. |
|
darope@0
|
377 |
</blockquote> |
|
darope@0
|
378 |
|
|
darope@0
|
379 |
<hr><h3><tt><a name="CreateNamedEntity">CreateNamedEntity</a></tt></h3> |
|
darope@0
|
380 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
381 |
<dd><tt>edict_t *CreateNamedEntity(int className);</tt><br> |
|
darope@0
|
382 |
<dd><tt>CREATE_NAMED_ENTITY()</tt> |
|
darope@0
|
383 |
<p><i>comments:</i><br> |
|
darope@0
|
384 |
<blockquote> |
|
darope@0
|
385 |
. |
|
darope@0
|
386 |
</blockquote> |
|
darope@0
|
387 |
|
|
darope@0
|
388 |
<hr><h3><tt><a name="MakeStatic">MakeStatic</a></tt></h3> |
|
darope@0
|
389 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
390 |
<dd><tt>void MakeStatic(edict_t *ent);</tt><br> |
|
darope@0
|
391 |
<dd><tt>MAKE_STATIC()</tt> |
|
darope@0
|
392 |
<p><i>comments:</i><br> |
|
darope@0
|
393 |
<blockquote> |
|
darope@0
|
394 |
. |
|
darope@0
|
395 |
</blockquote> |
|
darope@0
|
396 |
|
|
darope@0
|
397 |
<hr><h3><tt><a name="EntIsOnFloor">EntIsOnFloor</a></tt></h3> |
|
darope@0
|
398 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
399 |
<dd><tt>int EntIsOnFloor(edict_t *e);</tt><br> |
|
darope@0
|
400 |
<dd><tt>ENT_IS_ON_FLOOR()</tt> |
|
darope@0
|
401 |
<p><i>comments:</i><br> |
|
darope@0
|
402 |
<blockquote> |
|
darope@0
|
403 |
. |
|
darope@0
|
404 |
</blockquote> |
|
darope@0
|
405 |
|
|
darope@0
|
406 |
<hr><h3><tt><a name="DropToFloor">DropToFloor</a></tt></h3> |
|
darope@0
|
407 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
408 |
<dd><tt>int DropToFloor(edict_t *e);</tt><br> |
|
darope@0
|
409 |
<dd><tt>DROP_TO_FLOOR()</tt> |
|
darope@0
|
410 |
<p><i>comments:</i><br> |
|
darope@0
|
411 |
<blockquote> |
|
darope@0
|
412 |
. |
|
darope@0
|
413 |
</blockquote> |
|
darope@0
|
414 |
|
|
darope@0
|
415 |
<hr><h3><tt><a name="WalkMove">WalkMove</a></tt></h3> |
|
darope@0
|
416 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
417 |
<dd><tt>int WalkMove(edict_t *ent, float yaw, float dist, int iMode);</tt><br> |
|
darope@0
|
418 |
<dd><tt>WALK_MOVE()</tt> |
|
darope@0
|
419 |
<p><i>comments:</i><br> |
|
darope@0
|
420 |
<blockquote> |
|
darope@0
|
421 |
. |
|
darope@0
|
422 |
</blockquote> |
|
darope@0
|
423 |
|
|
darope@0
|
424 |
<hr><h3><tt><a name="SetOrigin">SetOrigin</a></tt></h3> |
|
darope@0
|
425 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
426 |
<dd><tt>void SetOrigin(edict_t *e, const float *rgflOrigin);</tt><br> |
|
darope@0
|
427 |
<dd><tt>SET_ORIGIN()</tt> |
|
darope@0
|
428 |
<p><i>comments:</i><br> |
|
darope@0
|
429 |
<blockquote> |
|
darope@0
|
430 |
. |
|
darope@0
|
431 |
</blockquote> |
|
darope@0
|
432 |
|
|
darope@0
|
433 |
<hr><h3><tt><a name="EmitSound">EmitSound</a></tt></h3> |
|
darope@0
|
434 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
435 |
<dd><tt>void EmitSound(edict_t *entity, int channel, const char *sample, /*int*/float volume, float attenuation, int fFlags, int pitch);</tt><br> |
|
darope@0
|
436 |
<dd><tt>EMIT_SOUND_DYN2()</tt> |
|
darope@0
|
437 |
<p><i>comments:</i><br> |
|
darope@0
|
438 |
<blockquote> |
|
darope@0
|
439 |
. |
|
darope@0
|
440 |
</blockquote> |
|
darope@0
|
441 |
|
|
darope@0
|
442 |
<hr><h3><tt><a name="EmitAmbientSound">EmitAmbientSound</a></tt></h3> |
|
darope@0
|
443 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
444 |
<dd><tt>void EmitAmbientSound(edict_t *entity, float *pos, const char *samp, float vol, float attenuation, int fFlags, int pitch);</tt><br> |
|
darope@0
|
445 |
<dd><tt>EMIT_AMBIENT_SOUND()</tt> |
|
darope@0
|
446 |
<p><i>comments:</i><br> |
|
darope@0
|
447 |
<blockquote> |
|
darope@0
|
448 |
. |
|
darope@0
|
449 |
</blockquote> |
|
darope@0
|
450 |
|
|
darope@0
|
451 |
<hr><h3><tt><a name="TraceLine">TraceLine</a></tt></h3> |
|
darope@0
|
452 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
453 |
<dd><tt>void TraceLine(const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);</tt><br> |
|
darope@0
|
454 |
<dd><tt>TRACE_LINE()</tt> |
|
darope@0
|
455 |
<p><i>comments:</i><br> |
|
darope@0
|
456 |
<blockquote> |
|
darope@0
|
457 |
. |
|
darope@0
|
458 |
</blockquote> |
|
darope@0
|
459 |
|
|
darope@0
|
460 |
<hr><h3><tt><a name="TraceToss">TraceToss</a></tt></h3> |
|
darope@0
|
461 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
462 |
<dd><tt>void TraceToss(edict_t *pent, edict_t *pentToIgnore, TraceResult *ptr);</tt><br> |
|
darope@0
|
463 |
<dd><tt>TRACE_TOSS()</tt> |
|
darope@0
|
464 |
<p><i>comments:</i><br> |
|
darope@0
|
465 |
<blockquote> |
|
darope@0
|
466 |
. |
|
darope@0
|
467 |
</blockquote> |
|
darope@0
|
468 |
|
|
darope@0
|
469 |
<hr><h3><tt><a name="TraceMonsterHull">TraceMonsterHull</a></tt></h3> |
|
darope@0
|
470 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
471 |
<dd><tt>int TraceMonsterHull(edict_t *pEdict, const float *v1, const float *v2, int fNoMonsters, edict_t *pentToSkip, TraceResult *ptr);</tt><br> |
|
darope@0
|
472 |
<dd><tt>TRACE_MONSTER_HULL()</tt> |
|
darope@0
|
473 |
<p><i>comments:</i><br> |
|
darope@0
|
474 |
<blockquote> |
|
darope@0
|
475 |
. |
|
darope@0
|
476 |
</blockquote> |
|
darope@0
|
477 |
|
|
darope@0
|
478 |
<hr><h3><tt><a name="TraceHull">TraceHull</a></tt></h3> |
|
darope@0
|
479 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
480 |
<dd><tt>void TraceHull(const float *v1, const float *v2, int fNoMonsters, int hullNumber, edict_t *pentToSkip, TraceResult *ptr);</tt><br> |
|
darope@0
|
481 |
<dd><tt>TRACE_HULL()</tt> |
|
darope@0
|
482 |
<p><i>comments:</i><br> |
|
darope@0
|
483 |
<blockquote> |
|
darope@0
|
484 |
. |
|
darope@0
|
485 |
</blockquote> |
|
darope@0
|
486 |
|
|
darope@0
|
487 |
<hr><h3><tt><a name="TraceModel">TraceModel</a></tt></h3> |
|
darope@0
|
488 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
489 |
<dd><tt>void TraceModel(const float *v1, const float *v2, int hullNumber, edict_t *pent, TraceResult *ptr);</tt> |
|
darope@0
|
490 |
<p><i>comments:</i><br> |
|
darope@0
|
491 |
<blockquote> |
|
darope@0
|
492 |
. |
|
darope@0
|
493 |
</blockquote> |
|
darope@0
|
494 |
|
|
darope@0
|
495 |
<hr><h3><tt><a name="TraceTexture">TraceTexture</a></tt></h3> |
|
darope@0
|
496 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
497 |
<dd><tt>const char *TraceTexture(edict_t *pTextureEntity, const float *v1, const float *v2);</tt><br> |
|
darope@0
|
498 |
<dd><tt>TRACE_TEXTURE()</tt> |
|
darope@0
|
499 |
<p><i>comments:</i><br> |
|
darope@0
|
500 |
<blockquote> |
|
darope@0
|
501 |
. |
|
darope@0
|
502 |
</blockquote> |
|
darope@0
|
503 |
|
|
darope@0
|
504 |
<hr><h3><tt><a name="TraceSphere">TraceSphere</a></tt></h3> |
|
darope@0
|
505 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
506 |
<dd><tt>void TraceSphere(const float *v1, const float *v2, int fNoMonsters, float radius, edict_t *pentToSkip, TraceResult *ptr);</tt> |
|
darope@0
|
507 |
<p><i>comments:</i><br> |
|
darope@0
|
508 |
<blockquote> |
|
darope@0
|
509 |
. |
|
darope@0
|
510 |
</blockquote> |
|
darope@0
|
511 |
|
|
darope@0
|
512 |
<hr><h3><tt><a name="GetAimVector">GetAimVector</a></tt></h3> |
|
darope@0
|
513 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
514 |
<dd><tt>void GetAimVector(edict_t *ent, float speed, float *rgflReturn);</tt><br> |
|
darope@0
|
515 |
<dd><tt>GET_AIM_VECTOR()</tt> |
|
darope@0
|
516 |
<p><i>comments:</i><br> |
|
darope@0
|
517 |
<blockquote> |
|
darope@0
|
518 |
. |
|
darope@0
|
519 |
</blockquote> |
|
darope@0
|
520 |
|
|
darope@0
|
521 |
<hr><h3><tt><a name="ServerCommand">ServerCommand</a></tt></h3> |
|
darope@0
|
522 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
523 |
<dd><tt>void ServerCommand(char *str);</tt><br> |
|
darope@0
|
524 |
<dd><tt>SERVER_COMMAND()</tt> |
|
darope@0
|
525 |
<p><i>comments:</i><br> |
|
darope@0
|
526 |
<blockquote> |
|
darope@0
|
527 |
Executes a server command, as if typed at the console (ie "exec |
|
darope@0
|
528 |
myconfig.cfg", or "quit"). Note that it appears no commands are |
|
darope@0
|
529 |
executed until <b>after</b> GameDLLInit is called. If |
|
darope@0
|
530 |
ServerCommand is called earlier than that, the command is delayed until |
|
darope@0
|
531 |
then. |
|
darope@0
|
532 |
</blockquote> |
|
darope@0
|
533 |
|
|
darope@0
|
534 |
<hr><h3><tt><a name="ServerExecute">ServerExecute</a></tt></h3> |
|
darope@0
|
535 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
536 |
<dd><tt>void ServerExecute(void);</tt><br> |
|
darope@0
|
537 |
<dd><tt>SERVER_EXECUTE()</tt> |
|
darope@0
|
538 |
<p><i>comments:</i><br> |
|
darope@0
|
539 |
<blockquote> |
|
darope@0
|
540 |
. |
|
darope@0
|
541 |
</blockquote> |
|
darope@0
|
542 |
|
|
darope@0
|
543 |
<hr><h3><tt><a name="ClientCommand">ClientCommand</a></tt></h3> |
|
darope@0
|
544 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
545 |
<dd><tt>void ClientCommand(edict_t *pEdict, char *szFmt, ...);</tt><br> |
|
darope@0
|
546 |
<dd><tt>CLIENT_COMMAND()</tt> |
|
darope@0
|
547 |
<p><i>comments:</i><br> |
|
darope@0
|
548 |
<blockquote> |
|
darope@0
|
549 |
. |
|
darope@0
|
550 |
</blockquote> |
|
darope@0
|
551 |
|
|
darope@0
|
552 |
<hr><h3><tt><a name="ParticleEffect">ParticleEffect</a></tt></h3> |
|
darope@0
|
553 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
554 |
<dd><tt>void ParticleEffect(const float *org, const float *dir, float color, float count);</tt><br> |
|
darope@0
|
555 |
<dd><tt>PARTICLE_EFFECT()</tt> |
|
darope@0
|
556 |
<p><i>comments:</i><br> |
|
darope@0
|
557 |
<blockquote> |
|
darope@0
|
558 |
. |
|
darope@0
|
559 |
</blockquote> |
|
darope@0
|
560 |
|
|
darope@0
|
561 |
<hr><h3><tt><a name="LightStyle">LightStyle</a></tt></h3> |
|
darope@0
|
562 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
563 |
<dd><tt>void LightStyle(int style, char *val);</tt><br> |
|
darope@0
|
564 |
<dd><tt>LIGHT_STYLE()</tt> |
|
darope@0
|
565 |
<p><i>comments:</i><br> |
|
darope@0
|
566 |
<blockquote> |
|
darope@0
|
567 |
. |
|
darope@0
|
568 |
</blockquote> |
|
darope@0
|
569 |
|
|
darope@0
|
570 |
<hr><h3><tt><a name="DecalIndex">DecalIndex</a></tt></h3> |
|
darope@0
|
571 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
572 |
<dd><tt>int DecalIndex(const char *name);</tt><br> |
|
darope@0
|
573 |
<dd><tt>DECAL_INDEX()</tt> |
|
darope@0
|
574 |
<p><i>comments:</i><br> |
|
darope@0
|
575 |
<blockquote> |
|
darope@0
|
576 |
. |
|
darope@0
|
577 |
</blockquote> |
|
darope@0
|
578 |
|
|
darope@0
|
579 |
<hr><h3><tt><a name="PointContents">PointContents</a></tt></h3> |
|
darope@0
|
580 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
581 |
<dd><tt>int PointContents(const float *rgflVector);</tt><br> |
|
darope@0
|
582 |
<dd><tt>POINT_CONTENTS()</tt> |
|
darope@0
|
583 |
<p><i>comments:</i><br> |
|
darope@0
|
584 |
<blockquote> |
|
darope@0
|
585 |
. |
|
darope@0
|
586 |
</blockquote> |
|
darope@0
|
587 |
|
|
darope@0
|
588 |
<hr><h3><tt><a name="MessageBegin">MessageBegin</a></tt></h3> |
|
darope@0
|
589 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
590 |
<dd><tt>void MessageBegin(int msg_dest, int msg_type, const float *pOrigin, edict_t *ed);</tt><br> |
|
darope@0
|
591 |
<dd><tt>MESSAGE_BEGIN()</tt> |
|
darope@0
|
592 |
<p><i>comments:</i><br> |
|
darope@0
|
593 |
<blockquote> |
|
darope@0
|
594 |
Begin a network message to send to the client. |
|
darope@0
|
595 |
<br><b><tt>msg_type</tt></b> should be a number returned by <a |
|
darope@0
|
596 |
href="#RegUserMsg">RegUserMsg</a>. |
|
darope@0
|
597 |
<br><b><tt>msg_dest</tt></b> is one of: |
|
darope@0
|
598 |
<ul> |
|
darope@0
|
599 |
<li> <b><tt>MSG_BROADCAST</tt></b> - "unreliable to all" |
|
darope@0
|
600 |
<li> <b><tt>MSG_ONE</tt></b> - "reliable to one (msg_entity)" |
|
darope@0
|
601 |
<li> <b><tt>MSG_ALL</tt></b> - "reliable to all" |
|
darope@0
|
602 |
<li> <b><tt>MSG_INIT</tt></b> - "write to the init string" |
|
darope@0
|
603 |
<li> <b><tt>MSG_PVS</tt></b> - "Ents in PVS of org" (PVS=potentially visible set) |
|
darope@0
|
604 |
<li> <b><tt>MSG_PAS</tt></b> - "Ents in PAS of org" (PAS=potentially audible set) |
|
darope@0
|
605 |
<li> <b><tt>MSG_PVS_R</tt></b> - "Reliable to PVS" |
|
darope@0
|
606 |
<li> <b><tt>MSG_PAS_R</tt></b> - "Reliable to PAS" |
|
darope@0
|
607 |
<li> <b><tt>MSG_ONE_UNRELIABLE</tt></b> - "Send to one client, but don't put in reliable stream, put in unreliable datagram (could be dropped)" |
|
darope@0
|
608 |
</ul> |
|
darope@0
|
609 |
</blockquote> |
|
darope@0
|
610 |
|
|
darope@0
|
611 |
<hr><h3><tt><a name="MessageEnd">MessageEnd</a></tt></h3> |
|
darope@0
|
612 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
613 |
<dd><tt>void MessageEnd(void);</tt><br> |
|
darope@0
|
614 |
<dd><tt>MESSAGE_END()</tt> |
|
darope@0
|
615 |
<p><i>comments:</i><br> |
|
darope@0
|
616 |
<blockquote> |
|
darope@0
|
617 |
. |
|
darope@0
|
618 |
</blockquote> |
|
darope@0
|
619 |
|
|
darope@0
|
620 |
<hr><h3><tt><a name="WriteByte">WriteByte</a></tt></h3> |
|
darope@0
|
621 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
622 |
<dd><tt>void WriteByte(int iValue);</tt><br> |
|
darope@0
|
623 |
<dd><tt>WRITE_BYTE()</tt> |
|
darope@0
|
624 |
<p><i>comments:</i><br> |
|
darope@0
|
625 |
<blockquote> |
|
darope@0
|
626 |
. |
|
darope@0
|
627 |
</blockquote> |
|
darope@0
|
628 |
|
|
darope@0
|
629 |
<hr><h3><tt><a name="WriteChar">WriteChar</a></tt></h3> |
|
darope@0
|
630 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
631 |
<dd><tt>void WriteChar(int iValue);</tt><br> |
|
darope@0
|
632 |
<dd><tt>WRITE_CHAR()</tt> |
|
darope@0
|
633 |
<p><i>comments:</i><br> |
|
darope@0
|
634 |
<blockquote> |
|
darope@0
|
635 |
. |
|
darope@0
|
636 |
</blockquote> |
|
darope@0
|
637 |
|
|
darope@0
|
638 |
<hr><h3><tt><a name="WriteShort">WriteShort</a></tt></h3> |
|
darope@0
|
639 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
640 |
<dd><tt>void WriteShort(int iValue);</tt><br> |
|
darope@0
|
641 |
<dd><tt>WRITE_SHORT()</tt> |
|
darope@0
|
642 |
<p><i>comments:</i><br> |
|
darope@0
|
643 |
<blockquote> |
|
darope@0
|
644 |
. |
|
darope@0
|
645 |
</blockquote> |
|
darope@0
|
646 |
|
|
darope@0
|
647 |
<hr><h3><tt><a name="WriteLong">WriteLong</a></tt></h3> |
|
darope@0
|
648 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
649 |
<dd><tt>void WriteLong(int iValue);</tt><br> |
|
darope@0
|
650 |
<dd><tt>WRITE_LONG()</tt> |
|
darope@0
|
651 |
<p><i>comments:</i><br> |
|
darope@0
|
652 |
<blockquote> |
|
darope@0
|
653 |
. |
|
darope@0
|
654 |
</blockquote> |
|
darope@0
|
655 |
|
|
darope@0
|
656 |
<hr><h3><tt><a name="WriteAngle">WriteAngle</a></tt></h3> |
|
darope@0
|
657 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
658 |
<dd><tt>void WriteAngle(float flValue);</tt><br> |
|
darope@0
|
659 |
<dd><tt>WRITE_ANGLE()</tt> |
|
darope@0
|
660 |
<p><i>comments:</i><br> |
|
darope@0
|
661 |
<blockquote> |
|
darope@0
|
662 |
. |
|
darope@0
|
663 |
</blockquote> |
|
darope@0
|
664 |
|
|
darope@0
|
665 |
<hr><h3><tt><a name="WriteCoord">WriteCoord</a></tt></h3> |
|
darope@0
|
666 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
667 |
<dd><tt>void WriteCoord(float flValue);</tt><br> |
|
darope@0
|
668 |
<dd><tt>WRITE_COORD()</tt> |
|
darope@0
|
669 |
<p><i>comments:</i><br> |
|
darope@0
|
670 |
<blockquote> |
|
darope@0
|
671 |
. |
|
darope@0
|
672 |
</blockquote> |
|
darope@0
|
673 |
|
|
darope@0
|
674 |
<hr><h3><tt><a name="WriteString">WriteString</a></tt></h3> |
|
darope@0
|
675 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
676 |
<dd><tt>void WriteString(const char *sz);</tt><br> |
|
darope@0
|
677 |
<dd><tt>WRITE_STRING()</tt> |
|
darope@0
|
678 |
<p><i>comments:</i><br> |
|
darope@0
|
679 |
<blockquote> |
|
darope@0
|
680 |
. |
|
darope@0
|
681 |
</blockquote> |
|
darope@0
|
682 |
|
|
darope@0
|
683 |
<hr><h3><tt><a name="WriteEntity">WriteEntity</a></tt></h3> |
|
darope@0
|
684 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
685 |
<dd><tt>void WriteEntity(int iValue);</tt><br> |
|
darope@0
|
686 |
<dd><tt>WRITE_ENTITY()</tt> |
|
darope@0
|
687 |
<p><i>comments:</i><br> |
|
darope@0
|
688 |
<blockquote> |
|
darope@0
|
689 |
. |
|
darope@0
|
690 |
</blockquote> |
|
darope@0
|
691 |
|
|
darope@0
|
692 |
<hr><h3><tt><a name="CVarRegister">CVarRegister</a></tt></h3> |
|
darope@0
|
693 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
694 |
<dd><tt>void CVarRegister(cvar_t *pCvar);</tt><br> |
|
darope@0
|
695 |
<dd><tt>CVAR_REGISTER()</tt> |
|
darope@0
|
696 |
<p><i>comments:</i><br> |
|
darope@0
|
697 |
<blockquote> |
|
darope@0
|
698 |
Register a new cvar (server variable). |
|
darope@0
|
699 |
</blockquote> |
|
darope@0
|
700 |
|
|
darope@0
|
701 |
<hr><h3><tt><a name="CVarGetFloat">CVarGetFloat</a></tt></h3> |
|
darope@0
|
702 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
703 |
<dd><tt>float CVarGetFloat(const char *szVarName);</tt><br> |
|
darope@0
|
704 |
<dd><tt>CVAR_GET_FLOAT()</tt> |
|
darope@0
|
705 |
<p><i>comments:</i><br> |
|
darope@0
|
706 |
<blockquote> |
|
darope@0
|
707 |
Return the float value of a cvar. |
|
darope@0
|
708 |
</blockquote> |
|
darope@0
|
709 |
|
|
darope@0
|
710 |
<hr><h3><tt><a name="CVarGetString">CVarGetString</a></tt></h3> |
|
darope@0
|
711 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
712 |
<dd><tt>const char *CVarGetString(const char *szVarName);</tt><br> |
|
darope@0
|
713 |
<dd><tt>CVAR_GET_STRING()</tt> |
|
darope@0
|
714 |
<p><i>comments:</i><br> |
|
darope@0
|
715 |
<blockquote> |
|
darope@0
|
716 |
Return the string value of a cvar. |
|
darope@0
|
717 |
</blockquote> |
|
darope@0
|
718 |
|
|
darope@0
|
719 |
<hr><h3><tt><a name="CVarSetFloat">CVarSetFloat</a></tt></h3> |
|
darope@0
|
720 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
721 |
<dd><tt>void CVarSetFloat(const char *szVarName, float flValue);</tt><br> |
|
darope@0
|
722 |
<dd><tt>CVAR_SET_FLOAT()</tt> |
|
darope@0
|
723 |
<p><i>comments:</i><br> |
|
darope@0
|
724 |
<blockquote> |
|
darope@0
|
725 |
Set the float value of a cvar. |
|
darope@0
|
726 |
</blockquote> |
|
darope@0
|
727 |
|
|
darope@0
|
728 |
<hr><h3><tt><a name="CVarSetString">CVarSetString</a></tt></h3> |
|
darope@0
|
729 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
730 |
<dd><tt>void CVarSetString(const char *szVarName, const char *szValue);</tt><br> |
|
darope@0
|
731 |
<dd><tt>CVAR_SET_STRING()</tt> |
|
darope@0
|
732 |
<p><i>comments:</i><br> |
|
darope@0
|
733 |
<blockquote> |
|
darope@0
|
734 |
Set the string value of a cvar. |
|
darope@0
|
735 |
</blockquote> |
|
darope@0
|
736 |
|
|
darope@0
|
737 |
<hr><h3><tt><a name="AlertMessage">AlertMessage</a></tt></h3> |
|
darope@0
|
738 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
739 |
<dd><tt>void AlertMessage(ALERT_TYPE atype, char *szFmt, ...);</tt><br> |
|
darope@0
|
740 |
<dd><tt>ALERT()</tt> |
|
darope@0
|
741 |
<p><i>comments:</i><br> |
|
darope@0
|
742 |
<blockquote> |
|
darope@0
|
743 |
Print an alert message. |
|
darope@0
|
744 |
<br><b><tt>atype</tt></b> is one of: |
|
darope@0
|
745 |
<ul> |
|
darope@0
|
746 |
<li> <b><tt>at_notice</tt></b> |
|
darope@0
|
747 |
<li> <b><tt>at_console</tt></b> - "same as at_notice, but forces a ConPrintf, not a message box". Prints output to server console, but only shown if 'developer' is set. |
|
darope@0
|
748 |
<li> <b><tt>at_aiconsole</tt></b> - "same as at_console, but only shown if developer level is 2!" |
|
darope@0
|
749 |
<li> <b><tt>at_warning</tt></b> |
|
darope@0
|
750 |
<li> <b><tt>at_error</tt></b> |
|
darope@0
|
751 |
<li> <b><tt>at_logged</tt></b> - "Server print to console (only in multiplayer games)." Prints output to server logs and console. |
|
darope@0
|
752 |
</ul> |
|
darope@0
|
753 |
</blockquote> |
|
darope@0
|
754 |
|
|
darope@0
|
755 |
<hr><h3><tt><a name="EngineFprintf">EngineFprintf</a></tt></h3> |
|
darope@0
|
756 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
757 |
<dd><tt>void EngineFprintf(FILE *pfile, char *szFmt, ...);</tt><br> |
|
darope@0
|
758 |
<dd><tt>ENGINE_FPRINTF()</tt> |
|
darope@0
|
759 |
<p><i>comments:</i><br> |
|
darope@0
|
760 |
<blockquote> |
|
darope@0
|
761 |
. |
|
darope@0
|
762 |
</blockquote> |
|
darope@0
|
763 |
|
|
darope@0
|
764 |
<hr><h3><tt><a name="PvAllocEntPrivateData">PvAllocEntPrivateData</a></tt></h3> |
|
darope@0
|
765 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
766 |
<dd><tt>void *PvAllocEntPrivateData(edict_t *pEdict, long cb);</tt><br> |
|
darope@0
|
767 |
<dd><tt>ALLOC_PRIVATE()</tt> |
|
darope@0
|
768 |
<p><i>comments:</i><br> |
|
darope@0
|
769 |
<blockquote> |
|
darope@0
|
770 |
. |
|
darope@0
|
771 |
</blockquote> |
|
darope@0
|
772 |
|
|
darope@0
|
773 |
<hr><h3><tt><a name="PvEntPrivateData">PvEntPrivateData</a></tt></h3> |
|
darope@0
|
774 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
775 |
<dd><tt>void *PvEntPrivateData(edict_t *pEdict);</tt><br> |
|
darope@0
|
776 |
<dd><tt>GET_PRIVATE()</tt> |
|
darope@0
|
777 |
<p><i>comments:</i><br> |
|
darope@0
|
778 |
<blockquote> |
|
darope@0
|
779 |
Returns a pointer to the base class type of the given edict. For |
|
darope@0
|
780 |
instance: |
|
darope@0
|
781 |
<pre> |
|
darope@0
|
782 |
CBaseEntity *pPlayer=(CBaseEntity *)GET_PRIVATE(pEntity); |
|
darope@0
|
783 |
</pre> |
|
darope@0
|
784 |
</blockquote> |
|
darope@0
|
785 |
|
|
darope@0
|
786 |
<hr><h3><tt><a name="FreeEntPrivateData">FreeEntPrivateData</a></tt></h3> |
|
darope@0
|
787 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
788 |
<dd><tt>void FreeEntPrivateData(edict_t *pEdict);</tt><br> |
|
darope@0
|
789 |
<dd><tt>FREE_PRIVATE()</tt> |
|
darope@0
|
790 |
<p><i>comments:</i><br> |
|
darope@0
|
791 |
<blockquote> |
|
darope@0
|
792 |
. |
|
darope@0
|
793 |
</blockquote> |
|
darope@0
|
794 |
|
|
darope@0
|
795 |
<hr><h3><tt><a name="SzFromIndex">SzFromIndex</a></tt></h3> |
|
darope@0
|
796 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
797 |
<dd><tt>const char *SzFromIndex(int iString);</tt> |
|
darope@0
|
798 |
<p><i>comments:</i><br> |
|
darope@0
|
799 |
<blockquote> |
|
darope@0
|
800 |
. |
|
darope@0
|
801 |
</blockquote> |
|
darope@0
|
802 |
|
|
darope@0
|
803 |
<hr><h3><tt><a name="AllocString">AllocString</a></tt></h3> |
|
darope@0
|
804 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
805 |
<dd><tt>int AllocString(const char *szValue);</tt><br> |
|
darope@0
|
806 |
<dd><tt>ALLOC_STRING()</tt> |
|
darope@0
|
807 |
<p><i>comments:</i><br> |
|
darope@0
|
808 |
<blockquote> |
|
darope@0
|
809 |
. |
|
darope@0
|
810 |
</blockquote> |
|
darope@0
|
811 |
|
|
darope@0
|
812 |
<hr><h3><tt><a name="GetVarsOfEnt">GetVarsOfEnt</a></tt></h3> |
|
darope@0
|
813 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
814 |
<dd><tt>struct entvars_s *GetVarsOfEnt(edict_t *pEdict);</tt> |
|
darope@0
|
815 |
<p><i>comments:</i><br> |
|
darope@0
|
816 |
<blockquote> |
|
darope@0
|
817 |
. |
|
darope@0
|
818 |
</blockquote> |
|
darope@0
|
819 |
|
|
darope@0
|
820 |
<hr><h3><tt><a name="PEntityOfEntOffset">PEntityOfEntOffset</a></tt></h3> |
|
darope@0
|
821 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
822 |
<dd><tt>edict_t *PEntityOfEntOffset(int iEntOffset);</tt><br> |
|
darope@0
|
823 |
<dd><tt>ENT()</tt> |
|
darope@0
|
824 |
<p><i>comments:</i><br> |
|
darope@0
|
825 |
<blockquote> |
|
darope@0
|
826 |
. |
|
darope@0
|
827 |
</blockquote> |
|
darope@0
|
828 |
|
|
darope@0
|
829 |
<hr><h3><tt><a name="EntOffsetOfPEntity">EntOffsetOfPEntity</a></tt></h3> |
|
darope@0
|
830 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
831 |
<dd><tt>int EntOffsetOfPEntity(const edict_t *pEdict);</tt> |
|
darope@0
|
832 |
<p><i>comments:</i><br> |
|
darope@0
|
833 |
<blockquote> |
|
darope@0
|
834 |
. |
|
darope@0
|
835 |
</blockquote> |
|
darope@0
|
836 |
|
|
darope@0
|
837 |
<hr><h3><tt><a name="IndexOfEdict">IndexOfEdict</a></tt></h3> |
|
darope@0
|
838 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
839 |
<dd><tt>int IndexOfEdict(const edict_t *pEdict);</tt><br> |
|
darope@0
|
840 |
<dd><tt>ENTINDEX()</tt> |
|
darope@0
|
841 |
<p><i>comments:</i><br> |
|
darope@0
|
842 |
<blockquote> |
|
darope@0
|
843 |
Returns the server slot (ie 1 to maxplayers) of the given player edict. |
|
darope@0
|
844 |
</blockquote> |
|
darope@0
|
845 |
|
|
darope@0
|
846 |
<hr><h3><tt><a name="PEntityOfEntIndex">PEntityOfEntIndex</a></tt></h3> |
|
darope@0
|
847 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
848 |
<dd><tt>edict_t *PEntityOfEntIndex(int iEntIndex);</tt><br> |
|
darope@0
|
849 |
<dd><tt>INDEXENT()</tt> |
|
darope@0
|
850 |
<p><i>comments:</i><br> |
|
darope@0
|
851 |
<blockquote> |
|
darope@0
|
852 |
Returns the edict for the player in the given server slot (ie 1 to |
|
darope@0
|
853 |
maxplayers). |
|
darope@0
|
854 |
</blockquote> |
|
darope@0
|
855 |
|
|
darope@0
|
856 |
<hr><h3><tt><a name="FindEntityByVars">FindEntityByVars</a></tt></h3> |
|
darope@0
|
857 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
858 |
<dd><tt>edict_t *FindEntityByVars(struct entvars_s *pvars);</tt> |
|
darope@0
|
859 |
<p><i>comments:</i><br> |
|
darope@0
|
860 |
<blockquote> |
|
darope@0
|
861 |
. |
|
darope@0
|
862 |
</blockquote> |
|
darope@0
|
863 |
|
|
darope@0
|
864 |
<hr><h3><tt><a name="GetModelPtr">GetModelPtr</a></tt></h3> |
|
darope@0
|
865 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
866 |
<dd><tt>void *GetModelPtr(edict_t *pEdict);</tt><br> |
|
darope@0
|
867 |
<dd><tt>GET_MODEL_PTR()</tt> |
|
darope@0
|
868 |
<p><i>comments:</i><br> |
|
darope@0
|
869 |
<blockquote> |
|
darope@0
|
870 |
. |
|
darope@0
|
871 |
</blockquote> |
|
darope@0
|
872 |
|
|
darope@0
|
873 |
<hr><h3><tt><a name="RegUserMsg">RegUserMsg</a></tt></h3> |
|
darope@0
|
874 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
875 |
<dd><tt>int RegUserMsg(const char *pszName, int iSize);</tt><br> |
|
darope@0
|
876 |
<dd><tt>REG_USER_MSG()</tt> |
|
darope@0
|
877 |
<p><i>comments:</i><br> |
|
darope@0
|
878 |
<blockquote> |
|
darope@0
|
879 |
Register a network message type with the given name, and size if known. |
|
darope@0
|
880 |
Returns the number assigned for the network message, to be used with <a |
|
darope@0
|
881 |
href="#MessageBegin">MessageBegin</a>. It appears that message |
|
darope@0
|
882 |
ID's 1-63 are reserved for the Engine, and that GameDLL messages are |
|
darope@0
|
883 |
allocated IDs starting at 64. The SDK <tt>dlls/util.h</tt> appears to |
|
darope@0
|
884 |
define six Engine messages: |
|
darope@0
|
885 |
<ul> |
|
darope@0
|
886 |
<li> <tt>SVC_TEMPENTITY = 23</tt> |
|
darope@0
|
887 |
<li> <tt>SVC_INTERMISSION = 30</tt> |
|
darope@0
|
888 |
<li> <tt>SVC_CDTRACK = 32</tt> |
|
darope@0
|
889 |
<li> <tt>SVC_WEAPONANIM = 35</tt> |
|
darope@0
|
890 |
<li> <tt>SVC_ROOMTYPE = 37</tt> |
|
darope@0
|
891 |
<li> <tt>SVC_HLTV = 50</tt> |
|
darope@0
|
892 |
</ul> |
|
darope@0
|
893 |
</blockquote> |
|
darope@0
|
894 |
|
|
darope@0
|
895 |
<hr><h3><tt><a name="AnimationAutomove">AnimationAutomove</a></tt></h3> |
|
darope@0
|
896 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
897 |
<dd><tt>void AnimationAutomove(const edict_t *pEdict, float flTime);</tt> |
|
darope@0
|
898 |
<p><i>comments:</i><br> |
|
darope@0
|
899 |
<blockquote> |
|
darope@0
|
900 |
. |
|
darope@0
|
901 |
</blockquote> |
|
darope@0
|
902 |
|
|
darope@0
|
903 |
<hr><h3><tt><a name="GetBonePosition">GetBonePosition</a></tt></h3> |
|
darope@0
|
904 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
905 |
<dd><tt>void GetBonePosition(const edict_t *pEdict, int iBone, float *rgflOrigin, float *rgflAngles);</tt><br> |
|
darope@0
|
906 |
<dd><tt>GET_BONE_POSITION()</tt> |
|
darope@0
|
907 |
<p><i>comments:</i><br> |
|
darope@0
|
908 |
<blockquote> |
|
darope@0
|
909 |
. |
|
darope@0
|
910 |
</blockquote> |
|
darope@0
|
911 |
|
|
darope@0
|
912 |
<hr><h3><tt><a name="FunctionFromName">FunctionFromName</a></tt></h3> |
|
darope@0
|
913 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
914 |
<dd><tt>unsigned long FunctionFromName(const char *pName);</tt><br> |
|
darope@0
|
915 |
<dd><tt>FUNCTION_FROM_NAME()</tt> |
|
darope@0
|
916 |
<p><i>comments:</i><br> |
|
darope@0
|
917 |
<blockquote> |
|
darope@0
|
918 |
Apparently, this finds the given exported function name string in the |
|
darope@0
|
919 |
GameDLL, and returns a pointer to said function (much like unix dlsym |
|
darope@0
|
920 |
or win32 GetProcAddress?). This appears to be used in GameDLL code for |
|
darope@0
|
921 |
loading savegames, as the savegames contain names of exported functions |
|
darope@0
|
922 |
in the GameDLL. Basically, this is the opposite of <a |
|
darope@0
|
923 |
href="#NameForFunction">NameForFunction</a>. |
|
darope@0
|
924 |
</blockquote> |
|
darope@0
|
925 |
|
|
darope@0
|
926 |
<hr><h3><tt><a name="NameForFunction">NameForFunction</a></tt></h3> |
|
darope@0
|
927 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
928 |
<dd><tt>const char *NameForFunction(unsigned long function);</tt><br> |
|
darope@0
|
929 |
<dd><tt>NAME_FOR_FUNCTION()</tt> |
|
darope@0
|
930 |
<p><i>comments:</i><br> |
|
darope@0
|
931 |
<blockquote> |
|
darope@0
|
932 |
Basically, the opposite of <a |
|
darope@0
|
933 |
href="#FunctionFromName">FunctionFromName</a>. Finds the given |
|
darope@0
|
934 |
function pointer address in the GameDLL, and returns the string name |
|
darope@0
|
935 |
for the corresponding function. This appears to be used in GameDLL |
|
darope@0
|
936 |
code for saving games, taking known function pointers and converting |
|
darope@0
|
937 |
them to function name strings to be stored in the savegames, so that |
|
darope@0
|
938 |
they can be converted back to function pointers upon game load. |
|
darope@0
|
939 |
</blockquote> |
|
darope@0
|
940 |
|
|
darope@0
|
941 |
<hr><h3><tt><a name="ClientPrintf">ClientPrintf</a></tt></h3> |
|
darope@0
|
942 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
943 |
<dd><tt>void ClientPrintf(edict_t *pEdict, PRINT_TYPE ptype, const char *szMsg);</tt><br> |
|
darope@0
|
944 |
<dd><tt>CLIENT_PRINTF()</tt> |
|
darope@0
|
945 |
<blockquote><tt> |
|
darope@0
|
946 |
JOHN: engine callbacks so game DLL can print messages to individual |
|
darope@0
|
947 |
clients |
|
darope@0
|
948 |
</tt></blockquote> |
|
darope@0
|
949 |
<p><i>comments:</i><br> |
|
darope@0
|
950 |
<blockquote> |
|
darope@0
|
951 |
. |
|
darope@0
|
952 |
</blockquote> |
|
darope@0
|
953 |
|
|
darope@0
|
954 |
<hr><h3><tt><a name="ServerPrint">ServerPrint</a></tt></h3> |
|
darope@0
|
955 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
956 |
<dd><tt>void ServerPrint(const char *szMsg);</tt> |
|
darope@0
|
957 |
<p><i>comments:</i><br> |
|
darope@0
|
958 |
<blockquote> |
|
darope@0
|
959 |
Prints output to the server console. |
|
darope@0
|
960 |
</blockquote> |
|
darope@0
|
961 |
|
|
darope@0
|
962 |
<hr><h3><tt><a name="Cmd_Args">Cmd_Args</a></tt></h3> |
|
darope@0
|
963 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
964 |
<dd><tt>const char *Cmd_Args(void);</tt><br> |
|
darope@0
|
965 |
<dd><tt>CMD_ARGS()</tt> |
|
darope@0
|
966 |
<blockquote><tt> |
|
darope@0
|
967 |
these 3 added so game DLL can easily access client 'cmd' strings |
|
darope@0
|
968 |
</tt></blockquote> |
|
darope@0
|
969 |
<p><i>comments:</i><br> |
|
darope@0
|
970 |
<blockquote> |
|
darope@0
|
971 |
Returns the arguments for a command, as a single string. The command |
|
darope@0
|
972 |
string itself is not included, and must be queried with |
|
darope@0
|
973 |
<a href="#Cmd_Argv"><tt>CMD_ARGV(0)</tt></a>. For use in <a |
|
darope@0
|
974 |
href="dllapi_notes.html#ClientCommand">DLLAPI ClientCommand</a>, or in |
|
darope@0
|
975 |
the function provided to <a |
|
darope@0
|
976 |
href="#AddServerCommand">AddServerCommand</a>. |
|
darope@0
|
977 |
</blockquote> |
|
darope@0
|
978 |
|
|
darope@0
|
979 |
<hr><h3><tt><a name="Cmd_Argv">Cmd_Argv</a></tt></h3> |
|
darope@0
|
980 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
981 |
<dd><tt>const char *Cmd_Argv(int argc);</tt><br> |
|
darope@0
|
982 |
<dd><tt>CMD_ARGV()</tt> |
|
darope@0
|
983 |
<p><i>comments:</i><br> |
|
darope@0
|
984 |
<blockquote> |
|
darope@0
|
985 |
Returns the <i>nth</i> argument to the command. <tt>CMD_ARGV(0)</tt> |
|
darope@0
|
986 |
returns the command name itself. |
|
darope@0
|
987 |
</blockquote> |
|
darope@0
|
988 |
|
|
darope@0
|
989 |
<hr><h3><tt><a name="Cmd_Argc">Cmd_Argc</a></tt></h3> |
|
darope@0
|
990 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
991 |
<dd><tt>int Cmd_Argc(void);</tt><br> |
|
darope@0
|
992 |
<dd><tt>CMD_ARGC()</tt> |
|
darope@0
|
993 |
<p><i>comments:</i><br> |
|
darope@0
|
994 |
<blockquote> |
|
darope@0
|
995 |
Returns the number of arguments given to the command. |
|
darope@0
|
996 |
</blockquote> |
|
darope@0
|
997 |
|
|
darope@0
|
998 |
<hr><h3><tt><a name="GetAttachment">GetAttachment</a></tt></h3> |
|
darope@0
|
999 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1000 |
<dd><tt>void GetAttachment(const edict_t *pEdict, int iAttachment, float *rgflOrigin, float *rgflAngles);</tt><br> |
|
darope@0
|
1001 |
<dd><tt>GET_ATTACHMENT()</tt> |
|
darope@0
|
1002 |
<p><i>comments:</i><br> |
|
darope@0
|
1003 |
<blockquote> |
|
darope@0
|
1004 |
. |
|
darope@0
|
1005 |
</blockquote> |
|
darope@0
|
1006 |
|
|
darope@0
|
1007 |
<hr><h3><tt><a name="CRC32_Init">CRC32_Init</a></tt></h3> |
|
darope@0
|
1008 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1009 |
<dd><tt>void CRC32_Init(CRC32_t *pulCRC);</tt><br> |
|
darope@0
|
1010 |
<dd><tt>CRC32_INIT()</tt> |
|
darope@0
|
1011 |
<p><i>comments:</i><br> |
|
darope@0
|
1012 |
<blockquote> |
|
darope@0
|
1013 |
. |
|
darope@0
|
1014 |
</blockquote> |
|
darope@0
|
1015 |
|
|
darope@0
|
1016 |
<hr><h3><tt><a name="CRC32_ProcessBuffer">CRC32_ProcessBuffer</a></tt></h3> |
|
darope@0
|
1017 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1018 |
<dd><tt>void CRC32_ProcessBuffer(CRC32_t *pulCRC, void *p, int len);</tt><br> |
|
darope@0
|
1019 |
<dd><tt>CRC32_PROCESS_BUFFER()</tt> |
|
darope@0
|
1020 |
<p><i>comments:</i><br> |
|
darope@0
|
1021 |
<blockquote> |
|
darope@0
|
1022 |
. |
|
darope@0
|
1023 |
</blockquote> |
|
darope@0
|
1024 |
|
|
darope@0
|
1025 |
<hr><h3><tt><a name="CRC32_ProcessByte">CRC32_ProcessByte</a></tt></h3> |
|
darope@0
|
1026 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1027 |
<dd><tt>void CRC32_ProcessByte(CRC32_t *pulCRC, unsigned char ch);</tt><br> |
|
darope@0
|
1028 |
<dd><tt>CRC32_PROCESS_BYTE()</tt> |
|
darope@0
|
1029 |
<p><i>comments:</i><br> |
|
darope@0
|
1030 |
<blockquote> |
|
darope@0
|
1031 |
. |
|
darope@0
|
1032 |
</blockquote> |
|
darope@0
|
1033 |
|
|
darope@0
|
1034 |
<hr><h3><tt><a name="CRC32_Final">CRC32_Final</a></tt></h3> |
|
darope@0
|
1035 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1036 |
<dd><tt>CRC32_t CRC32_Final(CRC32_t pulCRC);</tt><br> |
|
darope@0
|
1037 |
<dd><tt>CRC32_FINAL()</tt> |
|
darope@0
|
1038 |
<p><i>comments:</i><br> |
|
darope@0
|
1039 |
<blockquote> |
|
darope@0
|
1040 |
. |
|
darope@0
|
1041 |
</blockquote> |
|
darope@0
|
1042 |
|
|
darope@0
|
1043 |
<hr><h3><tt><a name="RandomLong">RandomLong</a></tt></h3> |
|
darope@0
|
1044 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1045 |
<dd><tt>long RandomLong(long lLow, long lHigh);</tt><br> |
|
darope@0
|
1046 |
<dd><tt>RANDOM_LONG()</tt> |
|
darope@0
|
1047 |
<p><i>comments:</i><br> |
|
darope@0
|
1048 |
<blockquote> |
|
darope@0
|
1049 |
. |
|
darope@0
|
1050 |
</blockquote> |
|
darope@0
|
1051 |
|
|
darope@0
|
1052 |
<hr><h3><tt><a name="RandomFloat">RandomFloat</a></tt></h3> |
|
darope@0
|
1053 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1054 |
<dd><tt>float RandomFloat(float flLow, float flHigh);</tt><br> |
|
darope@0
|
1055 |
<dd><tt>RANDOM_FLOAT()</tt> |
|
darope@0
|
1056 |
<p><i>comments:</i><br> |
|
darope@0
|
1057 |
<blockquote> |
|
darope@0
|
1058 |
. |
|
darope@0
|
1059 |
</blockquote> |
|
darope@0
|
1060 |
|
|
darope@0
|
1061 |
<hr><h3><tt><a name="SetView">SetView</a></tt></h3> |
|
darope@0
|
1062 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1063 |
<dd><tt>void SetView(const edict_t *pClient, const edict_t *pViewent);</tt><br> |
|
darope@0
|
1064 |
<dd><tt>SET_VIEW() </tt> |
|
darope@0
|
1065 |
<p><i>comments:</i><br> |
|
darope@0
|
1066 |
<blockquote> |
|
darope@0
|
1067 |
. |
|
darope@0
|
1068 |
</blockquote> |
|
darope@0
|
1069 |
|
|
darope@0
|
1070 |
<hr><h3><tt><a name="Time">Time</a></tt></h3> |
|
darope@0
|
1071 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1072 |
<dd><tt>float Time(void);</tt> |
|
darope@0
|
1073 |
<p><i>comments:</i><br> |
|
darope@0
|
1074 |
<blockquote> |
|
darope@0
|
1075 |
. |
|
darope@0
|
1076 |
</blockquote> |
|
darope@0
|
1077 |
|
|
darope@0
|
1078 |
<hr><h3><tt><a name="CrosshairAngle">CrosshairAngle</a></tt></h3> |
|
darope@0
|
1079 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1080 |
<dd><tt>void CrosshairAngle(const edict_t *pClient, float pitch, float yaw);</tt><br> |
|
darope@0
|
1081 |
<dd><tt>SET_CROSSHAIRANGLE()</tt> |
|
darope@0
|
1082 |
<p><i>comments:</i><br> |
|
darope@0
|
1083 |
<blockquote> |
|
darope@0
|
1084 |
. |
|
darope@0
|
1085 |
</blockquote> |
|
darope@0
|
1086 |
|
|
darope@0
|
1087 |
<hr><h3><tt><a name="LoadFileForMe">LoadFileForMe</a></tt></h3> |
|
darope@0
|
1088 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1089 |
<dd><tt>byte * LoadFileForMe(char *filename, int *pLength);</tt><br> |
|
darope@0
|
1090 |
<dd><tt>LOAD_FILE_FOR_ME()</tt> |
|
darope@0
|
1091 |
<p><i>comments:</i><br> |
|
darope@0
|
1092 |
<blockquote> |
|
darope@0
|
1093 |
Opens the given filename (relative to the gamedir, or relative to the |
|
darope@0
|
1094 |
hlds directory, in that order), and returns a pointer to a byte array |
|
darope@0
|
1095 |
(character string) with the contents of the file. NULL-termination of |
|
darope@0
|
1096 |
the array indicates end of file. Length of the file in bytes is |
|
darope@0
|
1097 |
returned in the given int pointer. |
|
darope@0
|
1098 |
</blockquote> |
|
darope@0
|
1099 |
|
|
darope@0
|
1100 |
<hr><h3><tt><a name="FreeFile">FreeFile</a></tt></h3> |
|
darope@0
|
1101 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1102 |
<dd><tt>void FreeFile(void *buffer);</tt><br> |
|
darope@0
|
1103 |
<dd><tt>FREE_FILE()</tt> |
|
darope@0
|
1104 |
<p><i>comments:</i><br> |
|
darope@0
|
1105 |
<blockquote> |
|
darope@0
|
1106 |
Free the byte array of the given buffer which was returned by <a |
|
darope@0
|
1107 |
href="#LoadFileForMe">LoadFileForMe</a>. |
|
darope@0
|
1108 |
</blockquote> |
|
darope@0
|
1109 |
|
|
darope@0
|
1110 |
<hr><h3><tt><a name="EndSection">EndSection</a></tt></h3> |
|
darope@0
|
1111 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1112 |
<dd><tt>void EndSection(const char *pszSectionName);</tt> |
|
darope@0
|
1113 |
<blockquote><tt> |
|
darope@0
|
1114 |
trigger_endsection |
|
darope@0
|
1115 |
</tt></blockquote> |
|
darope@0
|
1116 |
<p><i>comments:</i><br> |
|
darope@0
|
1117 |
<blockquote> |
|
darope@0
|
1118 |
. |
|
darope@0
|
1119 |
</blockquote> |
|
darope@0
|
1120 |
|
|
darope@0
|
1121 |
<hr><h3><tt><a name="CompareFileTime">CompareFileTime</a></tt></h3> |
|
darope@0
|
1122 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1123 |
<dd><tt>int CompareFileTime(char *filename1, char *filename2, int *iCompare);</tt><br> |
|
darope@0
|
1124 |
<dd><tt>COMPARE_FILE_TIME()</tt> |
|
darope@0
|
1125 |
<p><i>comments:</i><br> |
|
darope@0
|
1126 |
<blockquote> |
|
darope@0
|
1127 |
. |
|
darope@0
|
1128 |
</blockquote> |
|
darope@0
|
1129 |
|
|
darope@0
|
1130 |
<hr><h3><tt><a name="GetGameDir">GetGameDir</a></tt></h3> |
|
darope@0
|
1131 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1132 |
<dd><tt>void GetGameDir(char *szGetGameDir);</tt><br> |
|
darope@0
|
1133 |
<dd><tt>GET_GAME_DIR() </tt> |
|
darope@0
|
1134 |
<p><i>comments:</i><br> |
|
darope@0
|
1135 |
<blockquote> |
|
darope@0
|
1136 |
Copies the pathname of the game directory into the given buffer. Note |
|
darope@0
|
1137 |
that there's no way to inform the engine how big the buffer is, so be |
|
darope@0
|
1138 |
forewarned. |
|
darope@0
|
1139 |
<p> |
|
darope@0
|
1140 |
Prior to HL 1.1.1.1 (CS 1.6), this gave the full pathname of the game |
|
darope@0
|
1141 |
directory, ie "/usr/local/half-life/cstrike" or |
|
darope@0
|
1142 |
"C:\Games\Half-Life\cstrike". Now, it is only the string passed to |
|
darope@0
|
1143 |
hlds as the argument to "-game", ie "cstrike". |
|
darope@0
|
1144 |
</blockquote> |
|
darope@0
|
1145 |
|
|
darope@0
|
1146 |
<hr><h3><tt><a name="Cvar_RegisterVariable">Cvar_RegisterVariable</a></tt></h3> |
|
darope@0
|
1147 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1148 |
<dd><tt>void Cvar_RegisterVariable(cvar_t *variable);</tt><br> |
|
darope@0
|
1149 |
<dd><tt>CVAR_CREATE()</tt> |
|
darope@0
|
1150 |
<p><i>comments:</i><br> |
|
darope@0
|
1151 |
<blockquote> |
|
darope@0
|
1152 |
. |
|
darope@0
|
1153 |
</blockquote> |
|
darope@0
|
1154 |
|
|
darope@0
|
1155 |
<hr><h3><tt><a name="FadeClientVolume">FadeClientVolume</a></tt></h3> |
|
darope@0
|
1156 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1157 |
<dd><tt>void FadeClientVolume(const edict_t *pEdict, int fadePercent, int fadeOutSeconds, int holdTime, int fadeInSeconds);</tt> |
|
darope@0
|
1158 |
<p><i>comments:</i><br> |
|
darope@0
|
1159 |
<blockquote> |
|
darope@0
|
1160 |
. |
|
darope@0
|
1161 |
</blockquote> |
|
darope@0
|
1162 |
|
|
darope@0
|
1163 |
<hr><h3><tt><a name="SetClientMaxspeed">SetClientMaxspeed</a></tt></h3> |
|
darope@0
|
1164 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1165 |
<dd><tt>void SetClientMaxspeed(const edict_t *pEdict, float fNewMaxspeed);</tt> |
|
darope@0
|
1166 |
<p><i>comments:</i><br> |
|
darope@0
|
1167 |
<blockquote> |
|
darope@0
|
1168 |
. |
|
darope@0
|
1169 |
</blockquote> |
|
darope@0
|
1170 |
|
|
darope@0
|
1171 |
<hr><h3><tt><a name="CreateFakeClient">CreateFakeClient</a></tt></h3> |
|
darope@0
|
1172 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1173 |
<dd><tt>edict_t * CreateFakeClient(const char *netname);</tt> |
|
darope@0
|
1174 |
<blockquote><tt> |
|
darope@0
|
1175 |
returns NULL if fake client can't be created |
|
darope@0
|
1176 |
</tt></blockquote> |
|
darope@0
|
1177 |
<p><i>comments:</i><br> |
|
darope@0
|
1178 |
<blockquote> |
|
darope@0
|
1179 |
Creates "bots" (?). |
|
darope@0
|
1180 |
</blockquote> |
|
darope@0
|
1181 |
|
|
darope@0
|
1182 |
<hr><h3><tt><a name="RunPlayerMove">RunPlayerMove</a></tt></h3> |
|
darope@0
|
1183 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1184 |
<dd><tt>void RunPlayerMove(edict_t *fakeclient, const float *viewangles, float forwardmove, float sidemove, float upmove, unsigned short buttons, byte impulse, byte msec);</tt> |
|
darope@0
|
1185 |
<p><i>comments:</i><br> |
|
darope@0
|
1186 |
<blockquote> |
|
darope@0
|
1187 |
. |
|
darope@0
|
1188 |
</blockquote> |
|
darope@0
|
1189 |
|
|
darope@0
|
1190 |
<hr><h3><tt><a name="NumberOfEntities">NumberOfEntities</a></tt></h3> |
|
darope@0
|
1191 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1192 |
<dd><tt>int NumberOfEntities(void);</tt><br> |
|
darope@0
|
1193 |
<dd><tt>NUMBER_OF_ENTITIES()</tt> |
|
darope@0
|
1194 |
<p><i>comments:</i><br> |
|
darope@0
|
1195 |
<blockquote> |
|
darope@0
|
1196 |
. |
|
darope@0
|
1197 |
</blockquote> |
|
darope@0
|
1198 |
|
|
darope@0
|
1199 |
<hr><h3><tt><a name="GetInfoKeyBuffer">GetInfoKeyBuffer</a></tt></h3> |
|
darope@0
|
1200 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1201 |
<dd><tt>char *GetInfoKeyBuffer(edict_t *e);</tt> |
|
darope@0
|
1202 |
<blockquote><tt> |
|
darope@0
|
1203 |
passing in NULL gets the serverinfo |
|
darope@0
|
1204 |
</tt></blockquote> |
|
darope@0
|
1205 |
<p><i>comments:</i><br> |
|
darope@0
|
1206 |
<blockquote> |
|
darope@0
|
1207 |
Returns the InfoKeyBuffer for the given edict. This is basically the |
|
darope@0
|
1208 |
fields from "setinfo" at the client console, and includes things like |
|
darope@0
|
1209 |
the player name. |
|
darope@0
|
1210 |
<p> |
|
darope@0
|
1211 |
The sourcecode comment ("<i>passing in NULL gets the serverinfo</i>") |
|
darope@0
|
1212 |
isn't entirely accurate. There appear to be two server-side info |
|
darope@0
|
1213 |
buffers available, "<b>serverinfo</b>" and "<b>localinfo</b>", both |
|
darope@0
|
1214 |
accessible from the console by those two commands, respectively. |
|
darope@0
|
1215 |
<p> |
|
darope@0
|
1216 |
Calling <tt>GetInfoKeyBuffer(NULL)</tt> will return the |
|
darope@0
|
1217 |
<b>localinfo</b> buffer. Calling |
|
darope@0
|
1218 |
<tt>GetInfoKeyBuffer(PEntityOfEntIndex(0))</tt>, ie passing the entity |
|
darope@0
|
1219 |
of slot 0, will return the <b>serverinfo</b> buffer. |
|
darope@0
|
1220 |
</blockquote> |
|
darope@0
|
1221 |
|
|
darope@0
|
1222 |
<hr><h3><tt><a name="InfoKeyValue">InfoKeyValue</a></tt></h3> |
|
darope@0
|
1223 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1224 |
<dd><tt>char *InfoKeyValue(char *infobuffer, char *key);</tt> |
|
darope@0
|
1225 |
<p><i>comments:</i><br> |
|
darope@0
|
1226 |
<blockquote> |
|
darope@0
|
1227 |
Returns the value for the given key in the given InfoKeyBuffer. |
|
darope@0
|
1228 |
</blockquote> |
|
darope@0
|
1229 |
|
|
darope@0
|
1230 |
<hr><h3><tt><a name="SetKeyValue">SetKeyValue</a></tt></h3> |
|
darope@0
|
1231 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1232 |
<dd><tt>void SetKeyValue(char *infobuffer, char *key, char *value);</tt> |
|
darope@0
|
1233 |
<p><i>comments:</i><br> |
|
darope@0
|
1234 |
<blockquote> |
|
darope@0
|
1235 |
Adds or sets a key/value pair in the given InfoKeyBuffer. Appears to |
|
darope@0
|
1236 |
work for only server info, and not client info. For clients, use <a |
|
darope@0
|
1237 |
href="#SetClientKeyValue">SetClientKeyValue</a>. |
|
darope@0
|
1238 |
</blockquote> |
|
darope@0
|
1239 |
|
|
darope@0
|
1240 |
<hr><h3><tt><a name="SetClientKeyValue">SetClientKeyValue</a></tt></h3> |
|
darope@0
|
1241 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1242 |
<dd><tt>void SetClientKeyValue(int clientIndex, char *infobuffer, char *key, char *value);</tt> |
|
darope@0
|
1243 |
<p><i>comments:</i><br> |
|
darope@0
|
1244 |
<blockquote> |
|
darope@0
|
1245 |
Adds or sets a key/value pair in a client's InfoKeyBuffer, by server |
|
darope@0
|
1246 |
slot (ie 1 to maxplayers). |
|
darope@0
|
1247 |
</blockquote> |
|
darope@0
|
1248 |
|
|
darope@0
|
1249 |
<hr><h3><tt><a name="IsMapValid">IsMapValid</a></tt></h3> |
|
darope@0
|
1250 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1251 |
<dd><tt>int IsMapValid(char *filename);</tt><br> |
|
darope@0
|
1252 |
<dd><tt>IS_MAP_VALID()</tt> |
|
darope@0
|
1253 |
<p><i>comments:</i><br> |
|
darope@0
|
1254 |
<blockquote> |
|
darope@0
|
1255 |
. |
|
darope@0
|
1256 |
</blockquote> |
|
darope@0
|
1257 |
|
|
darope@0
|
1258 |
<hr><h3><tt><a name="StaticDecal">StaticDecal</a></tt></h3> |
|
darope@0
|
1259 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1260 |
<dd><tt>void StaticDecal(const float *origin, int decalIndex, int entityIndex, int modelIndex);</tt> |
|
darope@0
|
1261 |
<p><i>comments:</i><br> |
|
darope@0
|
1262 |
<blockquote> |
|
darope@0
|
1263 |
. |
|
darope@0
|
1264 |
</blockquote> |
|
darope@0
|
1265 |
|
|
darope@0
|
1266 |
<hr><h3><tt><a name="PrecacheGeneric">PrecacheGeneric</a></tt></h3> |
|
darope@0
|
1267 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1268 |
<dd><tt>int PrecacheGeneric(char *s);</tt><br> |
|
darope@0
|
1269 |
<dd><tt>PRECACHE_GENERIC()</tt> |
|
darope@0
|
1270 |
<p><i>comments:</i><br> |
|
darope@0
|
1271 |
<blockquote> |
|
darope@0
|
1272 |
. |
|
darope@0
|
1273 |
</blockquote> |
|
darope@0
|
1274 |
|
|
darope@0
|
1275 |
<hr><h3><tt><a name="GetPlayerUserId">GetPlayerUserId</a></tt></h3> |
|
darope@0
|
1276 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1277 |
<dd><tt>int GetPlayerUserId(edict_t *e);</tt><br> |
|
darope@0
|
1278 |
<dd><tt>GETPLAYERUSERID() |
|
darope@0
|
1279 |
<blockquote><tt> |
|
darope@0
|
1280 |
returns the server assigned userid for this player. useful for logging |
|
darope@0
|
1281 |
frags, etc. returns -1 if the edict couldn't be found in the list of |
|
darope@0
|
1282 |
clients |
|
darope@0
|
1283 |
</tt></blockquote> |
|
darope@0
|
1284 |
<p><i>comments:</i><br> |
|
darope@0
|
1285 |
<blockquote> |
|
darope@0
|
1286 |
Returns the session userid for the given player edict. As of server |
|
darope@0
|
1287 |
x106, this is constant for the life of the player connection, and |
|
darope@0
|
1288 |
unique for the life of the server process. Each time a client |
|
darope@0
|
1289 |
connects, they are given a userid of 1 plus the userid of the previous |
|
darope@0
|
1290 |
connecting client. When the server starts/restarts, the server starts |
|
darope@0
|
1291 |
again at userid 1. |
|
darope@0
|
1292 |
</blockquote> |
|
darope@0
|
1293 |
|
|
darope@0
|
1294 |
<hr><h3><tt><a name="BuildSoundMsg">BuildSoundMsg</a></tt></h3> |
|
darope@0
|
1295 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1296 |
<dd><tt>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);</tt><br> |
|
darope@0
|
1297 |
<dd><tt>BUILD_SOUND_MSG()</tt> |
|
darope@0
|
1298 |
<p><i>comments:</i><br> |
|
darope@0
|
1299 |
<blockquote> |
|
darope@0
|
1300 |
. |
|
darope@0
|
1301 |
</blockquote> |
|
darope@0
|
1302 |
|
|
darope@0
|
1303 |
<hr><h3><tt><a name="IsDedicatedServer">IsDedicatedServer</a></tt></h3> |
|
darope@0
|
1304 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1305 |
<dd><tt>int IsDedicatedServer(void);</tt><br> |
|
darope@0
|
1306 |
<dd><tt>IS_DEDICATED_SERVER() |
|
darope@0
|
1307 |
<blockquote><tt> |
|
darope@0
|
1308 |
is this a dedicated server? |
|
darope@0
|
1309 |
</tt></blockquote> |
|
darope@0
|
1310 |
<p><i>comments:</i><br> |
|
darope@0
|
1311 |
<blockquote> |
|
darope@0
|
1312 |
. |
|
darope@0
|
1313 |
</blockquote> |
|
darope@0
|
1314 |
|
|
darope@0
|
1315 |
<hr><h3><tt><a name="CVarGetPointer">CVarGetPointer</a></tt></h3> |
|
darope@0
|
1316 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1317 |
<dd><tt>cvar_t *CVarGetPointer(const char *szVarName);</tt><br> |
|
darope@0
|
1318 |
<dd><tt>CVAR_GET_POINTER()</tt> |
|
darope@0
|
1319 |
<p><i>comments:</i><br> |
|
darope@0
|
1320 |
<blockquote> |
|
darope@0
|
1321 |
Returns a pointer to a <tt>cvar_t</tt> struct for the given cvar |
|
darope@0
|
1322 |
(server variable) name. |
|
darope@0
|
1323 |
</blockquote> |
|
darope@0
|
1324 |
|
|
darope@0
|
1325 |
<hr><h3><tt><a name="GetPlayerWONId">GetPlayerWONId</a></tt></h3> |
|
darope@0
|
1326 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1327 |
<dd><tt>unsigned int GetPlayerWONId(edict_t *e);</tt> |
|
darope@0
|
1328 |
<dd><tt>GETPLAYERWONID()</tt> |
|
darope@0
|
1329 |
<blockquote><tt> |
|
darope@0
|
1330 |
returns the server assigned WONid for this player. useful for logging |
|
darope@0
|
1331 |
frags, etc. returns -1 if the edict couldn't be found in the list of |
|
darope@0
|
1332 |
clients |
|
darope@0
|
1333 |
</tt></blockquote> |
|
darope@0
|
1334 |
<p><i>comments:</i><br> |
|
darope@0
|
1335 |
<blockquote> |
|
darope@0
|
1336 |
Returns the WON id for the given player edict. As of server x106, this |
|
darope@0
|
1337 |
should be unique per client CD KEY, and should be consistent across all |
|
darope@0
|
1338 |
WON auth servers. |
|
darope@0
|
1339 |
</blockquote> |
|
darope@0
|
1340 |
|
|
darope@0
|
1341 |
<hr><h3><tt><a name="Info_RemoveKey">Info_RemoveKey</a></tt></h3> |
|
darope@0
|
1342 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1343 |
<dd><tt>void Info_RemoveKey(char *s, const char *key);</tt> |
|
darope@0
|
1344 |
<blockquote><tt> |
|
darope@0
|
1345 |
YWB 8/1/99 TFF Physics additions |
|
darope@0
|
1346 |
</tt></blockquote> |
|
darope@0
|
1347 |
<p><i>comments:</i><br> |
|
darope@0
|
1348 |
<blockquote> |
|
darope@0
|
1349 |
. |
|
darope@0
|
1350 |
</blockquote> |
|
darope@0
|
1351 |
|
|
darope@0
|
1352 |
<hr><h3><tt><a name="GetPhysicsKeyValue">GetPhysicsKeyValue</a></tt></h3> |
|
darope@0
|
1353 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1354 |
<dd><tt>const char *GetPhysicsKeyValue(const edict_t *pClient, const char *key);</tt> |
|
darope@0
|
1355 |
<p><i>comments:</i><br> |
|
darope@0
|
1356 |
<blockquote> |
|
darope@0
|
1357 |
. |
|
darope@0
|
1358 |
</blockquote> |
|
darope@0
|
1359 |
|
|
darope@0
|
1360 |
<hr><h3><tt><a name="SetPhysicsKeyValue">SetPhysicsKeyValue</a></tt></h3> |
|
darope@0
|
1361 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1362 |
<dd><tt>void SetPhysicsKeyValue(const edict_t *pClient, const char *key, const char *value);</tt> |
|
darope@0
|
1363 |
<p><i>comments:</i><br> |
|
darope@0
|
1364 |
<blockquote> |
|
darope@0
|
1365 |
. |
|
darope@0
|
1366 |
</blockquote> |
|
darope@0
|
1367 |
|
|
darope@0
|
1368 |
<hr><h3><tt><a name="GetPhysicsInfoString">GetPhysicsInfoString</a></tt></h3> |
|
darope@0
|
1369 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1370 |
<dd><tt>const char *GetPhysicsInfoString(const edict_t *pClient);</tt><br> |
|
darope@0
|
1371 |
<dd><tt>ENGINE_GETPHYSINFO()</tt> |
|
darope@0
|
1372 |
<p><i>comments:</i><br> |
|
darope@0
|
1373 |
<blockquote> |
|
darope@0
|
1374 |
. |
|
darope@0
|
1375 |
</blockquote> |
|
darope@0
|
1376 |
|
|
darope@0
|
1377 |
<hr><h3><tt><a name="PrecacheEvent">PrecacheEvent</a></tt></h3> |
|
darope@0
|
1378 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1379 |
<dd><tt>unsigned short PrecacheEvent(int type, const char *psz);</tt><br> |
|
darope@0
|
1380 |
<dd><tt>PRECACHE_EVENT()</tt> |
|
darope@0
|
1381 |
<p><i>comments:</i><br> |
|
darope@0
|
1382 |
<blockquote> |
|
darope@0
|
1383 |
. |
|
darope@0
|
1384 |
</blockquote> |
|
darope@0
|
1385 |
|
|
darope@0
|
1386 |
<hr><h3><tt><a name="PlaybackEvent">PlaybackEvent</a></tt></h3> |
|
darope@0
|
1387 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1388 |
<dd><tt>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);</tt><br> |
|
darope@0
|
1389 |
<dd><tt>PLAYBACK_EVENT_FULL()</tt> |
|
darope@0
|
1390 |
<p><i>comments:</i><br> |
|
darope@0
|
1391 |
<blockquote> |
|
darope@0
|
1392 |
. |
|
darope@0
|
1393 |
</blockquote> |
|
darope@0
|
1394 |
|
|
darope@0
|
1395 |
<hr><h3><tt><a name="SetFatPVS">SetFatPVS</a></tt></h3> |
|
darope@0
|
1396 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1397 |
<dd><tt>unsigned char *SetFatPVS(float *org);</tt><br> |
|
darope@0
|
1398 |
<dd><tt>ENGINE_SET_PVS()</tt> |
|
darope@0
|
1399 |
<p><i>comments:</i><br> |
|
darope@0
|
1400 |
<blockquote> |
|
darope@0
|
1401 |
. |
|
darope@0
|
1402 |
</blockquote> |
|
darope@0
|
1403 |
|
|
darope@0
|
1404 |
<hr><h3><tt><a name="SetFatPAS">SetFatPAS</a></tt></h3> |
|
darope@0
|
1405 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1406 |
<dd><tt>unsigned char *SetFatPAS(float *org);</tt><br> |
|
darope@0
|
1407 |
<dd><tt>ENGINE_SET_PAS()</tt> |
|
darope@0
|
1408 |
<p><i>comments:</i><br> |
|
darope@0
|
1409 |
<blockquote> |
|
darope@0
|
1410 |
. |
|
darope@0
|
1411 |
</blockquote> |
|
darope@0
|
1412 |
|
|
darope@0
|
1413 |
<hr><h3><tt><a name="CheckVisibility">CheckVisibility</a></tt></h3> |
|
darope@0
|
1414 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1415 |
<dd><tt>int CheckVisibility(const edict_t *entity, unsigned char *pset);</tt><br> |
|
darope@0
|
1416 |
<dd><tt>ENGINE_CHECK_VISIBILITY()</tt> |
|
darope@0
|
1417 |
<p><i>comments:</i><br> |
|
darope@0
|
1418 |
<blockquote> |
|
darope@0
|
1419 |
. |
|
darope@0
|
1420 |
</blockquote> |
|
darope@0
|
1421 |
|
|
darope@0
|
1422 |
<hr><h3><tt><a name="DeltaSetField">DeltaSetField</a></tt></h3> |
|
darope@0
|
1423 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1424 |
<dd><tt>void DeltaSetField(struct delta_s *pFields, const char *fieldname);</tt><br> |
|
darope@0
|
1425 |
<dd><tt>DELTA_SET()</tt> |
|
darope@0
|
1426 |
<p><i>comments:</i><br> |
|
darope@0
|
1427 |
<blockquote> |
|
darope@0
|
1428 |
. |
|
darope@0
|
1429 |
</blockquote> |
|
darope@0
|
1430 |
|
|
darope@0
|
1431 |
<hr><h3><tt><a name="DeltaUnsetField">DeltaUnsetField</a></tt></h3> |
|
darope@0
|
1432 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1433 |
<dd><tt>void DeltaUnsetField(struct delta_s *pFields, const char *fieldname);</tt><br> |
|
darope@0
|
1434 |
<dd><tt>DELTA_UNSET()</tt> |
|
darope@0
|
1435 |
<p><i>comments:</i><br> |
|
darope@0
|
1436 |
<blockquote> |
|
darope@0
|
1437 |
. |
|
darope@0
|
1438 |
</blockquote> |
|
darope@0
|
1439 |
|
|
darope@0
|
1440 |
<hr><h3><tt><a name="DeltaAddEncoder">DeltaAddEncoder</a></tt></h3> |
|
darope@0
|
1441 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1442 |
<dd><tt>void DeltaAddEncoder(char *name, void (*conditionalencode)( struct delta_s *pFields, const unsigned char *from, const unsigned char *to) );</tt><br> |
|
darope@0
|
1443 |
<dd><tt>DELTA_ADDENCODER()</tt> |
|
darope@0
|
1444 |
<p><i>comments:</i><br> |
|
darope@0
|
1445 |
<blockquote> |
|
darope@0
|
1446 |
. |
|
darope@0
|
1447 |
</blockquote> |
|
darope@0
|
1448 |
|
|
darope@0
|
1449 |
<hr><h3><tt><a name="GetCurrentPlayer">GetCurrentPlayer</a></tt></h3> |
|
darope@0
|
1450 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1451 |
<dd><tt>int GetCurrentPlayer(void);</tt><br> |
|
darope@0
|
1452 |
<dd><tt>ENGINE_CURRENT_PLAYER()</tt> |
|
darope@0
|
1453 |
<p><i>comments:</i><br> |
|
darope@0
|
1454 |
<blockquote> |
|
darope@0
|
1455 |
. |
|
darope@0
|
1456 |
</blockquote> |
|
darope@0
|
1457 |
|
|
darope@0
|
1458 |
<hr><h3><tt><a name="CanSkipPlayer">CanSkipPlayer</a></tt></h3> |
|
darope@0
|
1459 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1460 |
<dd><tt>int CanSkipPlayer(const edict_t *player);</tt><br> |
|
darope@0
|
1461 |
<dd><tt>ENGINE_CANSKIP()</tt> |
|
darope@0
|
1462 |
<p><i>comments:</i><br> |
|
darope@0
|
1463 |
<blockquote> |
|
darope@0
|
1464 |
. |
|
darope@0
|
1465 |
</blockquote> |
|
darope@0
|
1466 |
|
|
darope@0
|
1467 |
<hr><h3><tt><a name="DeltaFindField">DeltaFindField</a></tt></h3> |
|
darope@0
|
1468 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1469 |
<dd><tt>int DeltaFindField(struct delta_s *pFields, const char *fieldname);</tt><br> |
|
darope@0
|
1470 |
<dd><tt>DELTA_FINDFIELD()</tt> |
|
darope@0
|
1471 |
<p><i>comments:</i><br> |
|
darope@0
|
1472 |
<blockquote> |
|
darope@0
|
1473 |
. |
|
darope@0
|
1474 |
</blockquote> |
|
darope@0
|
1475 |
|
|
darope@0
|
1476 |
<hr><h3><tt><a name="DeltaSetFieldByIndex">DeltaSetFieldByIndex</a></tt></h3> |
|
darope@0
|
1477 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1478 |
<dd><tt>void DeltaSetFieldByIndex(struct delta_s *pFields, int fieldNumber);</tt><br> |
|
darope@0
|
1479 |
<dd><tt>DELTA_SETBYINDEX()</tt> |
|
darope@0
|
1480 |
<p><i>comments:</i><br> |
|
darope@0
|
1481 |
<blockquote> |
|
darope@0
|
1482 |
. |
|
darope@0
|
1483 |
</blockquote> |
|
darope@0
|
1484 |
|
|
darope@0
|
1485 |
<hr><h3><tt><a name="DeltaUnsetFieldByIndex">DeltaUnsetFieldByIndex</a></tt></h3> |
|
darope@0
|
1486 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1487 |
<dd><tt>void DeltaUnsetFieldByIndex(struct delta_s *pFields, int fieldNumber);</tt><br> |
|
darope@0
|
1488 |
<dd><tt>DELTA_UNSETBYINDEX()</tt> |
|
darope@0
|
1489 |
<p><i>comments:</i><br> |
|
darope@0
|
1490 |
<blockquote> |
|
darope@0
|
1491 |
. |
|
darope@0
|
1492 |
</blockquote> |
|
darope@0
|
1493 |
|
|
darope@0
|
1494 |
<hr><h3><tt><a name="SetGroupMask">SetGroupMask</a></tt></h3> |
|
darope@0
|
1495 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1496 |
<dd><tt>void SetGroupMask(int mask, int op);</tt><br> |
|
darope@0
|
1497 |
<dd><tt>ENGINE_SETGROUPMASK()</tt> |
|
darope@0
|
1498 |
<p><i>comments:</i><br> |
|
darope@0
|
1499 |
<blockquote> |
|
darope@0
|
1500 |
. |
|
darope@0
|
1501 |
</blockquote> |
|
darope@0
|
1502 |
|
|
darope@0
|
1503 |
<hr><h3><tt><a name="CreateInstancedBaseline">CreateInstancedBaseline</a></tt></h3> |
|
darope@0
|
1504 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1505 |
<dd><tt>int CreateInstancedBaseline(int classname, struct entity_state_s *baseline);</tt><br> |
|
darope@0
|
1506 |
<dd><tt>ENGINE_INSTANCE_BASELINE()</tt> |
|
darope@0
|
1507 |
<p><i>comments:</i><br> |
|
darope@0
|
1508 |
<blockquote> |
|
darope@0
|
1509 |
. |
|
darope@0
|
1510 |
</blockquote> |
|
darope@0
|
1511 |
|
|
darope@0
|
1512 |
<hr><h3><tt><a name="Cvar_DirectSet">Cvar_DirectSet</a></tt></h3> |
|
darope@0
|
1513 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1514 |
<dd><tt>void Cvar_DirectSet(struct cvar_s *var, char *value);</tt> |
|
darope@0
|
1515 |
<p><i>comments:</i><br> |
|
darope@0
|
1516 |
<blockquote> |
|
darope@0
|
1517 |
. |
|
darope@0
|
1518 |
</blockquote> |
|
darope@0
|
1519 |
|
|
darope@0
|
1520 |
<hr><h3><tt><a name="ForceUnmodified">ForceUnmodified</a></tt></h3> |
|
darope@0
|
1521 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1522 |
<dd><tt>void ForceUnmodified(FORCE_TYPE type, float *mins, float *maxs, const char *filename);</tt><br> |
|
darope@0
|
1523 |
<dd><tt>ENGINE_FORCE_UNMODIFIED()</tt> |
|
darope@0
|
1524 |
<blockquote><tt> |
|
darope@0
|
1525 |
Forces the client and server to be running with the same version of the |
|
darope@0
|
1526 |
specified file ( e.g., a player model ). Calling this has no effect in |
|
darope@0
|
1527 |
single player. |
|
darope@0
|
1528 |
</tt></blockquote> |
|
darope@0
|
1529 |
<p><i>comments:</i><br> |
|
darope@0
|
1530 |
<blockquote> |
|
darope@0
|
1531 |
. |
|
darope@0
|
1532 |
</blockquote> |
|
darope@0
|
1533 |
|
|
darope@0
|
1534 |
<hr><h3><tt><a name="GetPlayerStats">GetPlayerStats</a></tt></h3> |
|
darope@0
|
1535 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1536 |
<dd><tt>void GetPlayerStats(const edict_t *pClient, int *ping, int *packet_loss);</tt><br> |
|
darope@0
|
1537 |
<dd><tt>PLAYER_CNX_STATS()</tt> |
|
darope@0
|
1538 |
<p><i>comments:</i><br> |
|
darope@0
|
1539 |
<blockquote> |
|
darope@0
|
1540 |
. |
|
darope@0
|
1541 |
</blockquote> |
|
darope@0
|
1542 |
|
|
darope@0
|
1543 |
<hr><h3><tt><a name="AddServerCommand">AddServerCommand</a></tt></h3> |
|
darope@0
|
1544 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1545 |
<dd><tt>void AddServerCommand(char *cmd_name, void (*function) (void));</tt> |
|
darope@0
|
1546 |
<p><i>comments:</i><br> |
|
darope@0
|
1547 |
<blockquote> |
|
darope@0
|
1548 |
Registers a new server console command. When the given command string |
|
darope@0
|
1549 |
is typed at the console, the given function will be called. Arguments |
|
darope@0
|
1550 |
for the command can be retrieved in the function with |
|
darope@0
|
1551 |
<a href="#Cmd_Args">Cmd_Args</a>, <a href="#Cmd_Argv">Cmd_Argv</a>, and |
|
darope@0
|
1552 |
<a href="#Cmd_Argc">Cmd_Argc</a>. |
|
darope@0
|
1553 |
</blockquote> |
|
darope@0
|
1554 |
|
|
darope@0
|
1555 |
<hr><h3><tt><a name="Voice_GetClientListening">Voice_GetClientListening</a></tt></h3> |
|
darope@0
|
1556 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1557 |
<dd><tt>qboolean Voice_GetClientListening)(int iReceiver, int iSender);</tt> |
|
darope@0
|
1558 |
<blockquote><tt> |
|
darope@0
|
1559 |
For voice communications, set which clients hear each other. NOTE: these |
|
darope@0
|
1560 |
functions take player entity indices (starting at 1). |
|
darope@0
|
1561 |
</tt></blockquote> |
|
darope@0
|
1562 |
<p><i>comments:</i><br> |
|
darope@0
|
1563 |
<blockquote> |
|
darope@0
|
1564 |
Added in SDK 2.2. |
|
darope@0
|
1565 |
</blockquote> |
|
darope@0
|
1566 |
|
|
darope@0
|
1567 |
<hr><h3><tt><a name="Voice_SetClientListening">Voice_SetClientListening</a></tt></h3> |
|
darope@0
|
1568 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1569 |
<dd><tt>qboolean Voice_SetClientListening)(int iReceiver, int iSender, qboolean bListen);</tt> |
|
darope@0
|
1570 |
<blockquote><tt> |
|
darope@0
|
1571 |
For voice communications, set which clients hear each other. NOTE: these |
|
darope@0
|
1572 |
functions take player entity indices (starting at 1). |
|
darope@0
|
1573 |
</tt></blockquote> |
|
darope@0
|
1574 |
<p><i>comments:</i><br> |
|
darope@0
|
1575 |
<blockquote> |
|
darope@0
|
1576 |
Added in SDK 2.2. |
|
darope@0
|
1577 |
</blockquote> |
|
darope@0
|
1578 |
|
|
darope@0
|
1579 |
<hr><h3><tt><a name="GetPlayerAuthId">GetPlayerAuthId</a></tt></h3> |
|
darope@0
|
1580 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1581 |
<dd><tt>const char *GetPlayerAuthId(edict_t *e);</tt> |
|
darope@0
|
1582 |
<p><i>From Eric Smith <[email protected]> on <a href="http://list.valvesoftware.com/pipermail/hlcoders/2002-April/002865.html">hlcoders</a>:</i> |
|
darope@0
|
1583 |
<blockquote><tt> |
|
darope@0
|
1584 |
The AuthID is a way for applications/mods to get the Authentication ID |
|
darope@0
|
1585 |
(uniqueID) for a player. The AuthID can be a WonID or a SteamID. The |
|
darope@0
|
1586 |
function I've written returns the AuthID as a string. Calling <a |
|
darope@0
|
1587 |
href="#GetPlayerWONId">GetPlayerWONId</a> will still work for Non-Steam |
|
darope@0
|
1588 |
players just like it always has. If applications/mods want to get a |
|
darope@0
|
1589 |
jump start on getting ready to support Steam players, then they can |
|
darope@0
|
1590 |
start using GetPlayerAuthId, which will still work for Non-Steam |
|
darope@0
|
1591 |
players, but it will give the WonID as a string instead of an unsigned |
|
darope@0
|
1592 |
int. |
|
darope@0
|
1593 |
</tt></blockquote> |
|
darope@0
|
1594 |
<p><i>From Eric Smith <[email protected]> on <a href="http://list.valvesoftware.com/pipermail/servertest/2002-April/000567.html">servertest:</a></i> |
|
darope@0
|
1595 |
<blockquote><tt> |
|
darope@0
|
1596 |
Only clients playing via Steam will have SteamIDs. Clients who are not |
|
darope@0
|
1597 |
using Steam will still have WonIDs (just like they always have). The |
|
darope@0
|
1598 |
server now supports WonIDs\SteamIDs and banning using either of them. |
|
darope@0
|
1599 |
WonIDs have not changed. SteamIDs use the format: STEAM_<#>:<#> where |
|
darope@0
|
1600 |
<#> is replaced by numbers. An example SteamID would be |
|
darope@0
|
1601 |
"STEAM_0:94534". |
|
darope@0
|
1602 |
</tt></blockquote> |
|
darope@0
|
1603 |
<p><i>From Eric Smith <[email protected]> on <a href="http://list.valvesoftware.com/pipermail/hlcoders/2002-April/002925.html">hlcoders:</a></i> |
|
darope@0
|
1604 |
<blockquote><tt> |
|
darope@0
|
1605 |
This function will now return the string "BOT" as the AuthID for fake |
|
darope@0
|
1606 |
clients. |
|
darope@0
|
1607 |
</tt></blockquote> |
|
darope@0
|
1608 |
<p><i>comments:</i><br> |
|
darope@0
|
1609 |
<blockquote> |
|
darope@249
|
1610 |
Added for HL 1109; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) |
|
darope@0
|
1611 |
</blockquote> |
|
darope@0
|
1612 |
|
|
darope@0
|
1613 |
<hr><h3><tt><a name="SequenceGet">SequenceGet</a></tt></h3> |
|
darope@0
|
1614 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1615 |
<dd><tt>void *SequenceGet(const char *fileName, const char *entryName);</tt> |
|
darope@0
|
1616 |
<p><i>comments:</i><br> |
|
darope@0
|
1617 |
<blockquote> |
|
darope@249
|
1618 |
Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) |
|
darope@0
|
1619 |
</blockquote> |
|
darope@0
|
1620 |
|
|
darope@0
|
1621 |
<hr><h3><tt><a name="SequencePickSentence">SequencePickSentence</a></tt></h3> |
|
darope@0
|
1622 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1623 |
<dd><tt>void *SequencePickSentence(const char *groupName, int pickMethod, |
|
darope@0
|
1624 |
int *picked);</tt> |
|
darope@0
|
1625 |
<p><i>comments:</i><br> |
|
darope@0
|
1626 |
<blockquote> |
|
darope@249
|
1627 |
Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) |
|
darope@0
|
1628 |
</blockquote> |
|
darope@0
|
1629 |
|
|
darope@0
|
1630 |
<hr><h3><tt><a name="GetFileSize">GetFileSize</a></tt></h3> |
|
darope@0
|
1631 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1632 |
<dd><tt>int GetFileSize(char *filename);</tt> |
|
darope@0
|
1633 |
<p><i>comments:</i><br> |
|
darope@0
|
1634 |
<blockquote> |
|
darope@249
|
1635 |
Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) |
|
darope@0
|
1636 |
</blockquote> |
|
darope@0
|
1637 |
|
|
darope@0
|
1638 |
<hr><h3><tt><a name="GetApproxWavePlayLen">GetApproxWavePlayLen</a></tt></h3> |
|
darope@0
|
1639 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1640 |
<dd><tt>unsigned int GetApproxWavePlayLen(const char *filepath);</tt> |
|
darope@0
|
1641 |
<p><i>comments:</i><br> |
|
darope@0
|
1642 |
<blockquote> |
|
darope@249
|
1643 |
Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) |
|
darope@0
|
1644 |
</blockquote> |
|
darope@0
|
1645 |
|
|
darope@0
|
1646 |
<hr><h3><tt><a name="IsCareerMatch">IsCareerMatch</a></tt></h3> |
|
darope@0
|
1647 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1648 |
<dd><tt>int IsCareerMatch(void);</tt> |
|
darope@0
|
1649 |
<p><i>comments:</i><br> |
|
darope@0
|
1650 |
<blockquote> |
|
darope@249
|
1651 |
Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) |
|
darope@0
|
1652 |
</blockquote> |
|
darope@0
|
1653 |
|
|
darope@0
|
1654 |
<hr><h3><tt><a name="GetLocalizedStringLength">GetLocalizedStringLength</a></tt></h3> |
|
darope@0
|
1655 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1656 |
<dd><tt>int GetLocalizedStringLength(const char *label);</tt> |
|
darope@0
|
1657 |
<p><i>comments:</i><br> |
|
darope@0
|
1658 |
<blockquote> |
|
darope@249
|
1659 |
Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) |
|
darope@0
|
1660 |
</blockquote> |
|
darope@0
|
1661 |
|
|
darope@0
|
1662 |
<hr><h3><tt><a name="RegisterTutorMessageShown">RegisterTutorMessageShown</a></tt></h3> |
|
darope@0
|
1663 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1664 |
<dd><tt>void RegisterTutorMessageShown(int mid);</tt> |
|
darope@0
|
1665 |
<p><i>comments:</i><br> |
|
darope@0
|
1666 |
<blockquote> |
|
darope@249
|
1667 |
Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) |
|
darope@0
|
1668 |
</blockquote> |
|
darope@0
|
1669 |
|
|
darope@0
|
1670 |
<hr><h3><tt><a name="GetTimesTutorMessageShown">GetTimesTutorMessageShown</a></tt></h3> |
|
darope@0
|
1671 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1672 |
<dd><tt>int GetTimesTutorMessageShown(int mid);</tt> |
|
darope@0
|
1673 |
<p><i>comments:</i><br> |
|
darope@0
|
1674 |
<blockquote> |
|
darope@249
|
1675 |
Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) |
|
darope@0
|
1676 |
</blockquote> |
|
darope@0
|
1677 |
|
|
darope@0
|
1678 |
<hr><h3><tt><a name="ProcessTutorMessageDecayBuffer">ProcessTutorMessageDecayBuffer</a></tt></h3> |
|
darope@0
|
1679 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1680 |
<dd><tt>void ProcessTutorMessageDecayBuffer(int *buffer, int bufferLength);</tt> |
|
darope@0
|
1681 |
<p><i>comments:</i><br> |
|
darope@0
|
1682 |
<blockquote> |
|
darope@249
|
1683 |
Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) |
|
darope@0
|
1684 |
</blockquote> |
|
darope@0
|
1685 |
|
|
darope@0
|
1686 |
<hr><h3><tt><a name="ConstructTutorMessageDecayBuffer">ConstructTutorMessageDecayBuffer</a></tt></h3> |
|
darope@0
|
1687 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1688 |
<dd><tt>void ConstructTutorMessageDecayBuffer(int *buffer, int bufferLength);</tt> |
|
darope@0
|
1689 |
<p><i>comments:</i><br> |
|
darope@0
|
1690 |
<blockquote> |
|
darope@249
|
1691 |
Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) |
|
darope@0
|
1692 |
</blockquote> |
|
darope@0
|
1693 |
|
|
darope@0
|
1694 |
<hr><h3><tt><a name="ResetTutorMessageDecayData">ResetTutorMessageDecayData</a></tt></h3> |
|
darope@0
|
1695 |
<i>from engine/eiface.h:</i><br> |
|
darope@0
|
1696 |
<dd><tt>void ResetTutorMessageDecayData(void);</tt> |
|
darope@0
|
1697 |
<p><i>comments:</i><br> |
|
darope@0
|
1698 |
<blockquote> |
|
darope@249
|
1699 |
Added for HL 1xxx; no SDK update. (Available in patched SDK as of hlsdk-2.3-p1.) |
|
darope@0
|
1700 |
</blockquote> |
|
darope@0
|
1701 |
|
|
darope@249
|
1702 |
<hr><h3><tt><a name="QueryClientCvarValue">QueryClientCvarValue</a></tt></h3> |
|
darope@248
|
1703 |
<dd><tt>void (*pfnQueryClientCvarValue)( const edict_t *player, const char *cvarName );</tt><p> |
|
darope@248
|
1704 |
<i>from [email protected], via HLCoders</i><br> |
|
darope@248
|
1705 |
<blockquote><tt> |
|
darope@248
|
1706 |
Calling this function requests the value of cvarName from player. The |
|
darope@248
|
1707 |
result is returned via a callback from NEW_DLL_FUNCTIONS. |
|
darope@248
|
1708 |
</tt></blockquote> |
|
darope@248
|
1709 |
<p><i>comments:</i><br> |
|
darope@248
|
1710 |
<blockquote> |
|
darope@249
|
1711 |
Added 2005-08-11, no SDK update. (Available in patched SDK as of hlsdk-2.3-p2.) |
|
darope@249
|
1712 |
</blockquote> |
|
darope@249
|
1713 |
<blockquote> |
|
darope@249
|
1714 |
<b>Use of this function is DEPRECATED. It has been obsoleted by the |
|
darope@249
|
1715 |
pfnQueryClientCvarValue2() function. See below.</b> |
|
darope@249
|
1716 |
</blockquote> |
|
darope@249
|
1717 |
<blockquote> |
|
darope@249
|
1718 |
This API can lead to conflicts when you query more than one cvar from a player |
|
darope@249
|
1719 |
at a time. When using this function, use IS_QUERYING_CLIENT_CVAR to check if |
|
darope@249
|
1720 |
another plugin is querying before you do so. Use of this function is strongly |
|
darope@249
|
1721 |
advised against. Instead use the pfnQueryClientCvarValue2() function. |
|
darope@249
|
1722 |
</blockquote> |
|
darope@249
|
1723 |
|
|
darope@249
|
1724 |
|
|
darope@249
|
1725 |
<hr><h3><tt><a name="QueryClientCvarValue2">QueryClientCvarValue2</a></tt></h3> |
|
darope@249
|
1726 |
<dd><tt>void (*pfnQueryClientCvarValue2)( const edict_t *player, const char *cvarName, int requestID );</tt><p> |
|
darope@249
|
1727 |
<i>from [email protected], via hlds_apps</i><br> |
|
darope@249
|
1728 |
<blockquote><tt> |
|
darope@249
|
1729 |
Calling this function requests the value of cvarName from player and |
|
darope@249
|
1730 |
returns to you the supplied requestID on success (or failure). |
|
darope@249
|
1731 |
|
|
darope@249
|
1732 |
The response is sent to a pfnCvarValue2 callback in the |
|
darope@249
|
1733 |
NEW_DLL_FUNCTIONS structure. |
|
darope@249
|
1734 |
</tt></blockquote> |
|
darope@249
|
1735 |
<p><i>comments:</i><br> |
|
darope@249
|
1736 |
<blockquote> |
|
darope@249
|
1737 |
Added 2005-11-23, no SDK update. (Available in patched SDK as of hlsdk-2.3-p3.) |
|
darope@248
|
1738 |
</blockquote> |
|
darope@248
|
1739 |
|
|
darope@0
|
1740 |
|
|
darope@0
|
1741 |
<p> |
|
darope@0
|
1742 |
<hr> |
|
darope@0
|
1743 |
|
|
darope@0
|
1744 |
</body> |
|
darope@0
|
1745 |
</HTML> |