SourceMod API
×

admin

Classes
  • AdminId
  • GroupId
Types
  • AdmAccessMode
  • AdminCachePart
  • AdminFlag
  • AdminId
  • GroupId
  • ImmunityType
  • OverrideRule
  • OverrideType
Forwards
  • OnRebuildAdminCache
Functions
  • AddAdmGroupCmdOverride
  • AddCommandOverride
  • AdminInheritGroup
  • BindAdminIdentity
  • CanAdminTarget
  • CreateAdmGroup
  • CreateAdmin
  • CreateAuthMethod
  • DumpAdminCache
  • FindAdmGroup
  • FindAdminByIdentity
  • FindFlagByChar
  • FindFlagByName
  • FindFlagChar
  • FlagArrayToBits
  • FlagBitArrayToBits
  • FlagBitsToArray
  • FlagBitsToBitArray
  • GetAdmGroupAddFlag
  • GetAdmGroupAddFlags
  • GetAdmGroupCmdOverride
  • GetAdmGroupImmuneCount
  • GetAdmGroupImmuneFrom
  • GetAdmGroupImmunity
  • GetAdmGroupImmunityLevel
  • GetAdminFlag
  • GetAdminFlags
  • GetAdminGroup
  • GetAdminGroupCount
  • GetAdminImmunityLevel
  • GetAdminPassword
  • GetAdminUsername
  • GetCommandOverride
  • ReadFlagString
  • RegisterAuthIdentType
  • RemoveAdmin
  • SetAdmGroupAddFlag
  • SetAdmGroupImmuneFrom
  • SetAdmGroupImmunity
  • SetAdmGroupImmunityLevel
  • SetAdminFlag
  • SetAdminImmunityLevel
  • SetAdminPassword
  • UnsetCommandOverride
  • BitToFlag
  • FlagBitsToString
  • FlagToBit

adminmenu

Forwards
  • OnAdminMenuCreated
  • OnAdminMenuReady
Functions
  • AddTargetsToMenu
  • AddTargetsToMenu2
  • GetAdminTopMenu
  • RedisplayAdminMenu
  • __pl_adminmenu_SetNTVOptional

adt

Empty
This include file has no types, functions, or constants.

adt_array

Classes
  • ArrayList
Functions
  • ClearArray
  • CloneArray
  • CreateArray
  • FindStringInArray
  • FindValueInArray
  • GetArrayArray
  • GetArrayBlockSize
  • GetArrayCell
  • GetArraySize
  • GetArrayString
  • PushArrayArray
  • PushArrayCell
  • PushArrayString
  • RemoveFromArray
  • ResizeArray
  • SetArrayArray
  • SetArrayCell
  • SetArrayString
  • ShiftArrayUp
  • SwapArrayItems
  • ByteCountToCells

adt_stack

Classes
  • ArrayStack
Functions
  • CreateStack
  • GetStackBlockSize
  • IsStackEmpty
  • PopStackArray
  • PopStackCell
  • PopStackString
  • PushStackArray
  • PushStackCell
  • PushStackString
  • PopStack

adt_trie

Classes
  • StringMap
  • StringMapSnapshot
Functions
  • ClearTrie
  • CreateTrie
  • CreateTrieSnapshot
  • GetTrieArray
  • GetTrieSize
  • GetTrieSnapshotKey
  • GetTrieString
  • GetTrieValue
  • RemoveFromTrie
  • SetTrieArray
  • SetTrieString
  • SetTrieValue
  • TrieSnapshotKeyBufferSize
  • TrieSnapshotLength

banning

Forwards
  • OnBanClient
  • OnBanIdentity
  • OnRemoveBan
Functions
  • BanClient
  • BanIdentity
  • RemoveBan

basecomm

Forwards
  • BaseComm_OnClientGag
  • BaseComm_OnClientMute
Functions
  • BaseComm_IsClientGagged
  • BaseComm_IsClientMuted
  • BaseComm_SetClientGag
  • BaseComm_SetClientMute
  • __pl_basecomm_SetNTVOptional

bitbuffer

Classes
  • BfRead
  • BfWrite
Functions
  • BfGetNumBytesLeft
  • BfReadAngle
  • BfReadAngles
  • BfReadBool
  • BfReadByte
  • BfReadChar
  • BfReadCoord
  • BfReadEntity
  • BfReadFloat
  • BfReadNum
  • BfReadShort
  • BfReadString
  • BfReadVecCoord
  • BfReadVecNormal
  • BfReadWord
  • BfWriteAngle
  • BfWriteAngles
  • BfWriteBool
  • BfWriteByte
  • BfWriteChar
  • BfWriteCoord
  • BfWriteEntity
  • BfWriteFloat
  • BfWriteNum
  • BfWriteShort
  • BfWriteString
  • BfWriteVecCoord
  • BfWriteVecNormal
  • BfWriteWord

clientprefs

Classes
  • Cookie
Types
  • CookieAccess
  • CookieMenu
  • CookieMenuAction
  • CookieMenuHandler
Forwards
  • OnClientCookiesCached
Functions
  • AreClientCookiesCached
  • FindClientCookie
  • GetClientCookie
  • GetClientCookieTime
  • GetCookieAccess
  • GetCookieIterator
  • ReadCookieIterator
  • RegClientCookie
  • SetAuthIdCookie
  • SetClientCookie
  • SetCookieMenuItem
  • SetCookiePrefabMenu
  • ShowCookieMenu
  • __ext_cprefs_SetNTVOptional

clients

Types
  • AuthIdType
  • NetFlow
Forwards
  • OnClientAuthorized
  • OnClientCommand
  • OnClientCommandKeyValues
  • OnClientCommandKeyValues_Post
  • OnClientConnect
  • OnClientConnected
  • OnClientDisconnect
  • OnClientDisconnect_Post
  • OnClientLanguageChanged
  • OnClientPostAdminCheck
  • OnClientPostAdminFilter
  • OnClientPreAdminCheck
  • OnClientPutInServer
  • OnClientSettingsChanged
  • OnServerEnterHibernation
  • OnServerExitHibernation
Functions
  • AddUserFlags
  • CanUserTarget
  • ChangeClientTeam
  • CreateFakeClient
  • GetClientAbsAngles
  • GetClientAbsOrigin
  • GetClientArmor
  • GetClientAuthId
  • GetClientAuthString
  • GetClientAvgChoke
  • GetClientAvgData
  • GetClientAvgLatency
  • GetClientAvgLoss
  • GetClientAvgPackets
  • GetClientCount
  • GetClientDataRate
  • GetClientDeaths
  • GetClientFrags
  • GetClientFromSerial
  • GetClientHealth
  • GetClientInfo
  • GetClientIP
  • GetClientLatency
  • GetClientMaxs
  • GetClientMins
  • GetClientModel
  • GetClientName
  • GetClientOfUserId
  • GetClientSerial
  • GetClientTeam
  • GetClientTime
  • GetClientUserId
  • GetClientWeapon
  • GetMaxClients
  • GetMaxHumanPlayers
  • GetSteamAccountID
  • GetUserAdmin
  • GetUserFlagBits
  • IsClientAuthorized
  • IsClientConnected
  • IsClientInGame
  • IsClientInKickQueue
  • IsClientObserver
  • IsClientReplay
  • IsClientSourceTV
  • IsClientTimingOut
  • IsFakeClient
  • IsPlayerAlive
  • KickClient
  • KickClientEx
  • NotifyPostAdminCheck
  • RemoveUserFlags
  • RunAdminCacheChecks
  • SetFakeClientConVar
  • SetUserAdmin
  • SetUserFlagBits
  • IsPlayerInGame

commandfilters

Types
  • MultiTargetFilter
Functions
  • AddMultiTargetFilter
  • ProcessTargetString
  • RemoveMultiTargetFilter
  • ReplyToTargetError

commandline

Functions
  • FindCommandLineParam
  • GetCommandLine
  • GetCommandLineParam
  • GetCommandLineParamFloat
  • GetCommandLineParamInt

console

Classes
  • CommandIterator
Types
  • CommandListener
  • ConCmd
  • QueryCookie
  • ReplySource
  • SrvCmd
Forwards
  • OnClientSayCommand
  • OnClientSayCommand_Post
Functions
  • AddCommandListener
  • AddServerTag
  • CheckAccess
  • CheckCommandAccess
  • ClientCommand
  • FakeClientCommand
  • FakeClientCommandEx
  • FakeClientCommandKeyValues
  • FindFirstConCommand
  • FindNextConCommand
  • FormatActivitySource
  • GetCmdArg
  • GetCmdArgs
  • GetCmdArgString
  • GetCmdReplySource
  • GetCommandFlags
  • GetCommandIterator
  • GetPublicChatTriggers
  • GetSilentChatTriggers
  • InsertServerCommand
  • IsChatTrigger
  • PrintToConsole
  • PrintToServer
  • ReadCommandIterator
  • RegAdminCmd
  • RegConsoleCmd
  • RegServerCmd
  • RemoveCommandListener
  • RemoveServerTag
  • ReplyToCommand
  • ServerCommand
  • ServerCommandEx
  • ServerExecute
  • SetCmdReplySource
  • SetCommandFlags
  • ShowActivity
  • ShowActivity2
  • ShowActivityEx
  • CommandExists
  • GetCmdArgFloat
  • GetCmdArgFloatEx
  • GetCmdArgInt
  • GetCmdArgIntEx
  • PrintToConsoleAll

convars

Classes
  • ConVar
Types
  • ConVarBounds
  • ConVarChanged
  • ConVarQueryFinished
  • ConVarQueryResult
Functions
  • CreateConVar
  • FindConVar
  • GetConVarBool
  • GetConVarBounds
  • GetConVarDefault
  • GetConVarFlags
  • GetConVarFloat
  • GetConVarInt
  • GetConVarName
  • GetConVarString
  • HookConVarChange
  • QueryClientConVar
  • ResetConVar
  • SendConVarValue
  • SetConVarBool
  • SetConVarBounds
  • SetConVarFlags
  • SetConVarFloat
  • SetConVarInt
  • SetConVarString
  • UnhookConVarChange
  • IsValidConVarChar

core

Types
  • Action
  • Identity
  • PluginInfo
  • PluginStatus
Functions
  • IsNullString
  • IsNullVector
  • MarkNativeAsOptional
  • VerifyCoreVersion
  • __ext_core_SetNTVOptional

cstrike

Types
  • CSRoundEndReason
  • CSWeaponID
Forwards
  • CS_OnBuyCommand
  • CS_OnCSWeaponDrop
  • CS_OnGetWeaponPrice
  • CS_OnTerminateRound
Functions
  • CS_AliasToWeaponID
  • CS_DropWeapon
  • CS_GetClientAssists
  • CS_GetClientClanTag
  • CS_GetClientContributionScore
  • CS_GetMVPCount
  • CS_GetTeamScore
  • CS_GetTranslatedWeaponAlias
  • CS_GetWeaponPrice
  • CS_IsValidWeaponID
  • CS_ItemDefIndexToID
  • CS_RespawnPlayer
  • CS_SetClientAssists
  • CS_SetClientClanTag
  • CS_SetClientContributionScore
  • CS_SetMVPCount
  • CS_SetTeamScore
  • CS_SwitchTeam
  • CS_TerminateRound
  • CS_UpdateClientModel
  • CS_WeaponIDToAlias
  • CS_WeaponIDToItemDefIndex
  • CS_WeaponIDToLoadoutSlot
  • __ext_cstrike_SetNTVOptional

datapack

Classes
  • DataPack
Types
  • DataPackPos
Functions
  • CreateDataPack
  • GetPackPosition
  • IsPackReadable
  • ReadPackCell
  • ReadPackFloat
  • ReadPackFunction
  • ReadPackString
  • ResetPack
  • SetPackPosition
  • WritePackCell
  • WritePackFloat
  • WritePackFunction
  • WritePackString

dbi

Classes
  • Database
  • DBDriver
  • DBResultSet
  • DBStatement
  • Transaction
Types
  • DBBindType
  • DBPriority
  • DBResult
  • SQLConnectCallback
  • SQLQueryCallback
  • SQLTCallback
  • SQLTxnFailure
  • SQLTxnSuccess
Functions
  • SQL_AddQuery
  • SQL_BindParamFloat
  • SQL_BindParamInt
  • SQL_BindParamString
  • SQL_CheckConfig
  • SQL_Connect
  • SQL_ConnectCustom
  • SQL_ConnectEx
  • SQL_CreateTransaction
  • SQL_EscapeString
  • SQL_Execute
  • SQL_ExecuteTransaction
  • SQL_FastQuery
  • SQL_FetchFloat
  • SQL_FetchInt
  • SQL_FetchMoreResults
  • SQL_FetchRow
  • SQL_FetchSize
  • SQL_FetchString
  • SQL_FieldNameToNum
  • SQL_FieldNumToName
  • SQL_FormatQuery
  • SQL_GetAffectedRows
  • SQL_GetDriver
  • SQL_GetDriverIdent
  • SQL_GetDriverProduct
  • SQL_GetError
  • SQL_GetFieldCount
  • SQL_GetInsertId
  • SQL_GetRowCount
  • SQL_HasResultSet
  • SQL_IsFieldNull
  • SQL_IsSameConnection
  • SQL_LockDatabase
  • SQL_MoreRows
  • SQL_PrepareQuery
  • SQL_Query
  • SQL_ReadDriver
  • SQL_Rewind
  • SQL_SetCharset
  • SQL_TConnect
  • SQL_TQuery
  • SQL_UnlockDatabase
  • SQLite_UseDatabase
  • SQL_DefConnect
  • SQL_QuoteString

dhooks

Classes
  • DHookParam
  • DHookReturn
  • DHookSetup
  • DynamicDetour
  • DynamicHook
Types
  • CallingConvention
  • DHookCallback
  • DHookPassFlag
  • DHookRegister
  • DHookRemovalCB
  • HookMode
  • HookParamType
  • HookType
  • ListenCB
  • ListenType
  • MRESReturn
  • ObjectValueType
  • ReturnType
  • ThisPointerType
Functions
  • DHookAddEntityListener
  • DHookAddParam
  • DHookCreate
  • DHookCreateDetour
  • DHookCreateFromConf
  • DHookDisableDetour
  • DHookEnableDetour
  • DHookEntity
  • DHookGamerules
  • DHookGetParam
  • DHookGetParamAddress
  • DHookGetParamObjectPtrString
  • DHookGetParamObjectPtrVar
  • DHookGetParamObjectPtrVarVector
  • DHookGetParamString
  • DHookGetParamVector
  • DHookGetReturn
  • DHookGetReturnString
  • DHookGetReturnVector
  • DHookIsNullParam
  • DHookRaw
  • DHookRemoveEntityListener
  • DHookRemoveHookID
  • DHookSetFromConf
  • DHookSetParam
  • DHookSetParamObjectPtrVar
  • DHookSetParamObjectPtrVarVector
  • DHookSetParamString
  • DHookSetParamVector
  • DHookSetReturn
  • DHookSetReturnString
  • DHookSetReturnVector
  • __ext_dhooks_SetNTVOptional

entity

Types
  • PropFieldType
  • PropType
Functions
  • ChangeEdictState
  • CreateEdict
  • FindDataMapInfo
  • FindDataMapOffs
  • FindSendPropInfo
  • FindSendPropOffs
  • GetEdictClassname
  • GetEdictFlags
  • GetEntData
  • GetEntDataEnt
  • GetEntDataEnt2
  • GetEntDataFloat
  • GetEntDataString
  • GetEntDataVector
  • GetEntityAddress
  • GetEntityCount
  • GetEntityNetClass
  • GetEntProp
  • GetEntPropArraySize
  • GetEntPropEnt
  • GetEntPropFloat
  • GetEntPropString
  • GetEntPropVector
  • GetMaxEntities
  • IsEntNetworkable
  • IsValidEdict
  • IsValidEntity
  • LoadEntityFromHandleAddress
  • RemoveEdict
  • RemoveEntity
  • SetEdictFlags
  • SetEntData
  • SetEntDataEnt
  • SetEntDataEnt2
  • SetEntDataFloat
  • SetEntDataString
  • SetEntDataVector
  • SetEntProp
  • SetEntPropEnt
  • SetEntPropFloat
  • SetEntPropString
  • SetEntPropVector
  • StoreEntityToHandleAddress
  • GetEntDataArray
  • GetEntityClassname
  • GetEntSendPropOffs
  • HasEntProp
  • SetEntDataArray

entitylump

Classes
  • EntityLump
  • EntityLumpEntry

entity_prop_stocks

Types
  • MoveType
  • RenderFx
  • RenderMode
Functions
  • GetEntityFlags
  • SetEntityFlags
  • GetClientButtons
  • GetEntityGravity
  • GetEntityMoveType
  • GetEntityRenderColor
  • GetEntityRenderFx
  • GetEntityRenderMode
  • SetEntityGravity
  • SetEntityHealth
  • SetEntityMoveType
  • SetEntityRenderColor
  • SetEntityRenderFx
  • SetEntityRenderMode

events

Classes
  • Event
Types
  • EventHook
  • EventHookMode
Functions
  • CancelCreatedEvent
  • CreateEvent
  • FireEvent
  • GetEventBool
  • GetEventFloat
  • GetEventInt
  • GetEventName
  • GetEventString
  • HookEvent
  • HookEventEx
  • SetEventBool
  • SetEventBroadcast
  • SetEventFloat
  • SetEventInt
  • SetEventString
  • UnhookEvent

files

Classes
  • DirectoryListing
  • File
Types
  • FileTimeMode
  • FileType
  • PathType
Functions
  • BuildPath
  • CreateDirectory
  • DeleteFile
  • DirExists
  • FileExists
  • FilePosition
  • FileSeek
  • FileSize
  • FlushFile
  • GetFilePermissions
  • GetFileTime
  • IsEndOfFile
  • LogToOpenFile
  • LogToOpenFileEx
  • OpenDirectory
  • OpenFile
  • ReadDirEntry
  • ReadFile
  • ReadFileLine
  • ReadFileString
  • RemoveDir
  • RenameFile
  • SetFilePermissions
  • WriteFile
  • WriteFileLine
  • WriteFileString
  • ReadFileCell
  • WriteFileCell

float

Functions
  • ArcCosine
  • ArcSine
  • ArcTangent
  • ArcTangent2
  • Cosine
  • Exponential
  • FloatAbs
  • FloatAdd
  • FloatCompare
  • FloatDiv
  • FloatFraction
  • FloatMod
  • FloatMul
  • FloatSub
  • GetURandomFloat
  • GetURandomInt
  • Logarithm
  • Pow
  • RoundToCeil
  • RoundToFloor
  • RoundToNearest
  • RoundToZero
  • SetURandomSeed
  • Sine
  • SquareRoot
  • Tangent
  • DegToRad
  • RadToDeg
  • RoundFloat
  • SetURandomSeedSimple

functions

Classes
  • GlobalForward
  • PrivateForward
Types
  • ExecType
  • NativeCall
  • ParamType
  • RequestFrameCallback
Functions
  • AddToForward
  • Call_Cancel
  • Call_Finish
  • Call_PushArray
  • Call_PushArrayEx
  • Call_PushCell
  • Call_PushCellRef
  • Call_PushFloat
  • Call_PushFloatRef
  • Call_PushNullString
  • Call_PushNullVector
  • Call_PushString
  • Call_PushStringEx
  • Call_StartForward
  • Call_StartFunction
  • CreateForward
  • CreateGlobalForward
  • CreateNative
  • FormatNativeString
  • GetForwardFunctionCount
  • GetFunctionByName
  • GetNativeArray
  • GetNativeCell
  • GetNativeCellRef
  • GetNativeFunction
  • GetNativeString
  • GetNativeStringLength
  • IsNativeParamNullString
  • IsNativeParamNullVector
  • RemoveAllFromForward
  • RemoveFromForward
  • RequestFrame
  • SetNativeArray
  • SetNativeCellRef
  • SetNativeString
  • ThrowNativeError

geoip

Types
  • Continent
Functions
  • GeoipCity
  • GeoipCode2
  • GeoipCode3
  • GeoipContinent
  • GeoipContinentCode
  • GeoipCountry
  • GeoipCountryEx
  • GeoipDistance
  • GeoipLatitude
  • GeoipLongitude
  • GeoipRegion
  • GeoipRegionCode
  • GeoipTimezone
  • __ext_geoip_SetNTVOptional

halflife

Types
  • ClientRangeType
  • DialogType
  • EngineVersion
  • FindMapResult
Functions
  • ClearSyncHud
  • CreateDialog
  • CreateHudSynchronizer
  • EntIndexToEntRef
  • EntRefToEntIndex
  • FindMap
  • GetClientsInRange
  • GetCurrentMap
  • GetEngineTime
  • GetEngineVersion
  • GetGameDescription
  • GetGameFolderName
  • GetGameFrameTime
  • GetGameTickCount
  • GetGameTime
  • GetMapDisplayName
  • GetRandomFloat
  • GetRandomInt
  • GetServerAuthId
  • GetServerSteamAccountId
  • GuessSDKVersion
  • IsDecalPrecached
  • IsDedicatedServer
  • IsGenericPrecached
  • IsMapValid
  • IsModelPrecached
  • IsSoundPrecached
  • LogToGame
  • MakeCompatEntRef
  • PrecacheDecal
  • PrecacheGeneric
  • PrecacheModel
  • PrecacheSentenceFile
  • PrecacheSound
  • PrintCenterText
  • PrintHintText
  • PrintToChat
  • SetHudTextParams
  • SetHudTextParamsEx
  • SetRandomSeed
  • ShowHudText
  • ShowSyncHudText
  • ShowVGUIPanel
  • DisplayAskConnectBox
  • PrintCenterTextAll
  • PrintHintTextToAll
  • PrintToChatAll
  • ShowMOTDPanel

handles

Classes
  • Handle
Types
  • Handle
Functions
  • CloneHandle
  • CloseHandle
  • IsValidHandle

helpers

Functions
  • FindPluginByFile
  • FindTarget
  • FormatUserLogText
  • LoadMaps
  • SearchForClients

keyvalues

Classes
  • KeyValues
Types
  • KvDataTypes
Functions
  • CreateKeyValues
  • FileToKeyValues
  • KeyValuesToFile
  • KvCopySubkeys
  • KvDeleteKey
  • KvDeleteThis
  • KvFindKeyById
  • KvGetColor
  • KvGetDataType
  • KvGetFloat
  • KvGetNameSymbol
  • KvGetNum
  • KvGetSectionName
  • KvGetSectionSymbol
  • KvGetString
  • KvGetUInt64
  • KvGetVector
  • KvGoBack
  • KvGotoFirstSubKey
  • KvGotoNextKey
  • KvJumpToKey
  • KvJumpToKeySymbol
  • KvNodesInStack
  • KvRewind
  • KvSavePosition
  • KvSetColor
  • KvSetEscapeSequences
  • KvSetFloat
  • KvSetNum
  • KvSetSectionName
  • KvSetString
  • KvSetUInt64
  • KvSetVector
  • StringToKeyValues

lang

Functions
  • GetClientLanguage
  • GetClientOriginalLanguage
  • GetLanguageByCode
  • GetLanguageByName
  • GetLanguageCount
  • GetLanguageInfo
  • GetServerLanguage
  • IsTranslatedForLanguage
  • LoadTranslations
  • SetClientLanguage
  • SetGlobalTransTarget
  • TranslationPhraseExists

logging

Types
  • GameLogHook
Forwards
  • OnLogAction
Functions
  • AddGameLogHook
  • LogAction
  • LogError
  • LogMessage
  • LogToFile
  • LogToFileEx
  • RemoveGameLogHook

mapchooser

Types
  • MapChange
  • NominateResult
Forwards
  • OnMapVoteStarted
  • OnNominationRemoved
Functions
  • CanMapChooserStartVote
  • EndOfMapVoteEnabled
  • GetExcludeMapList
  • GetNominatedMapList
  • HasEndOfMapVoteFinished
  • InitiateMapChooserVote
  • NominateMap
  • RemoveNominationByMap
  • RemoveNominationByOwner
  • __pl_mapchooser_SetNTVOptional

menus

Classes
  • Menu
  • Panel
Types
  • MenuAction
  • MenuHandler
  • MenuSource
  • MenuStyle
  • VoteHandler
Functions
  • AddMenuItem
  • CancelClientMenu
  • CancelMenu
  • CancelVote
  • CanPanelDrawFlags
  • CheckVoteDelay
  • CreateMenu
  • CreateMenuEx
  • CreatePanel
  • CreatePanelFromMenu
  • DisplayMenu
  • DisplayMenuAtItem
  • DrawPanelItem
  • DrawPanelText
  • GetClientMenu
  • GetMaxPageItems
  • GetMenuExitBackButton
  • GetMenuExitButton
  • GetMenuItem
  • GetMenuItemCount
  • GetMenuOptionFlags
  • GetMenuPagination
  • GetMenuSelectionPosition
  • GetMenuStyle
  • GetMenuStyleHandle
  • GetMenuTitle
  • GetPanelCurrentKey
  • GetPanelStyle
  • GetPanelTextRemaining
  • InsertMenuItem
  • InternalShowMenu
  • IsClientInVotePool
  • IsVoteInProgress
  • MenuSetClientMapping
  • MenuShufflePerClient
  • RedrawClientVoteMenu
  • RedrawMenuItem
  • RemoveAllMenuItems
  • RemoveMenuItem
  • SendPanelToClient
  • SetMenuExitBackButton
  • SetMenuExitButton
  • SetMenuNoVoteButton
  • SetMenuOptionFlags
  • SetMenuPagination
  • SetMenuTitle
  • SetPanelCurrentKey
  • SetPanelKeys
  • SetPanelTitle
  • SetVoteResultCallback
  • VoteMenu
  • GetMenuVoteInfo
  • IsNewVoteAllowed
  • VoteMenuToAll

nextmap

Functions
  • ForceChangeLevel
  • GetMapHistory
  • GetMapHistorySize
  • GetNextMap
  • SetNextMap

profiler

Classes
  • Profiler
Functions
  • CreateProfiler
  • EnterProfilingEvent
  • GetProfilerTime
  • IsProfilingActive
  • LeaveProfilingEvent
  • StartProfiling
  • StopProfiling

protobuf

Classes
  • Protobuf
Functions
  • PbAddAngle
  • PbAddBool
  • PbAddColor
  • PbAddFloat
  • PbAddInt
  • PbAddMessage
  • PbAddString
  • PbAddVector
  • PbAddVector2D
  • PbGetRepeatedFieldCount
  • PbReadAngle
  • PbReadBool
  • PbReadColor
  • PbReadFloat
  • PbReadInt
  • PbReadMessage
  • PbReadRepeatedMessage
  • PbReadString
  • PbReadVector
  • PbReadVector2D
  • PbRemoveRepeatedFieldValue
  • PbSetAngle
  • PbSetBool
  • PbSetColor
  • PbSetFloat
  • PbSetInt
  • PbSetString
  • PbSetVector
  • PbSetVector2D

regex

Classes
  • Regex
Types
  • RegexError
Functions
  • CompileRegex
  • GetRegexSubString
  • MatchRegex
  • SimpleRegexMatch
  • __ext_regex_SetNTVOptional

sdkhooks

Types
  • SDKHookCB
  • SDKHookType
  • UseType
Forwards
  • OnEntityCreated
  • OnEntityDestroyed
  • OnGetGameDescription
  • OnLevelInit
Functions
  • SDKHook
  • SDKHookEx
  • SDKHooks_DropWeapon
  • SDKHooks_TakeDamage
  • SDKUnhook

sdktools

Types
  • SDKCallType
  • SDKFuncConfSource
  • SDKLibrary
  • SDKPassMethod
  • SDKType
Functions
  • EndPrepSDKCall
  • GetPlayerResourceEntity
  • PrepSDKCall_AddParameter
  • PrepSDKCall_SetAddress
  • PrepSDKCall_SetFromConf
  • PrepSDKCall_SetReturnInfo
  • PrepSDKCall_SetSignature
  • PrepSDKCall_SetVirtual
  • SDKCall
  • StartPrepSDKCall

sdktools_client

Functions
  • InactivateClient
  • ReconnectClient

sdktools_engine

Functions
  • GetClientEyePosition
  • SetClientViewEntity
  • SetLightStyle

sdktools_entinput

Functions
  • AcceptEntityInput
  • SetVariantBool
  • SetVariantColor
  • SetVariantEntity
  • SetVariantFloat
  • SetVariantInt
  • SetVariantPosVector3D
  • SetVariantString
  • SetVariantVector3D

sdktools_entoutput

Types
  • EntityOutput
Functions
  • FireEntityOutput
  • HookEntityOutput
  • HookSingleEntityOutput
  • UnhookEntityOutput
  • UnhookSingleEntityOutput

sdktools_functions

Functions
  • ActivateEntity
  • CreateEntityByName
  • DispatchKeyValue
  • DispatchKeyValueFloat
  • DispatchKeyValueVector
  • DispatchSpawn
  • EntityCollisionRulesChanged
  • EquipPlayerWeapon
  • ExtinguishEntity
  • FindEntityByClassname
  • ForcePlayerSuicide
  • GetClientAimTarget
  • GetClientEyeAngles
  • GetEntityAttachment
  • GetPlayerDecalFile
  • GetPlayerJingleFile
  • GetPlayerWeaponSlot
  • GetServerNetStats
  • GetTeamClientCount
  • GetTeamCount
  • GetTeamEntity
  • GetTeamName
  • GetTeamScore
  • GivePlayerAmmo
  • GivePlayerItem
  • IgniteEntity
  • LookupEntityAttachment
  • RemovePlayerItem
  • SetClientInfo
  • SetClientName
  • SetEntityCollisionGroup
  • SetEntityModel
  • SetEntityOwner
  • SetTeamScore
  • SlapPlayer
  • TeleportEntity
  • DispatchKeyValueInt

sdktools_gamerules

Types
  • RoundState
Functions
  • GameRules_GetProp
  • GameRules_GetPropEnt
  • GameRules_GetPropFloat
  • GameRules_GetPropString
  • GameRules_GetPropVector
  • GameRules_SetProp
  • GameRules_SetPropEnt
  • GameRules_SetPropFloat
  • GameRules_SetPropString
  • GameRules_SetPropVector
  • GameRules_GetRoundState

sdktools_hooks

Forwards
  • OnFileReceive
  • OnFileSend
  • OnPlayerRunCmd
  • OnPlayerRunCmdPost
  • OnPlayerRunCmdPre

sdktools_sound

Types
  • AmbientSHook
  • NormalSHook
Functions
  • AddAmbientSoundHook
  • AddNormalSoundHook
  • EmitAmbientSound
  • EmitSentence
  • EmitSound
  • EmitSoundEntry
  • FadeClientVolume
  • GetDistGainFromSoundLevel
  • GetGameSoundParams
  • GetSoundDuration
  • PrecacheScriptSound
  • PrefetchSound
  • RemoveAmbientSoundHook
  • RemoveNormalSoundHook
  • StopSound
  • ATTN_TO_SNDLEVEL
  • EmitAmbientGameSound
  • EmitGameSound
  • EmitGameSoundToAll
  • EmitGameSoundToClient
  • EmitSoundToAll
  • EmitSoundToClient

sdktools_stocks

Functions
  • FindTeamByName

sdktools_stringtables

Functions
  • AddToStringTable
  • FindStringIndex
  • FindStringTable
  • GetNumStringTables
  • GetStringTableData
  • GetStringTableDataLength
  • GetStringTableMaxStrings
  • GetStringTableName
  • GetStringTableNumStrings
  • LockStringTables
  • ReadStringTable
  • SetStringTableData
  • AddFileToDownloadsTable

sdktools_tempents

Types
  • TEHook
Functions
  • AddTempEntHook
  • RemoveTempEntHook
  • TE_IsValidProp
  • TE_ReadEnt
  • TE_ReadFloat
  • TE_ReadNum
  • TE_ReadVector
  • TE_Send
  • TE_Start
  • TE_WriteAngles
  • TE_WriteEnt
  • TE_WriteFloat
  • TE_WriteFloatArray
  • TE_WriteNum
  • TE_WriteVector
  • TE_SendToAll
  • TE_SendToAllInRange
  • TE_SendToClient
  • TE_WriteEncodedEnt

sdktools_tempents_stocks

Functions
  • TE_SetupArmorRicochet
  • TE_SetupBeamFollow
  • TE_SetupBeamLaser
  • TE_SetupBeamPoints
  • TE_SetupBeamRing
  • TE_SetupBeamRingPoint
  • TE_SetupBloodSprite
  • TE_SetupDust
  • TE_SetupEnergySplash
  • TE_SetupExplosion
  • TE_SetupGlowSprite
  • TE_SetupMetalSparks
  • TE_SetupMuzzleFlash
  • TE_SetupSmoke
  • TE_SetupSparks

sdktools_trace

Types
  • RayType
  • TraceEntityEnumerator
  • TraceEntityFilter
  • TraceType
Functions
  • TR_AllSolid
  • TR_ClipCurrentRayToEntity
  • TR_ClipCurrentRayToEntityEx
  • TR_ClipRayHullToEntity
  • TR_ClipRayHullToEntityEx
  • TR_ClipRayToEntity
  • TR_ClipRayToEntityEx
  • TR_DidHit
  • TR_EnumerateEntities
  • TR_EnumerateEntitiesBox
  • TR_EnumerateEntitiesHull
  • TR_EnumerateEntitiesPoint
  • TR_EnumerateEntitiesSphere
  • TR_GetDisplacementFlags
  • TR_GetEndPosition
  • TR_GetEntityIndex
  • TR_GetFraction
  • TR_GetFractionLeftSolid
  • TR_GetHitBoxIndex
  • TR_GetHitGroup
  • TR_GetPhysicsBone
  • TR_GetPlaneNormal
  • TR_GetPointContents
  • TR_GetPointContentsEnt
  • TR_GetStartPosition
  • TR_GetSurfaceFlags
  • TR_GetSurfaceName
  • TR_GetSurfaceProps
  • TR_PointOutsideWorld
  • TR_StartSolid
  • TR_TraceHull
  • TR_TraceHullEx
  • TR_TraceHullFilter
  • TR_TraceHullFilterEx
  • TR_TraceRay
  • TR_TraceRayEx
  • TR_TraceRayFilter
  • TR_TraceRayFilterEx

sdktools_variant_t

Functions
  • SetVariantBool
  • SetVariantColor
  • SetVariantEntity
  • SetVariantFloat
  • SetVariantInt
  • SetVariantPosVector3D
  • SetVariantString
  • SetVariantVector3D

sdktools_voice

Types
  • ListenOverride
Forwards
  • OnClientSpeaking
  • OnClientSpeakingEnd
Functions
  • GetClientListening
  • GetClientListeningFlags
  • GetListenOverride
  • IsClientMuted
  • SetClientListening
  • SetClientListeningFlags
  • SetListenOverride

sorting

Types
  • SortFunc1D
  • SortFunc2D
  • SortFuncADTArray
  • SortOrder
  • SortType
Functions
  • SortADTArray
  • SortADTArrayCustom
  • SortCustom1D
  • SortCustom2D
  • SortFloats
  • SortIntegers
  • SortStrings

sourcemod

Classes
  • FrameIterator
  • GameData
  • PluginIterator
Types
  • APLRes
  • Address
  • FeatureStatus
  • FeatureType
  • NumberType
Forwards
  • AskPluginLoad
  • AskPluginLoad2
  • OnAllPluginsLoaded
  • OnAutoConfigsBuffered
  • OnClientFloodCheck
  • OnClientFloodResult
  • OnConfigsExecuted
  • OnGameFrame
  • OnLibraryAdded
  • OnLibraryRemoved
  • OnMapEnd
  • OnMapInit
  • OnMapStart
  • OnNotifyPluginUnloaded
  • OnPluginEnd
  • OnPluginPauseChange
  • OnPluginStart
  • OnServerCfg
Functions
  • AutoExecConfig
  • FindPluginByNumber
  • FormatTime
  • GameConfGetAddress
  • GameConfGetKeyValue
  • GameConfGetOffset
  • GetExtensionFileStatus
  • GetFeatureStatus
  • GetMyHandle
  • GetPluginFilename
  • GetPluginInfo
  • GetPluginIterator
  • GetPluginStatus
  • GetSysTickCount
  • GetTime
  • IsPluginDebugging
  • LibraryExists
  • LoadFromAddress
  • LoadGameConfigFile
  • LogStackTrace
  • MorePlugins
  • ParseTime
  • ReadMapList
  • ReadPlugin
  • RegPluginLibrary
  • RequireFeature
  • SetFailState
  • SetMapListCompatBind
  • StoreToAddress
  • ThrowError
  • CanTestFeatures

string

Functions
  • BreakString
  • FloatToString
  • Format
  • FormatEx
  • GetCharBytes
  • Int64ToString
  • IntToString
  • IsCharAlpha
  • IsCharLower
  • IsCharMB
  • IsCharNumeric
  • IsCharSpace
  • IsCharUpper
  • ReplaceString
  • ReplaceStringEx
  • SplitString
  • strcmp
  • StrContains
  • strcopy
  • StringToFloat
  • StringToFloatEx
  • StringToInt
  • StringToInt64
  • StringToIntEx
  • StripQuotes
  • strlen
  • strncmp
  • TrimString
  • VFormat
  • CharToLower
  • CharToUpper
  • ExplodeString
  • FindCharInString
  • ImplodeStrings
  • StrBreak
  • StrCat
  • StrCompare
  • StrEqual

testing

Functions
  • AssertArray2DEq
  • AssertArrayEq
  • AssertEq
  • AssertFalse
  • AssertStrArrayEq
  • AssertStrEq
  • AssertTrue
  • SetTestContext

textparse

Classes
  • SMCParser
Types
  • SMCError
  • SMCResult
  • SMC_EndSection
  • SMC_KeyValue
  • SMC_NewSection
  • SMC_ParseEnd
  • SMC_ParseStart
  • SMC_RawLine
Functions
  • SMC_CreateParser
  • SMC_GetErrorString
  • SMC_ParseFile
  • SMC_SetParseEnd
  • SMC_SetParseStart
  • SMC_SetRawLine
  • SMC_SetReaders

tf2

Types
  • TFClassType
  • TFCond
  • TFHoliday
  • TFObjectMode
  • TFObjectType
  • TFTeam
Forwards
  • TF2_CalcIsAttackCritical
  • TF2_OnConditionAdded
  • TF2_OnConditionRemoved
  • TF2_OnGetHoliday
  • TF2_OnIsHolidayActive
  • TF2_OnPlayerTeleport
  • TF2_OnWaitingForPlayersEnd
  • TF2_OnWaitingForPlayersStart
Functions
  • TF2_AddCondition
  • TF2_DisguisePlayer
  • TF2_GetClass
  • TF2_GetResourceEntity
  • TF2_IgnitePlayer
  • TF2_IsHolidayActive
  • TF2_IsPlayerInDuel
  • TF2_MakeBleed
  • TF2_RegeneratePlayer
  • TF2_RemoveCondition
  • TF2_RemovePlayerDisguise
  • TF2_RemoveWearable
  • TF2_RespawnPlayer
  • TF2_SetPlayerPowerPlay
  • TF2_StunPlayer
  • __ext_tf2_SetNTVOptional

tf2_stocks

Types
  • TFResourceType
Functions
  • TF2_ChangeClientTeam
  • TF2_GetClientTeam
  • TF2_GetObjectMode
  • TF2_GetObjectType
  • TF2_GetPlayerClass
  • TF2_GetPlayerConditionFlags
  • TF2_GetPlayerResourceData
  • TF2_IsPlayerInCondition
  • TF2_RemoveAllWeapons
  • TF2_RemoveWeaponSlot
  • TF2_SetPlayerClass
  • TF2_SetPlayerResourceData

timers

Types
  • Timer
Forwards
  • OnMapTimeLeftChanged
Functions
  • CreateTimer
  • ExtendMapTimeLimit
  • GetMapTimeLeft
  • GetMapTimeLimit
  • GetTickedTime
  • GetTickInterval
  • IsServerProcessing
  • KillTimer
  • TriggerTimer
  • CreateDataTimer

topmenus

Classes
  • TopMenu
Types
  • TopMenuAction
  • TopMenuHandler
  • TopMenuObject
  • TopMenuObjectType
  • TopMenuPosition
Functions
  • AddToTopMenu
  • CreateTopMenu
  • DisplayTopMenu
  • DisplayTopMenuCategory
  • FindTopMenuCategory
  • GetTopMenuInfoString
  • GetTopMenuObjName
  • LoadTopMenuConfig
  • RemoveFromTopMenu
  • SetTopMenuTitleCaching
  • __ext_topmenus_SetNTVOptional

usermessages

Types
  • MsgHook
  • MsgPostHook
  • UserMessageType
  • UserMsg
Functions
  • EndMessage
  • GetUserMessageId
  • GetUserMessageName
  • GetUserMessageType
  • HookUserMessage
  • StartMessage
  • StartMessageEx
  • UnhookUserMessage
  • StartMessageAll
  • StartMessageOne
  • UserMessageToBfRead
  • UserMessageToBfWrite
  • UserMessageToProtobuf

vector

Functions
  • GetAngleVectors
  • GetVectorAngles
  • GetVectorCrossProduct
  • GetVectorDistance
  • GetVectorDotProduct
  • GetVectorLength
  • GetVectorVectors
  • NormalizeVector
  • AddVectors
  • MakeVectorFromPoints
  • NegateVector
  • ScaleVector
  • SubtractVectors

version

Empty
This include file has no types, functions, or constants.
  1. testing.inc
  2. Overview
  3. File

Functions 8

Function Description
AssertArray2DEq

AssertArrayEq

AssertEq

AssertFalse

AssertStrArrayEq

AssertStrEq

AssertTrue

SetTestContext

This documentation was generated automatically using pawn-docgen written by xPaw for AlliedMods.