Global Properties

Properties that are accessible at a global level.

Properties

Namespace Declaration Description
<Global> const float WORLD_BOUNDARY Distance from the world origin to the world boundary in a single axis
String const CompareType DEFAULT_COMPARE Default comparison type.
String const string EMPTY_STRING Empty string. Useful when a reference to a string is needed.
String const string WHITESPACE_CHARACTERS A string that contains one instance of every whitespace character.
String const size_t INVALID_INDEX Sentinel value used by string methods.
String const size_t NO_MORE_TOKENS Sentinel value used by string tokenization when there are no tokens remaining.
Reflection CReflection g_Reflection Reflection global class instance.
<Global> CVirtualFileSystem g_FileSystem Global file system instance
<Global> CDebugger g_Debugger Debugger instance.
<Global> const Vector g_vecZero Zero vector (0, 0, 0)
<Global> CMath Math Math functions instance
<Global> const float VIEW_FIELD_FULL Full view field
<Global> const float VIEW_FIELD_WIDE Wide view field
<Global> const float VIEW_FIELD_NARROW Narrow view field
<Global> const float VIEW_FIELD_ULTRA_NARROW Ultra narrow view field
<Global> CDecals g_Decals Dynamic decal manager instance
<Global> const RGBA RGBA_MEDIUM_VIOLET_RED Medium violet red
<Global> const RGBA RGBA_DEEP_PINK Deep pink
<Global> const RGBA RGBA_PALE_VIOLET_RED Pale violet red
<Global> const RGBA RGBA_HOT_PINK Hot pink
<Global> const RGBA RGBA_LIGHT_PINK Light pink
<Global> const RGBA RGBA_PINK Pink
<Global> const RGBA RGBA_DARK_RED Dark red
<Global> const RGBA RGBA_RED Red
<Global> const RGBA RGBA_FIREBRICK Firebrick
<Global> const RGBA RGBA_CRIMSON Crimson
<Global> const RGBA RGBA_INDIAN_RED Indian red
<Global> const RGBA RGBA_LIGHT_CORAL Light coral
<Global> const RGBA RGBA_SALMON Salmon
<Global> const RGBA RGBA_DARK_SALMON Dark salmon
<Global> const RGBA RGBA_LIGHT_SALMON Light salmon
<Global> const RGBA RGBA_ORANGE_RED Orange red
<Global> const RGBA RGBA_TOMATO Tomato
<Global> const RGBA RGBA_DARK_ORANGE Dark orange
<Global> const RGBA RGBA_CORAL Coral
<Global> const RGBA RGBA_ORANGE Orange
<Global> const RGBA RGBA_DARK_KHAKI Dark khaki
<Global> const RGBA RGBA_GOLD Gold
<Global> const RGBA RGBA_KHAKI Khaki
<Global> const RGBA RGBA_PEACH_PUFF Peach puff
<Global> const RGBA RGBA_YELLOW Yellow
<Global> const RGBA RGBA_PALE_GOLDENROD Pale goldenrod
<Global> const RGBA RGBA_MOCCASIN Moccasin
<Global> const RGBA RGBA_PAPAYA_WHIP Papaya whip
<Global> const RGBA RGBA_LIGHT_GOLDENROD_YELLOW Light goldenrod yellow
<Global> const RGBA RGBA_LEMON_CHIFFON Lemon chiffon
<Global> const RGBA RGBA_LIGHT_YELLOW Light yellow
<Global> const RGBA RGBA_MAROON Maroon
<Global> const RGBA RGBA_BROWN Brown
<Global> const RGBA RGBA_SADDLE_BROWN Saddle brown
<Global> const RGBA RGBA_SIENNA Sienna
<Global> const RGBA RGBA_CHOCOLATE Chocolate
<Global> const RGBA RGBA_DARK_GOLDENROD Dark goldenrod
<Global> const RGBA RGBA_PERU Peru
<Global> const RGBA RGBA_ROSY_BROWN Rosy brown
<Global> const RGBA RGBA_GOLDENROD Goldenrod
<Global> const RGBA RGBA_SANDY_BROWN Sandy brown
<Global> const RGBA RGBA_TAN Tan
<Global> const RGBA RGBA_BURLYWOOD Burlywood
<Global> const RGBA RGBA_WHEAT Wheat
<Global> const RGBA RGBA_NAVAJO_WHITE Navajo white
<Global> const RGBA RGBA_BISQUE Bisque
<Global> const RGBA RGBA_BLANCHED_ALMOND Blanched almond
<Global> const RGBA RGBA_CORNSILK Cornsilk
<Global> const RGBA RGBA_INDIGO Indigo
<Global> const RGBA RGBA_PURPLE Purple
<Global> const RGBA RGBA_DARK_MAGENTA Dark magenta
<Global> const RGBA RGBA_DARK_VIOLET Dark violet
<Global> const RGBA RGBA_DARK_SLATE_BLUE Dark slate blue
<Global> const RGBA RGBA_BLUE_VIOLET Blue violet
<Global> const RGBA RGBA_DARK_ORCHID Dark orchid
<Global> const RGBA RGBA_FUCHSIA Fuchsia
<Global> const RGBA RGBA_MAGENTA Magenta
<Global> const RGBA RGBA_SLATE_BLUE Slate blue
<Global> const RGBA RGBA_MEDIUM_SLATE_BLUE Medium slate blue
<Global> const RGBA RGBA_MEDIUM_ORCHID Medium orchid
<Global> const RGBA RGBA_MEDIUM_PURPLE Medium purple
<Global> const RGBA RGBA_ORCHID Orchid
<Global> const RGBA RGBA_VIOLET Violet
<Global> const RGBA RGBA_PLUM Plum
<Global> const RGBA RGBA_THISTLE Thistle
<Global> const RGBA RGBA_LAVENDER Lavender
<Global> const RGBA RGBA_MIDNIGHT_BLUE Midnight blue
<Global> const RGBA RGBA_NAVY Navy
<Global> const RGBA RGBA_DARK_BLUE Dark blue
<Global> const RGBA RGBA_MEDIUM_BLUE Medium blue
<Global> const RGBA RGBA_BLUE Blue
<Global> const RGBA RGBA_ROYAL_BLUE Royal blue
<Global> const RGBA RGBA_STEEL_BLUE Steel blue
<Global> const RGBA RGBA_DODGER_BLUE Dodger blue
<Global> const RGBA RGBA_DEEP_SKY_BLUE Deep sky blue
<Global> const RGBA RGBA_CORNFLOWER_BLUE Cornflower blue
<Global> const RGBA RGBA_SKY_BLUE Sky blue
<Global> const RGBA RGBA_LIGHT_SKY_BLUE Light sky blue
<Global> const RGBA RGBA_LIGHT_STEEL_BLUE Light steel blue
<Global> const RGBA RGBA_LIGHT_BLUE Light blue
<Global> const RGBA RGBA_POWDER_BLUE Powder blue
<Global> const RGBA RGBA_TEAL Teal
<Global> const RGBA RGBA_DARK_CYAN Dark cyan
<Global> const RGBA RGBA_LIGHT_SEA_GREEN Light sea green
<Global> const RGBA RGBA_CADET_BLUE Cadet blue
<Global> const RGBA RGBA_DARK_TURQUOISE Dark turquoise
<Global> const RGBA RGBA_MEDIUM_TURQUOISE Medium turquoise
<Global> const RGBA RGBA_TURQUOISE Turquoise
<Global> const RGBA RGBA_AQUA Aqua
<Global> const RGBA RGBA_CYAN Cyan
<Global> const RGBA RGBA_AQUAMARINE Aquamarine
<Global> const RGBA RGBA_PALE_TURQUOISE Pale turquoise
<Global> const RGBA RGBA_LIGHT_CYAN Light cyan
<Global> const RGBA RGBA_DARK_GREEN Dark green
<Global> const RGBA RGBA_GREEN Green
<Global> const RGBA RGBA_DARK_OLIVE_GREEN Dark olive green
<Global> const RGBA RGBA_FOREST_GREEN Forest green
<Global> const RGBA RGBA_SEA_GREEN Sea green
<Global> const RGBA RGBA_OLIVE Olive
<Global> const RGBA RGBA_OLIVE_DRAB Olive drab
<Global> const RGBA RGBA_MEDIUM_SEA_GREEN Medium sea green
<Global> const RGBA RGBA_LIME_GREEN Lime green
<Global> const RGBA RGBA_LIME Lime
<Global> const RGBA RGBA_SPRING_GREEN Spring green
<Global> const RGBA RGBA_MEDIUM_SPRING_GREEN Medium spring green
<Global> const RGBA RGBA_DARK_SEA_GREEN Dark sea green
<Global> const RGBA RGBA_MEDIUM_AQUAMARINE Medium aquamarine
<Global> const RGBA RGBA_YELLOW_GREEN Yellow green
<Global> const RGBA RGBA_LAWN_GREEN Lawn green
<Global> const RGBA RGBA_CHARTREUSE Chartreuse
<Global> const RGBA RGBA_LIGHT_GREEN Light green
<Global> const RGBA RGBA_GREEN_YELLOW Green yellow
<Global> const RGBA RGBA_PALE_GREEN Pale green
<Global> const RGBA RGBA_MISTY_ROSE Misty rose
<Global> const RGBA RGBA_ANTIQUE_WHITE Antique white
<Global> const RGBA RGBA_LINEN Linen
<Global> const RGBA RGBA_BEIGE Beige
<Global> const RGBA RGBA_WHITE_SMOKE White smoke
<Global> const RGBA RGBA_LAVENDER_BLUSH Lavender blush
<Global> const RGBA RGBA_OLD_LACE Old lace
<Global> const RGBA RGBA_ALICE_BLUE Alice blue
<Global> const RGBA RGBA_SEASHELL Seashell
<Global> const RGBA RGBA_GHOST_WHITE Ghost white
<Global> const RGBA RGBA_HONEYDEW Honeydew
<Global> const RGBA RGBA_FLORAL_WHITE Floral white
<Global> const RGBA RGBA_AZURE Azure
<Global> const RGBA RGBA_MINT_CREAM Mint cream
<Global> const RGBA RGBA_SNOW Snow
<Global> const RGBA RGBA_IVORY Ivory
<Global> const RGBA RGBA_WHITE White
<Global> const RGBA RGBA_BLACK Black
<Global> const RGBA RGBA_DARK_SLATE_GRAY Dark slate gray
<Global> const RGBA RGBA_DIM_GRAY Dim gray
<Global> const RGBA RGBA_SLATE_GRAY Slate gray
<Global> const RGBA RGBA_GRAY Gray
<Global> const RGBA RGBA_LIGHT_SLATE_GRAY Light slate gray
<Global> const RGBA RGBA_DARK_GRAY Dark gray
<Global> const RGBA RGBA_SILVER Silver
<Global> const RGBA RGBA_LIGHT_GRAY Light gray
<Global> const RGBA RGBA_GAINSBORO Gainsboro
<Global> const RGBA RGBA_MS_MONEY_GREEN Money green (MS)
<Global> const RGBA RGBA_MS_SKY_BLUE Sky blue (MS)
<Global> const RGBA RGBA_MS_CREAN Cream (MS)
<Global> const RGBA RGBA_MS_MEDIUM_GRAY Medium gray (MS)
<Global> const RGBA RGBA_SVENCOOP Sven Co-op brand color
<Global> const RGBA RGBA_SVENCOOP_HUD Sven Co-op HUD color
<Global> CActivityMap g_ActivityMap Activity map instance
Schedules Schedule slIdleStand
Schedules Schedule slIdleTrigger
Schedules Schedule slIdleWalk
Schedules Schedule slWakeAngry
Schedules Schedule slAlertFace
Schedules Schedule slAlertStand
Schedules Schedule slCombatStand
Schedules Schedule slCombatFace
Schedules Schedule slReload
Schedules Schedule slRangeAttack1
Schedules Schedule slRangeAttack2
Schedules Schedule slChaseEnemy
Schedules Schedule slSmallFlinch
Schedules Schedule slDie
Schedules Schedule slError
Schedules Schedule slWalkToScript
Schedules Schedule slRunToScript
Schedules Schedule slWaitScript
Schedules Schedule slTakeCoverFromBestSound
Schedules Schedule slFail
<Global> const size_t MAX_OLD_ENEMIES How many old enemies to remember
<Global> const size_t ROUTE_SIZE How many waypoints a monster can store at one time
<Global> const Vector VEC_HULL_MIN Default hull minimum. Used with CEntityFuncs::SetSize
<Global> const Vector VEC_HULL_MAX Default hull maximum. Used with CEntityFuncs::SetSize
<Global> const Vector VEC_HUMAN_HULL_MIN Default human hull maximum. Used with CEntityFuncs::SetSize
<Global> const Vector VEC_HUMAN_HULL_MAX Default human hull maximum while standing. Used with CEntityFuncs::SetSize
<Global> const Vector VEC_HUMAN_HULL_DUCK Default human hull maximum while ducking. Used with CEntityFuncs::SetSize
<Global> const Vector VEC_VIEW View offset.
<Global> const Vector VEC_DUCK_HULL_MIN Hull minimum while ducking. Used with CEntityFuncs::SetSize
<Global> const Vector VEC_DUCK_HULL_MAX Hull maximum while ducking. Used with CEntityFuncs::SetSize
<Global> const Vector VEC_DUCK_VIEW Hull view offset while ducking.
<Global> const size_t MAX_AMMO_TYPES Maximum number of ammo types
<Global> const size_t MAX_ITEM_TYPES HUD item selection slots
<Global> const float AUTOAIM_2DEGREES Autoaim
<Global> const float AUTOAIM_5DEGREES Autoaim
<Global> const float AUTOAIM_8DEGREES Autoaim
<Global> const float AUTOAIM_10DEGREES Autoaim
<Global> const float PLAYERCOMMAND_WAIT Time between player vocal client commands
<Global> CEngineFuncs g_EngineFuncs Engine functions instance
<Global> CModelFuncs g_ModelFuncs Model functions instance
<Global> const size_t MAX_WORLD_SOUNDS maximum number of sounds handled by the world at one time.
See CSoundEnt.
<Global> const int SOUNDLIST_EMPTY Indicates that the sound list is empty.
See CSoundEnt.
<Global> const int SOUNDLISTTYPE_FREE Identifiers passed to functions that can operate on either list, to indicate which list to operate on.
See CSoundEnt.
<Global> const int SOUNDLISTTYPE_ACTIVE Identifiers passed to functions that can operate on either list, to indicate which list to operate on.
See CSoundEnt.
<Global> const int SOUND_NEVER_EXPIRE With this set as a sound's ExpireTime, the sound will never expire.
See CSoundEnt.
<Global> CInventoryMisc g_InventoryMisc Inventory misc functions instance
<Global> const int LOUD_GUN_VOLUME Parameter for CSoundEnt::InsertSound iVolume
<Global> const int NORMAL_GUN_VOLUME Parameter for CSoundEnt::InsertSound iVolume
<Global> const int QUIET_GUN_VOLUME Parameter for CSoundEnt::InsertSound iVolume
<Global> const int BRIGHT_GUN_FLASH Value used in CBasePlayer::m_iWeaponFlash
<Global> const int NORMAL_GUN_FLASH Value used in CBasePlayer::m_iWeaponFlash
<Global> const int DIM_GUN_FLASH Value used in CBasePlayer::m_iWeaponFlash
<Global> const int BIG_EXPLOSION_VOLUME Parameter for CSoundEnt::InsertSound iVolume
<Global> const int NORMAL_EXPLOSION_VOLUME Parameter for CSoundEnt::InsertSound iVolume
<Global> const int SMALL_EXPLOSION_VOLUME Parameter for CSoundEnt::InsertSound iVolume
<Global> const int WEAPON_ACTIVITY_VOLUME Parameter for CSoundEnt::InsertSound iVolume
<Global> const Vector VECTOR_CONE_1DEGREES
<Global> const Vector VECTOR_CONE_2DEGREES
<Global> const Vector VECTOR_CONE_3DEGREES
<Global> const Vector VECTOR_CONE_4DEGREES
<Global> const Vector VECTOR_CONE_5DEGREES
<Global> const Vector VECTOR_CONE_6DEGREES
<Global> const Vector VECTOR_CONE_7DEGREES
<Global> const Vector VECTOR_CONE_8DEGREES
<Global> const Vector VECTOR_CONE_9DEGREES
<Global> const Vector VECTOR_CONE_10DEGREES
<Global> const Vector VECTOR_CONE_15DEGREES
<Global> const Vector VECTOR_CONE_20DEGREES
<Global> const int WEAPON_NOCLIP Used for clips that don't use ammo.
<Global> CItemRegistry g_ItemRegistry Item registry global instance.
<Global> CEntityLoader g_EntityLoader Entity loader global instance
<Global> CCustomEntityFuncs g_CustomEntityFuncs Custom entity functions global instance.
<Global> CUtility g_Utility Utility methods instance
<Global> CGame g_Game Game functions instance
<Global> const float ATTN_NONE
<Global> const float ATTN_NORM
<Global> const float ATTN_IDLE
<Global> const float ATTN_STATIC
<Global> const float VOL_NORM Volume value normal
<Global> CSoundEngine g_SoundSystem Sound engine instance
<Global> CEngine g_Engine Engine global variables instance
<Global> const uint FTRACE_SIMPLEBOX Goes into g_Engine.trace_flags
Traceline with a simple box
<Global> CEntityFuncs g_EntityFuncs Global entity functions instance
<Global> CPlayerFuncs g_PlayerFuncs Global player functions instance
<Global> CWeaponFuncs g_WeaponFuncs Weapon functions global instance.
<Global> CGlobalState g_GlobalState Global state manager instance
<Global> CAngelscript g_Angelscript Angelscript debugging functions instance
<Global> CMapCycle g_MapCycle Map cycle manager instance
<Global> CMap g_Map Map state variables instance
<Global> CPluginManager g_PluginManager Plugin manager global instance.
<Global> CStartInventory g_StartInventory Player start inventory manager instance
<Global> CTextMenus g_TextMenus Text menu manager global instance
<Global> CAdminControl g_AdminControl CAdminControl instance for plugins
<Global> CLog g_Log Log global instance
<Global> CConCommandSystem g_ConCommandSystem CConCommandSystem global instance
<Global> CClassicMode g_ClassicMode Classic Mode global instance.
<Global> CSurvivalMode g_SurvivalMode Survival Mode global instance.
Hooks::Weapon const uint32 WeaponReload Called when a player reloads a weapon.
Hooks::Weapon const uint32 WeaponTertiaryAttack Called when a player fires a weapon's tertiary attack.
Hooks::Weapon const uint32 WeaponSecondaryAttack Called when a player fires a weapon's secondary attack.
Hooks::Weapon const uint32 WeaponPrimaryAttack Called when a player fires a weapon's primary attack.
Hooks::Player const uint32 PlayerPreDecal Called when a player attempts to spraypaint a decal onto a surface. The given trace result contains the surface information. Set bResult to false if the player shouldn't be able to spray.
Hooks::Player const uint32 PlayerDecal Called when a player is spraypainting a decal onto a surface. The given trace result contains the surface information.
Hooks::Player const uint32 PlayerRevived Called when a player is revived. At this point all the revival process is finished.
Hooks::Player const uint32 GetPlayerSpawnSpot Called when a player is about to get a spawn point before (re)spawning.
Hooks::Player const uint32 PlayerPostThink Called when the player is processing post think events.
Hooks::Player const uint32 PlayerPreThink Called when the player is processing pre think events.
Hooks::Player const uint32 PlayerUse Called when the game is processing player use input. Note that this occurs even if the player has not pressed their use key.
Hooks::Player const uint32 PlayerLeftObserver Called when a player leaves observer mode.
Hooks::Player const uint32 PlayerEnteredObserver Called when a player enters observer mode.
Hooks::Player const uint32 PlayerKilled Called when a player is killed.
Hooks::Player const uint32 PlayerTakeDamage Called when a player takes damage. Note that the victim entity can't be changed at this point.
Hooks::PickupObject const uint32 Collected Called when a pickup object is collected by a player.
Hooks::PickupObject const uint32 Materialize Called when a pickup object materializes.
Hooks::PickupObject const uint32 CanCollect Called when a pickup object is about to be collected by a player. Note that basic checks are done before this hook is called.
Hooks::Player const uint32 PlayerCanRespawn Called when the game wants to know if the player should be able to respawn or not.Set bCanRespawn to false to disallow, default true.
Hooks::Player const uint32 PlayerSpawn Called when a player (re)spawns.
Hooks::Player const uint32 ClientConnected Called when a player connects to the server. if bDisallowJoin is set to false, the player is disconnected. szRejectReason is shown to the player if disconnected. The maximum length of the reject reason string is 127 characters.
Hooks::Player const uint32 CanPlayerUseReservedSlot Called when a player connects to the server, and the number of slots left on the server is <= the number of reserved slots. Set bAllowJoin to true to allow the player to join (default false).
Hooks::Monster const uint32 MonsterTakeDamage Called when a monster takes damage.Note that the victim entity can't be changed at this point. Players also appear there as they're technically monsters too.
Hooks::Monster const uint32 MonsterKilled Called when a monster is killed.This may still be called even when the monster is taking damage while in a event (eg.: death animation). Players also appear there as they're technically monsters too.
Hooks::Player const uint32 ClientSay Called when a player says something in game chat. The SayParameters class can be used to manipulate input and veto the message.
Hooks::Player const uint32 ClientPutInServer Called when a player has finished connecting and is put into the world. It is safe to send network messages to the player at this point.
Hooks::Player const uint32 ClientDisconnect Called when a player disconnects. Note that this is only called if the player was fully connected, meaning the player went through ClientPutInServer. This is never called for the local host.
Hooks::Game const uint32 EntityCreated Called when a new entity is created. At this point the entity is not spawned yet and may not be fully initialized.
Hooks::Game const uint32 MapChange Called when the map changes. This happens when the world is destroyed. There may still be entities that exist at this point. String will show the next map will be, or empty if the server is shutting down.