1 # -*- coding: utf-8 -*- |
|
2 """ |
|
3 pygments.lexers._sourcemod_builtins |
|
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
|
5 |
|
6 This file contains the names of SourceMod functions. |
|
7 It is able to re-generate itself. |
|
8 |
|
9 Do not edit the FUNCTIONS list by hand. |
|
10 |
|
11 :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. |
|
12 :license: BSD, see LICENSE for details. |
|
13 """ |
|
14 |
|
15 FUNCTIONS = ( |
|
16 'OnEntityCreated', |
|
17 'OnEntityDestroyed', |
|
18 'OnGetGameDescription', |
|
19 'OnLevelInit', |
|
20 'SDKHook', |
|
21 'SDKHookEx', |
|
22 'SDKUnhook', |
|
23 'SDKHooks_TakeDamage', |
|
24 'SDKHooks_DropWeapon', |
|
25 'TopMenuHandler', |
|
26 'CreateTopMenu', |
|
27 'LoadTopMenuConfig', |
|
28 'AddToTopMenu', |
|
29 'GetTopMenuInfoString', |
|
30 'GetTopMenuObjName', |
|
31 'RemoveFromTopMenu', |
|
32 'DisplayTopMenu', |
|
33 'DisplayTopMenuCategory', |
|
34 'FindTopMenuCategory', |
|
35 'SetTopMenuTitleCaching', |
|
36 'OnAdminMenuCreated', |
|
37 'OnAdminMenuReady', |
|
38 'GetAdminTopMenu', |
|
39 'AddTargetsToMenu', |
|
40 'AddTargetsToMenu2', |
|
41 'RedisplayAdminMenu', |
|
42 'TEHook', |
|
43 'AddTempEntHook', |
|
44 'RemoveTempEntHook', |
|
45 'TE_Start', |
|
46 'TE_IsValidProp', |
|
47 'TE_WriteNum', |
|
48 'TE_ReadNum', |
|
49 'TE_WriteFloat', |
|
50 'TE_ReadFloat', |
|
51 'TE_WriteVector', |
|
52 'TE_ReadVector', |
|
53 'TE_WriteAngles', |
|
54 'TE_WriteFloatArray', |
|
55 'TE_Send', |
|
56 'TE_WriteEncodedEnt', |
|
57 'TE_SendToAll', |
|
58 'TE_SendToClient', |
|
59 'CreateKeyValues', |
|
60 'KvSetString', |
|
61 'KvSetNum', |
|
62 'KvSetUInt64', |
|
63 'KvSetFloat', |
|
64 'KvSetColor', |
|
65 'KvSetVector', |
|
66 'KvGetString', |
|
67 'KvGetNum', |
|
68 'KvGetFloat', |
|
69 'KvGetColor', |
|
70 'KvGetUInt64', |
|
71 'KvGetVector', |
|
72 'KvJumpToKey', |
|
73 'KvJumpToKeySymbol', |
|
74 'KvGotoFirstSubKey', |
|
75 'KvGotoNextKey', |
|
76 'KvSavePosition', |
|
77 'KvDeleteKey', |
|
78 'KvDeleteThis', |
|
79 'KvGoBack', |
|
80 'KvRewind', |
|
81 'KvGetSectionName', |
|
82 'KvSetSectionName', |
|
83 'KvGetDataType', |
|
84 'KeyValuesToFile', |
|
85 'FileToKeyValues', |
|
86 'StringToKeyValues', |
|
87 'KvSetEscapeSequences', |
|
88 'KvNodesInStack', |
|
89 'KvCopySubkeys', |
|
90 'KvFindKeyById', |
|
91 'KvGetNameSymbol', |
|
92 'KvGetSectionSymbol', |
|
93 'TE_SetupSparks', |
|
94 'TE_SetupSmoke', |
|
95 'TE_SetupDust', |
|
96 'TE_SetupMuzzleFlash', |
|
97 'TE_SetupMetalSparks', |
|
98 'TE_SetupEnergySplash', |
|
99 'TE_SetupArmorRicochet', |
|
100 'TE_SetupGlowSprite', |
|
101 'TE_SetupExplosion', |
|
102 'TE_SetupBloodSprite', |
|
103 'TE_SetupBeamRingPoint', |
|
104 'TE_SetupBeamPoints', |
|
105 'TE_SetupBeamLaser', |
|
106 'TE_SetupBeamRing', |
|
107 'TE_SetupBeamFollow', |
|
108 'HookEvent', |
|
109 'HookEventEx', |
|
110 'UnhookEvent', |
|
111 'CreateEvent', |
|
112 'FireEvent', |
|
113 'CancelCreatedEvent', |
|
114 'GetEventBool', |
|
115 'SetEventBool', |
|
116 'GetEventInt', |
|
117 'SetEventInt', |
|
118 'GetEventFloat', |
|
119 'SetEventFloat', |
|
120 'GetEventString', |
|
121 'SetEventString', |
|
122 'GetEventName', |
|
123 'SetEventBroadcast', |
|
124 'GetUserMessageType', |
|
125 'GetUserMessageId', |
|
126 'GetUserMessageName', |
|
127 'StartMessage', |
|
128 'StartMessageEx', |
|
129 'EndMessage', |
|
130 'MsgHook', |
|
131 'MsgPostHook', |
|
132 'HookUserMessage', |
|
133 'UnhookUserMessage', |
|
134 'StartMessageAll', |
|
135 'StartMessageOne', |
|
136 'InactivateClient', |
|
137 'ReconnectClient', |
|
138 'GetMaxEntities', |
|
139 'GetEntityCount', |
|
140 'IsValidEntity', |
|
141 'IsValidEdict', |
|
142 'IsEntNetworkable', |
|
143 'CreateEdict', |
|
144 'RemoveEdict', |
|
145 'GetEdictFlags', |
|
146 'SetEdictFlags', |
|
147 'GetEdictClassname', |
|
148 'GetEntityNetClass', |
|
149 'ChangeEdictState', |
|
150 'GetEntData', |
|
151 'SetEntData', |
|
152 'GetEntDataFloat', |
|
153 'SetEntDataFloat', |
|
154 'GetEntDataEnt2', |
|
155 'SetEntDataEnt2', |
|
156 'GetEntDataVector', |
|
157 'SetEntDataVector', |
|
158 'GetEntDataString', |
|
159 'SetEntDataString', |
|
160 'FindSendPropOffs', |
|
161 'FindSendPropInfo', |
|
162 'FindDataMapOffs', |
|
163 'FindDataMapInfo', |
|
164 'GetEntSendPropOffs', |
|
165 'GetEntProp', |
|
166 'SetEntProp', |
|
167 'GetEntPropFloat', |
|
168 'SetEntPropFloat', |
|
169 'GetEntPropEnt', |
|
170 'SetEntPropEnt', |
|
171 'GetEntPropVector', |
|
172 'SetEntPropVector', |
|
173 'GetEntPropString', |
|
174 'SetEntPropString', |
|
175 'GetEntPropArraySize', |
|
176 'GetEntDataArray', |
|
177 'SetEntDataArray', |
|
178 'GetEntityAddress', |
|
179 'GetEntityClassname', |
|
180 'float', |
|
181 'FloatMul', |
|
182 'FloatDiv', |
|
183 'FloatAdd', |
|
184 'FloatSub', |
|
185 'FloatFraction', |
|
186 'RoundToZero', |
|
187 'RoundToCeil', |
|
188 'RoundToFloor', |
|
189 'RoundToNearest', |
|
190 'FloatCompare', |
|
191 'SquareRoot', |
|
192 'Pow', |
|
193 'Exponential', |
|
194 'Logarithm', |
|
195 'Sine', |
|
196 'Cosine', |
|
197 'Tangent', |
|
198 'FloatAbs', |
|
199 'ArcTangent', |
|
200 'ArcCosine', |
|
201 'ArcSine', |
|
202 'ArcTangent2', |
|
203 'RoundFloat', |
|
204 'operator%', |
|
205 'DegToRad', |
|
206 'RadToDeg', |
|
207 'GetURandomInt', |
|
208 'GetURandomFloat', |
|
209 'SetURandomSeed', |
|
210 'SetURandomSeedSimple', |
|
211 'RemovePlayerItem', |
|
212 'GivePlayerItem', |
|
213 'GetPlayerWeaponSlot', |
|
214 'IgniteEntity', |
|
215 'ExtinguishEntity', |
|
216 'TeleportEntity', |
|
217 'ForcePlayerSuicide', |
|
218 'SlapPlayer', |
|
219 'FindEntityByClassname', |
|
220 'GetClientEyeAngles', |
|
221 'CreateEntityByName', |
|
222 'DispatchSpawn', |
|
223 'DispatchKeyValue', |
|
224 'DispatchKeyValueFloat', |
|
225 'DispatchKeyValueVector', |
|
226 'GetClientAimTarget', |
|
227 'GetTeamCount', |
|
228 'GetTeamName', |
|
229 'GetTeamScore', |
|
230 'SetTeamScore', |
|
231 'GetTeamClientCount', |
|
232 'SetEntityModel', |
|
233 'GetPlayerDecalFile', |
|
234 'GetPlayerJingleFile', |
|
235 'GetServerNetStats', |
|
236 'EquipPlayerWeapon', |
|
237 'ActivateEntity', |
|
238 'SetClientInfo', |
|
239 'GivePlayerAmmo', |
|
240 'SetClientListeningFlags', |
|
241 'GetClientListeningFlags', |
|
242 'SetListenOverride', |
|
243 'GetListenOverride', |
|
244 'IsClientMuted', |
|
245 'TR_GetPointContents', |
|
246 'TR_GetPointContentsEnt', |
|
247 'TR_TraceRay', |
|
248 'TR_TraceHull', |
|
249 'TR_TraceRayFilter', |
|
250 'TR_TraceHullFilter', |
|
251 'TR_TraceRayEx', |
|
252 'TR_TraceHullEx', |
|
253 'TR_TraceRayFilterEx', |
|
254 'TR_TraceHullFilterEx', |
|
255 'TR_GetFraction', |
|
256 'TR_GetEndPosition', |
|
257 'TR_GetEntityIndex', |
|
258 'TR_DidHit', |
|
259 'TR_GetHitGroup', |
|
260 'TR_GetPlaneNormal', |
|
261 'TR_PointOutsideWorld', |
|
262 'SortIntegers', |
|
263 'SortFloats', |
|
264 'SortStrings', |
|
265 'SortFunc1D', |
|
266 'SortCustom1D', |
|
267 'SortCustom2D', |
|
268 'SortADTArray', |
|
269 'SortFuncADTArray', |
|
270 'SortADTArrayCustom', |
|
271 'CompileRegex', |
|
272 'MatchRegex', |
|
273 'GetRegexSubString', |
|
274 'SimpleRegexMatch', |
|
275 'TF2_GetPlayerClass', |
|
276 'TF2_SetPlayerClass', |
|
277 'TF2_RemoveWeaponSlot', |
|
278 'TF2_RemoveAllWeapons', |
|
279 'TF2_IsPlayerInCondition', |
|
280 'TF2_GetObjectType', |
|
281 'TF2_GetObjectMode', |
|
282 'NominateMap', |
|
283 'RemoveNominationByMap', |
|
284 'RemoveNominationByOwner', |
|
285 'GetExcludeMapList', |
|
286 'GetNominatedMapList', |
|
287 'CanMapChooserStartVote', |
|
288 'InitiateMapChooserVote', |
|
289 'HasEndOfMapVoteFinished', |
|
290 'EndOfMapVoteEnabled', |
|
291 'OnNominationRemoved', |
|
292 'OnMapVoteStarted', |
|
293 'CreateTimer', |
|
294 'KillTimer', |
|
295 'TriggerTimer', |
|
296 'GetTickedTime', |
|
297 'GetMapTimeLeft', |
|
298 'GetMapTimeLimit', |
|
299 'ExtendMapTimeLimit', |
|
300 'GetTickInterval', |
|
301 'OnMapTimeLeftChanged', |
|
302 'IsServerProcessing', |
|
303 'CreateDataTimer', |
|
304 'ByteCountToCells', |
|
305 'CreateArray', |
|
306 'ClearArray', |
|
307 'CloneArray', |
|
308 'ResizeArray', |
|
309 'GetArraySize', |
|
310 'PushArrayCell', |
|
311 'PushArrayString', |
|
312 'PushArrayArray', |
|
313 'GetArrayCell', |
|
314 'GetArrayString', |
|
315 'GetArrayArray', |
|
316 'SetArrayCell', |
|
317 'SetArrayString', |
|
318 'SetArrayArray', |
|
319 'ShiftArrayUp', |
|
320 'RemoveFromArray', |
|
321 'SwapArrayItems', |
|
322 'FindStringInArray', |
|
323 'FindValueInArray', |
|
324 'ProcessTargetString', |
|
325 'ReplyToTargetError', |
|
326 'MultiTargetFilter', |
|
327 'AddMultiTargetFilter', |
|
328 'RemoveMultiTargetFilter', |
|
329 'OnBanClient', |
|
330 'OnBanIdentity', |
|
331 'OnRemoveBan', |
|
332 'BanClient', |
|
333 'BanIdentity', |
|
334 'RemoveBan', |
|
335 'CreateTrie', |
|
336 'SetTrieValue', |
|
337 'SetTrieArray', |
|
338 'SetTrieString', |
|
339 'GetTrieValue', |
|
340 'GetTrieArray', |
|
341 'GetTrieString', |
|
342 'RemoveFromTrie', |
|
343 'ClearTrie', |
|
344 'GetTrieSize', |
|
345 'GetFunctionByName', |
|
346 'CreateGlobalForward', |
|
347 'CreateForward', |
|
348 'GetForwardFunctionCount', |
|
349 'AddToForward', |
|
350 'RemoveFromForward', |
|
351 'RemoveAllFromForward', |
|
352 'Call_StartForward', |
|
353 'Call_StartFunction', |
|
354 'Call_PushCell', |
|
355 'Call_PushCellRef', |
|
356 'Call_PushFloat', |
|
357 'Call_PushFloatRef', |
|
358 'Call_PushArray', |
|
359 'Call_PushArrayEx', |
|
360 'Call_PushString', |
|
361 'Call_PushStringEx', |
|
362 'Call_Finish', |
|
363 'Call_Cancel', |
|
364 'NativeCall', |
|
365 'CreateNative', |
|
366 'ThrowNativeError', |
|
367 'GetNativeStringLength', |
|
368 'GetNativeString', |
|
369 'SetNativeString', |
|
370 'GetNativeCell', |
|
371 'GetNativeCellRef', |
|
372 'SetNativeCellRef', |
|
373 'GetNativeArray', |
|
374 'SetNativeArray', |
|
375 'FormatNativeString', |
|
376 'RequestFrameCallback', |
|
377 'RequestFrame', |
|
378 'OnRebuildAdminCache', |
|
379 'DumpAdminCache', |
|
380 'AddCommandOverride', |
|
381 'GetCommandOverride', |
|
382 'UnsetCommandOverride', |
|
383 'CreateAdmGroup', |
|
384 'FindAdmGroup', |
|
385 'SetAdmGroupAddFlag', |
|
386 'GetAdmGroupAddFlag', |
|
387 'GetAdmGroupAddFlags', |
|
388 'SetAdmGroupImmuneFrom', |
|
389 'GetAdmGroupImmuneCount', |
|
390 'GetAdmGroupImmuneFrom', |
|
391 'AddAdmGroupCmdOverride', |
|
392 'GetAdmGroupCmdOverride', |
|
393 'RegisterAuthIdentType', |
|
394 'CreateAdmin', |
|
395 'GetAdminUsername', |
|
396 'BindAdminIdentity', |
|
397 'SetAdminFlag', |
|
398 'GetAdminFlag', |
|
399 'GetAdminFlags', |
|
400 'AdminInheritGroup', |
|
401 'GetAdminGroupCount', |
|
402 'GetAdminGroup', |
|
403 'SetAdminPassword', |
|
404 'GetAdminPassword', |
|
405 'FindAdminByIdentity', |
|
406 'RemoveAdmin', |
|
407 'FlagBitsToBitArray', |
|
408 'FlagBitArrayToBits', |
|
409 'FlagArrayToBits', |
|
410 'FlagBitsToArray', |
|
411 'FindFlagByName', |
|
412 'FindFlagByChar', |
|
413 'FindFlagChar', |
|
414 'ReadFlagString', |
|
415 'CanAdminTarget', |
|
416 'CreateAuthMethod', |
|
417 'SetAdmGroupImmunityLevel', |
|
418 'GetAdmGroupImmunityLevel', |
|
419 'SetAdminImmunityLevel', |
|
420 'GetAdminImmunityLevel', |
|
421 'FlagToBit', |
|
422 'BitToFlag', |
|
423 'ServerCommand', |
|
424 'ServerCommandEx', |
|
425 'InsertServerCommand', |
|
426 'ServerExecute', |
|
427 'ClientCommand', |
|
428 'FakeClientCommand', |
|
429 'FakeClientCommandEx', |
|
430 'PrintToServer', |
|
431 'PrintToConsole', |
|
432 'ReplyToCommand', |
|
433 'GetCmdReplySource', |
|
434 'SetCmdReplySource', |
|
435 'IsChatTrigger', |
|
436 'ShowActivity2', |
|
437 'ShowActivity', |
|
438 'ShowActivityEx', |
|
439 'FormatActivitySource', |
|
440 'SrvCmd', |
|
441 'RegServerCmd', |
|
442 'ConCmd', |
|
443 'RegConsoleCmd', |
|
444 'RegAdminCmd', |
|
445 'GetCmdArgs', |
|
446 'GetCmdArg', |
|
447 'GetCmdArgString', |
|
448 'CreateConVar', |
|
449 'FindConVar', |
|
450 'ConVarChanged', |
|
451 'HookConVarChange', |
|
452 'UnhookConVarChange', |
|
453 'GetConVarBool', |
|
454 'SetConVarBool', |
|
455 'GetConVarInt', |
|
456 'SetConVarInt', |
|
457 'GetConVarFloat', |
|
458 'SetConVarFloat', |
|
459 'GetConVarString', |
|
460 'SetConVarString', |
|
461 'ResetConVar', |
|
462 'GetConVarDefault', |
|
463 'GetConVarFlags', |
|
464 'SetConVarFlags', |
|
465 'GetConVarBounds', |
|
466 'SetConVarBounds', |
|
467 'GetConVarName', |
|
468 'QueryClientConVar', |
|
469 'GetCommandIterator', |
|
470 'ReadCommandIterator', |
|
471 'CheckCommandAccess', |
|
472 'CheckAccess', |
|
473 'IsValidConVarChar', |
|
474 'GetCommandFlags', |
|
475 'SetCommandFlags', |
|
476 'FindFirstConCommand', |
|
477 'FindNextConCommand', |
|
478 'SendConVarValue', |
|
479 'AddServerTag', |
|
480 'RemoveServerTag', |
|
481 'CommandListener', |
|
482 'AddCommandListener', |
|
483 'RemoveCommandListener', |
|
484 'CommandExists', |
|
485 'OnClientSayCommand', |
|
486 'OnClientSayCommand_Post', |
|
487 'TF2_IgnitePlayer', |
|
488 'TF2_RespawnPlayer', |
|
489 'TF2_RegeneratePlayer', |
|
490 'TF2_AddCondition', |
|
491 'TF2_RemoveCondition', |
|
492 'TF2_SetPlayerPowerPlay', |
|
493 'TF2_DisguisePlayer', |
|
494 'TF2_RemovePlayerDisguise', |
|
495 'TF2_StunPlayer', |
|
496 'TF2_MakeBleed', |
|
497 'TF2_GetClass', |
|
498 'TF2_CalcIsAttackCritical', |
|
499 'TF2_OnIsHolidayActive', |
|
500 'TF2_IsHolidayActive', |
|
501 'TF2_IsPlayerInDuel', |
|
502 'TF2_RemoveWearable', |
|
503 'TF2_OnConditionAdded', |
|
504 'TF2_OnConditionRemoved', |
|
505 'TF2_OnWaitingForPlayersStart', |
|
506 'TF2_OnWaitingForPlayersEnd', |
|
507 'TF2_OnPlayerTeleport', |
|
508 'SQL_Connect', |
|
509 'SQL_DefConnect', |
|
510 'SQL_ConnectCustom', |
|
511 'SQLite_UseDatabase', |
|
512 'SQL_CheckConfig', |
|
513 'SQL_GetDriver', |
|
514 'SQL_ReadDriver', |
|
515 'SQL_GetDriverIdent', |
|
516 'SQL_GetDriverProduct', |
|
517 'SQL_SetCharset', |
|
518 'SQL_GetAffectedRows', |
|
519 'SQL_GetInsertId', |
|
520 'SQL_GetError', |
|
521 'SQL_EscapeString', |
|
522 'SQL_QuoteString', |
|
523 'SQL_FastQuery', |
|
524 'SQL_Query', |
|
525 'SQL_PrepareQuery', |
|
526 'SQL_FetchMoreResults', |
|
527 'SQL_HasResultSet', |
|
528 'SQL_GetRowCount', |
|
529 'SQL_GetFieldCount', |
|
530 'SQL_FieldNumToName', |
|
531 'SQL_FieldNameToNum', |
|
532 'SQL_FetchRow', |
|
533 'SQL_MoreRows', |
|
534 'SQL_Rewind', |
|
535 'SQL_FetchString', |
|
536 'SQL_FetchFloat', |
|
537 'SQL_FetchInt', |
|
538 'SQL_IsFieldNull', |
|
539 'SQL_FetchSize', |
|
540 'SQL_BindParamInt', |
|
541 'SQL_BindParamFloat', |
|
542 'SQL_BindParamString', |
|
543 'SQL_Execute', |
|
544 'SQL_LockDatabase', |
|
545 'SQL_UnlockDatabase', |
|
546 'SQLTCallback', |
|
547 'SQL_IsSameConnection', |
|
548 'SQL_TConnect', |
|
549 'SQL_TQuery', |
|
550 'SQL_CreateTransaction', |
|
551 'SQL_AddQuery', |
|
552 'SQLTxnSuccess', |
|
553 'SQLTxnFailure', |
|
554 'SQL_ExecuteTransaction', |
|
555 'CloseHandle', |
|
556 'CloneHandle', |
|
557 'MenuHandler', |
|
558 'CreateMenu', |
|
559 'DisplayMenu', |
|
560 'DisplayMenuAtItem', |
|
561 'AddMenuItem', |
|
562 'InsertMenuItem', |
|
563 'RemoveMenuItem', |
|
564 'RemoveAllMenuItems', |
|
565 'GetMenuItem', |
|
566 'GetMenuSelectionPosition', |
|
567 'GetMenuItemCount', |
|
568 'SetMenuPagination', |
|
569 'GetMenuPagination', |
|
570 'GetMenuStyle', |
|
571 'SetMenuTitle', |
|
572 'GetMenuTitle', |
|
573 'CreatePanelFromMenu', |
|
574 'GetMenuExitButton', |
|
575 'SetMenuExitButton', |
|
576 'GetMenuExitBackButton', |
|
577 'SetMenuExitBackButton', |
|
578 'SetMenuNoVoteButton', |
|
579 'CancelMenu', |
|
580 'GetMenuOptionFlags', |
|
581 'SetMenuOptionFlags', |
|
582 'IsVoteInProgress', |
|
583 'CancelVote', |
|
584 'VoteMenu', |
|
585 'VoteMenuToAll', |
|
586 'VoteHandler', |
|
587 'SetVoteResultCallback', |
|
588 'CheckVoteDelay', |
|
589 'IsClientInVotePool', |
|
590 'RedrawClientVoteMenu', |
|
591 'GetMenuStyleHandle', |
|
592 'CreatePanel', |
|
593 'CreateMenuEx', |
|
594 'GetClientMenu', |
|
595 'CancelClientMenu', |
|
596 'GetMaxPageItems', |
|
597 'GetPanelStyle', |
|
598 'SetPanelTitle', |
|
599 'DrawPanelItem', |
|
600 'DrawPanelText', |
|
601 'CanPanelDrawFlags', |
|
602 'SetPanelKeys', |
|
603 'SendPanelToClient', |
|
604 'GetPanelTextRemaining', |
|
605 'GetPanelCurrentKey', |
|
606 'SetPanelCurrentKey', |
|
607 'RedrawMenuItem', |
|
608 'InternalShowMenu', |
|
609 'GetMenuVoteInfo', |
|
610 'IsNewVoteAllowed', |
|
611 'PrefetchSound', |
|
612 'EmitAmbientSound', |
|
613 'FadeClientVolume', |
|
614 'StopSound', |
|
615 'EmitSound', |
|
616 'EmitSentence', |
|
617 'GetDistGainFromSoundLevel', |
|
618 'AmbientSHook', |
|
619 'NormalSHook', |
|
620 'AddAmbientSoundHook', |
|
621 'AddNormalSoundHook', |
|
622 'RemoveAmbientSoundHook', |
|
623 'RemoveNormalSoundHook', |
|
624 'EmitSoundToClient', |
|
625 'EmitSoundToAll', |
|
626 'ATTN_TO_SNDLEVEL', |
|
627 'GetGameSoundParams', |
|
628 'EmitGameSound', |
|
629 'EmitAmbientGameSound', |
|
630 'EmitGameSoundToClient', |
|
631 'EmitGameSoundToAll', |
|
632 'PrecacheScriptSound', |
|
633 'strlen', |
|
634 'StrContains', |
|
635 'strcmp', |
|
636 'strncmp', |
|
637 'StrEqual', |
|
638 'strcopy', |
|
639 'Format', |
|
640 'FormatEx', |
|
641 'VFormat', |
|
642 'StringToInt', |
|
643 'StringToIntEx', |
|
644 'IntToString', |
|
645 'StringToFloat', |
|
646 'StringToFloatEx', |
|
647 'FloatToString', |
|
648 'BreakString', |
|
649 'TrimString', |
|
650 'SplitString', |
|
651 'ReplaceString', |
|
652 'ReplaceStringEx', |
|
653 'GetCharBytes', |
|
654 'IsCharAlpha', |
|
655 'IsCharNumeric', |
|
656 'IsCharSpace', |
|
657 'IsCharMB', |
|
658 'IsCharUpper', |
|
659 'IsCharLower', |
|
660 'StripQuotes', |
|
661 'CharToUpper', |
|
662 'CharToLower', |
|
663 'FindCharInString', |
|
664 'StrCat', |
|
665 'ExplodeString', |
|
666 'ImplodeStrings', |
|
667 'GetVectorLength', |
|
668 'GetVectorDistance', |
|
669 'GetVectorDotProduct', |
|
670 'GetVectorCrossProduct', |
|
671 'NormalizeVector', |
|
672 'GetAngleVectors', |
|
673 'GetVectorAngles', |
|
674 'GetVectorVectors', |
|
675 'AddVectors', |
|
676 'SubtractVectors', |
|
677 'ScaleVector', |
|
678 'NegateVector', |
|
679 'MakeVectorFromPoints', |
|
680 'BaseComm_IsClientGagged', |
|
681 'BaseComm_IsClientMuted', |
|
682 'BaseComm_SetClientGag', |
|
683 'BaseComm_SetClientMute', |
|
684 'FormatUserLogText', |
|
685 'FindPluginByFile', |
|
686 'FindTarget', |
|
687 'AcceptEntityInput', |
|
688 'SetVariantBool', |
|
689 'SetVariantString', |
|
690 'SetVariantInt', |
|
691 'SetVariantFloat', |
|
692 'SetVariantVector3D', |
|
693 'SetVariantPosVector3D', |
|
694 'SetVariantColor', |
|
695 'SetVariantEntity', |
|
696 'GameRules_GetProp', |
|
697 'GameRules_SetProp', |
|
698 'GameRules_GetPropFloat', |
|
699 'GameRules_SetPropFloat', |
|
700 'GameRules_GetPropEnt', |
|
701 'GameRules_SetPropEnt', |
|
702 'GameRules_GetPropVector', |
|
703 'GameRules_SetPropVector', |
|
704 'GameRules_GetPropString', |
|
705 'GameRules_SetPropString', |
|
706 'GameRules_GetRoundState', |
|
707 'OnClientConnect', |
|
708 'OnClientConnected', |
|
709 'OnClientPutInServer', |
|
710 'OnClientDisconnect', |
|
711 'OnClientDisconnect_Post', |
|
712 'OnClientCommand', |
|
713 'OnClientSettingsChanged', |
|
714 'OnClientAuthorized', |
|
715 'OnClientPreAdminCheck', |
|
716 'OnClientPostAdminFilter', |
|
717 'OnClientPostAdminCheck', |
|
718 'GetMaxClients', |
|
719 'GetMaxHumanPlayers', |
|
720 'GetClientCount', |
|
721 'GetClientName', |
|
722 'GetClientIP', |
|
723 'GetClientAuthString', |
|
724 'GetClientAuthId', |
|
725 'GetSteamAccountID', |
|
726 'GetClientUserId', |
|
727 'IsClientConnected', |
|
728 'IsClientInGame', |
|
729 'IsClientInKickQueue', |
|
730 'IsClientAuthorized', |
|
731 'IsFakeClient', |
|
732 'IsClientSourceTV', |
|
733 'IsClientReplay', |
|
734 'IsClientObserver', |
|
735 'IsPlayerAlive', |
|
736 'GetClientInfo', |
|
737 'GetClientTeam', |
|
738 'SetUserAdmin', |
|
739 'GetUserAdmin', |
|
740 'AddUserFlags', |
|
741 'RemoveUserFlags', |
|
742 'SetUserFlagBits', |
|
743 'GetUserFlagBits', |
|
744 'CanUserTarget', |
|
745 'RunAdminCacheChecks', |
|
746 'NotifyPostAdminCheck', |
|
747 'CreateFakeClient', |
|
748 'SetFakeClientConVar', |
|
749 'GetClientHealth', |
|
750 'GetClientModel', |
|
751 'GetClientWeapon', |
|
752 'GetClientMaxs', |
|
753 'GetClientMins', |
|
754 'GetClientAbsAngles', |
|
755 'GetClientAbsOrigin', |
|
756 'GetClientArmor', |
|
757 'GetClientDeaths', |
|
758 'GetClientFrags', |
|
759 'GetClientDataRate', |
|
760 'IsClientTimingOut', |
|
761 'GetClientTime', |
|
762 'GetClientLatency', |
|
763 'GetClientAvgLatency', |
|
764 'GetClientAvgLoss', |
|
765 'GetClientAvgChoke', |
|
766 'GetClientAvgData', |
|
767 'GetClientAvgPackets', |
|
768 'GetClientOfUserId', |
|
769 'KickClient', |
|
770 'KickClientEx', |
|
771 'ChangeClientTeam', |
|
772 'GetClientSerial', |
|
773 'GetClientFromSerial', |
|
774 'FindStringTable', |
|
775 'GetNumStringTables', |
|
776 'GetStringTableNumStrings', |
|
777 'GetStringTableMaxStrings', |
|
778 'GetStringTableName', |
|
779 'FindStringIndex', |
|
780 'ReadStringTable', |
|
781 'GetStringTableDataLength', |
|
782 'GetStringTableData', |
|
783 'SetStringTableData', |
|
784 'AddToStringTable', |
|
785 'LockStringTables', |
|
786 'AddFileToDownloadsTable', |
|
787 'GetEntityFlags', |
|
788 'SetEntityFlags', |
|
789 'GetEntityMoveType', |
|
790 'SetEntityMoveType', |
|
791 'GetEntityRenderMode', |
|
792 'SetEntityRenderMode', |
|
793 'GetEntityRenderFx', |
|
794 'SetEntityRenderFx', |
|
795 'SetEntityRenderColor', |
|
796 'GetEntityGravity', |
|
797 'SetEntityGravity', |
|
798 'SetEntityHealth', |
|
799 'GetClientButtons', |
|
800 'EntityOutput', |
|
801 'HookEntityOutput', |
|
802 'UnhookEntityOutput', |
|
803 'HookSingleEntityOutput', |
|
804 'UnhookSingleEntityOutput', |
|
805 'SMC_CreateParser', |
|
806 'SMC_ParseFile', |
|
807 'SMC_GetErrorString', |
|
808 'SMC_ParseStart', |
|
809 'SMC_SetParseStart', |
|
810 'SMC_ParseEnd', |
|
811 'SMC_SetParseEnd', |
|
812 'SMC_NewSection', |
|
813 'SMC_KeyValue', |
|
814 'SMC_EndSection', |
|
815 'SMC_SetReaders', |
|
816 'SMC_RawLine', |
|
817 'SMC_SetRawLine', |
|
818 'BfWriteBool', |
|
819 'BfWriteByte', |
|
820 'BfWriteChar', |
|
821 'BfWriteShort', |
|
822 'BfWriteWord', |
|
823 'BfWriteNum', |
|
824 'BfWriteFloat', |
|
825 'BfWriteString', |
|
826 'BfWriteEntity', |
|
827 'BfWriteAngle', |
|
828 'BfWriteCoord', |
|
829 'BfWriteVecCoord', |
|
830 'BfWriteVecNormal', |
|
831 'BfWriteAngles', |
|
832 'BfReadBool', |
|
833 'BfReadByte', |
|
834 'BfReadChar', |
|
835 'BfReadShort', |
|
836 'BfReadWord', |
|
837 'BfReadNum', |
|
838 'BfReadFloat', |
|
839 'BfReadString', |
|
840 'BfReadEntity', |
|
841 'BfReadAngle', |
|
842 'BfReadCoord', |
|
843 'BfReadVecCoord', |
|
844 'BfReadVecNormal', |
|
845 'BfReadAngles', |
|
846 'BfGetNumBytesLeft', |
|
847 'CreateProfiler', |
|
848 'StartProfiling', |
|
849 'StopProfiling', |
|
850 'GetProfilerTime', |
|
851 'OnPluginStart', |
|
852 'AskPluginLoad2', |
|
853 'OnPluginEnd', |
|
854 'OnPluginPauseChange', |
|
855 'OnGameFrame', |
|
856 'OnMapStart', |
|
857 'OnMapEnd', |
|
858 'OnConfigsExecuted', |
|
859 'OnAutoConfigsBuffered', |
|
860 'OnAllPluginsLoaded', |
|
861 'GetMyHandle', |
|
862 'GetPluginIterator', |
|
863 'MorePlugins', |
|
864 'ReadPlugin', |
|
865 'GetPluginStatus', |
|
866 'GetPluginFilename', |
|
867 'IsPluginDebugging', |
|
868 'GetPluginInfo', |
|
869 'FindPluginByNumber', |
|
870 'SetFailState', |
|
871 'ThrowError', |
|
872 'GetTime', |
|
873 'FormatTime', |
|
874 'LoadGameConfigFile', |
|
875 'GameConfGetOffset', |
|
876 'GameConfGetKeyValue', |
|
877 'GameConfGetAddress', |
|
878 'GetSysTickCount', |
|
879 'AutoExecConfig', |
|
880 'RegPluginLibrary', |
|
881 'LibraryExists', |
|
882 'GetExtensionFileStatus', |
|
883 'OnLibraryAdded', |
|
884 'OnLibraryRemoved', |
|
885 'ReadMapList', |
|
886 'SetMapListCompatBind', |
|
887 'OnClientFloodCheck', |
|
888 'OnClientFloodResult', |
|
889 'CanTestFeatures', |
|
890 'GetFeatureStatus', |
|
891 'RequireFeature', |
|
892 'LoadFromAddress', |
|
893 'StoreToAddress', |
|
894 'CreateStack', |
|
895 'PushStackCell', |
|
896 'PushStackString', |
|
897 'PushStackArray', |
|
898 'PopStackCell', |
|
899 'PopStackString', |
|
900 'PopStackArray', |
|
901 'IsStackEmpty', |
|
902 'PopStack', |
|
903 'OnPlayerRunCmd', |
|
904 'BuildPath', |
|
905 'OpenDirectory', |
|
906 'ReadDirEntry', |
|
907 'OpenFile', |
|
908 'DeleteFile', |
|
909 'ReadFileLine', |
|
910 'ReadFile', |
|
911 'ReadFileString', |
|
912 'WriteFile', |
|
913 'WriteFileString', |
|
914 'WriteFileLine', |
|
915 'ReadFileCell', |
|
916 'WriteFileCell', |
|
917 'IsEndOfFile', |
|
918 'FileSeek', |
|
919 'FilePosition', |
|
920 'FileExists', |
|
921 'RenameFile', |
|
922 'DirExists', |
|
923 'FileSize', |
|
924 'FlushFile', |
|
925 'RemoveDir', |
|
926 'CreateDirectory', |
|
927 'GetFileTime', |
|
928 'LogToOpenFile', |
|
929 'LogToOpenFileEx', |
|
930 'PbReadInt', |
|
931 'PbReadFloat', |
|
932 'PbReadBool', |
|
933 'PbReadString', |
|
934 'PbReadColor', |
|
935 'PbReadAngle', |
|
936 'PbReadVector', |
|
937 'PbReadVector2D', |
|
938 'PbGetRepeatedFieldCount', |
|
939 'PbSetInt', |
|
940 'PbSetFloat', |
|
941 'PbSetBool', |
|
942 'PbSetString', |
|
943 'PbSetColor', |
|
944 'PbSetAngle', |
|
945 'PbSetVector', |
|
946 'PbSetVector2D', |
|
947 'PbAddInt', |
|
948 'PbAddFloat', |
|
949 'PbAddBool', |
|
950 'PbAddString', |
|
951 'PbAddColor', |
|
952 'PbAddAngle', |
|
953 'PbAddVector', |
|
954 'PbAddVector2D', |
|
955 'PbRemoveRepeatedFieldValue', |
|
956 'PbReadMessage', |
|
957 'PbReadRepeatedMessage', |
|
958 'PbAddMessage', |
|
959 'SetNextMap', |
|
960 'GetNextMap', |
|
961 'ForceChangeLevel', |
|
962 'GetMapHistorySize', |
|
963 'GetMapHistory', |
|
964 'GeoipCode2', |
|
965 'GeoipCode3', |
|
966 'GeoipCountry', |
|
967 'MarkNativeAsOptional', |
|
968 'RegClientCookie', |
|
969 'FindClientCookie', |
|
970 'SetClientCookie', |
|
971 'GetClientCookie', |
|
972 'SetAuthIdCookie', |
|
973 'AreClientCookiesCached', |
|
974 'OnClientCookiesCached', |
|
975 'CookieMenuHandler', |
|
976 'SetCookiePrefabMenu', |
|
977 'SetCookieMenuItem', |
|
978 'ShowCookieMenu', |
|
979 'GetCookieIterator', |
|
980 'ReadCookieIterator', |
|
981 'GetCookieAccess', |
|
982 'GetClientCookieTime', |
|
983 'LoadTranslations', |
|
984 'SetGlobalTransTarget', |
|
985 'GetClientLanguage', |
|
986 'GetServerLanguage', |
|
987 'GetLanguageCount', |
|
988 'GetLanguageInfo', |
|
989 'SetClientLanguage', |
|
990 'GetLanguageByCode', |
|
991 'GetLanguageByName', |
|
992 'CS_OnBuyCommand', |
|
993 'CS_OnCSWeaponDrop', |
|
994 'CS_OnGetWeaponPrice', |
|
995 'CS_OnTerminateRound', |
|
996 'CS_RespawnPlayer', |
|
997 'CS_SwitchTeam', |
|
998 'CS_DropWeapon', |
|
999 'CS_TerminateRound', |
|
1000 'CS_GetTranslatedWeaponAlias', |
|
1001 'CS_GetWeaponPrice', |
|
1002 'CS_GetClientClanTag', |
|
1003 'CS_SetClientClanTag', |
|
1004 'CS_GetTeamScore', |
|
1005 'CS_SetTeamScore', |
|
1006 'CS_GetMVPCount', |
|
1007 'CS_SetMVPCount', |
|
1008 'CS_GetClientContributionScore', |
|
1009 'CS_SetClientContributionScore', |
|
1010 'CS_GetClientAssists', |
|
1011 'CS_SetClientAssists', |
|
1012 'CS_AliasToWeaponID', |
|
1013 'CS_WeaponIDToAlias', |
|
1014 'CS_IsValidWeaponID', |
|
1015 'CS_UpdateClientModel', |
|
1016 'LogToGame', |
|
1017 'SetRandomSeed', |
|
1018 'GetRandomFloat', |
|
1019 'GetRandomInt', |
|
1020 'IsMapValid', |
|
1021 'IsDedicatedServer', |
|
1022 'GetEngineTime', |
|
1023 'GetGameTime', |
|
1024 'GetGameTickCount', |
|
1025 'GetGameDescription', |
|
1026 'GetGameFolderName', |
|
1027 'GetCurrentMap', |
|
1028 'PrecacheModel', |
|
1029 'PrecacheSentenceFile', |
|
1030 'PrecacheDecal', |
|
1031 'PrecacheGeneric', |
|
1032 'IsModelPrecached', |
|
1033 'IsDecalPrecached', |
|
1034 'IsGenericPrecached', |
|
1035 'PrecacheSound', |
|
1036 'IsSoundPrecached', |
|
1037 'CreateDialog', |
|
1038 'GetEngineVersion', |
|
1039 'PrintToChat', |
|
1040 'PrintToChatAll', |
|
1041 'PrintCenterText', |
|
1042 'PrintCenterTextAll', |
|
1043 'PrintHintText', |
|
1044 'PrintHintTextToAll', |
|
1045 'ShowVGUIPanel', |
|
1046 'CreateHudSynchronizer', |
|
1047 'SetHudTextParams', |
|
1048 'SetHudTextParamsEx', |
|
1049 'ShowSyncHudText', |
|
1050 'ClearSyncHud', |
|
1051 'ShowHudText', |
|
1052 'ShowMOTDPanel', |
|
1053 'DisplayAskConnectBox', |
|
1054 'EntIndexToEntRef', |
|
1055 'EntRefToEntIndex', |
|
1056 'MakeCompatEntRef', |
|
1057 'SetClientViewEntity', |
|
1058 'SetLightStyle', |
|
1059 'GetClientEyePosition', |
|
1060 'CreateDataPack', |
|
1061 'WritePackCell', |
|
1062 'WritePackFloat', |
|
1063 'WritePackString', |
|
1064 'ReadPackCell', |
|
1065 'ReadPackFloat', |
|
1066 'ReadPackString', |
|
1067 'ResetPack', |
|
1068 'GetPackPosition', |
|
1069 'SetPackPosition', |
|
1070 'IsPackReadable', |
|
1071 'LogMessage', |
|
1072 'LogToFile', |
|
1073 'LogToFileEx', |
|
1074 'LogAction', |
|
1075 'LogError', |
|
1076 'OnLogAction', |
|
1077 'GameLogHook', |
|
1078 'AddGameLogHook', |
|
1079 'RemoveGameLogHook', |
|
1080 'FindTeamByName', |
|
1081 'StartPrepSDKCall', |
|
1082 'PrepSDKCall_SetVirtual', |
|
1083 'PrepSDKCall_SetSignature', |
|
1084 'PrepSDKCall_SetAddress', |
|
1085 'PrepSDKCall_SetFromConf', |
|
1086 'PrepSDKCall_SetReturnInfo', |
|
1087 'PrepSDKCall_AddParameter', |
|
1088 'EndPrepSDKCall', |
|
1089 'SDKCall', |
|
1090 'GetPlayerResourceEntity', |
|
1091 ) |
|
1092 |
|
1093 |
|
1094 if __name__ == '__main__': # pragma: no cover |
|
1095 import re |
|
1096 import sys |
|
1097 try: |
|
1098 from urllib import FancyURLopener |
|
1099 except ImportError: |
|
1100 from urllib.request import FancyURLopener |
|
1101 |
|
1102 from pygments.util import format_lines |
|
1103 |
|
1104 # urllib ends up wanting to import a module called 'math' -- if |
|
1105 # pygments/lexers is in the path, this ends badly. |
|
1106 for i in range(len(sys.path)-1, -1, -1): |
|
1107 if sys.path[i].endswith('/lexers'): |
|
1108 del sys.path[i] |
|
1109 |
|
1110 class Opener(FancyURLopener): |
|
1111 version = 'Mozilla/5.0 (Pygments Sourcemod Builtins Update)' |
|
1112 |
|
1113 opener = Opener() |
|
1114 |
|
1115 def get_version(): |
|
1116 f = opener.open('http://docs.sourcemod.net/api/index.php') |
|
1117 r = re.compile(r'SourceMod v\.<b>([\d\.]+(?:-\w+)?)</td>') |
|
1118 for line in f: |
|
1119 m = r.search(line) |
|
1120 if m is not None: |
|
1121 return m.groups()[0] |
|
1122 raise ValueError('No version in api docs') |
|
1123 |
|
1124 def get_sm_functions(): |
|
1125 f = opener.open('http://docs.sourcemod.net/api/SMfuncs.js') |
|
1126 r = re.compile(r'SMfunctions\[\d+\] = Array \("(?:public )?([^,]+)",".+"\);') |
|
1127 functions = [] |
|
1128 for line in f: |
|
1129 m = r.match(line) |
|
1130 if m is not None: |
|
1131 functions.append(m.groups()[0]) |
|
1132 return functions |
|
1133 |
|
1134 def regenerate(filename, natives): |
|
1135 with open(filename) as fp: |
|
1136 content = fp.read() |
|
1137 |
|
1138 header = content[:content.find('FUNCTIONS = (')] |
|
1139 footer = content[content.find("if __name__ == '__main__':")-1:] |
|
1140 |
|
1141 |
|
1142 with open(filename, 'w') as fp: |
|
1143 fp.write(header) |
|
1144 fp.write(format_lines('FUNCTIONS', natives)) |
|
1145 fp.write(footer) |
|
1146 |
|
1147 def run(): |
|
1148 version = get_version() |
|
1149 print('> Downloading function index for SourceMod %s' % version) |
|
1150 functions = get_sm_functions() |
|
1151 print('> %d functions found:' % len(functions)) |
|
1152 |
|
1153 functionlist = [] |
|
1154 for full_function_name in functions: |
|
1155 print('>> %s' % full_function_name) |
|
1156 functionlist.append(full_function_name) |
|
1157 |
|
1158 regenerate(__file__, functionlist) |
|
1159 |
|
1160 |
|
1161 run() |
|