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