Team Fortress 2/Scripting/Script Functions/Constants

From Valve Developer Community
Jump to navigation Jump to search

Full list of the enums and their constants found within the Constants table. To access a constant of an enum, an example would be Constants.HideHUD.HIDEHUD_CROSSHAIR.

Warning.pngWarning:Accessing constants is slow and can be tedious to type out. It is recommended to alias the constants (for example: ::IN_ATTACK <- Constants.FButtons.IN_ATTACK) or use the numerical value directly.
Icon-Bug.pngBug:Four constants listed on this page have a value of null instead of 0. This can be problematic as in Squirrel, 0 and null are not equal.
As a workaround, the constant can be redefined with the right value, for example ::TEAM_UNASSIGNED <- 0  [todo tested in?]
Tip.pngTip:A simple solution for both issues above is folding all the constants into global scope using the following short snippet of code (only needs to be ran once!). This allows accessing constants directly instead of having to type out the whole thing, and it runs approximately x2 faster too. E.g. CONTENTS_SOLID instead of Constants.FContents.CONTENTS_SOLID. This code includes a fix for the constants with null value, which get redefined as 0 instead.
::ROOT <- getroottable();
if (!("ConstantNamingConvention" in ROOT)) // make sure folding is only done once
{
	foreach (a,b in Constants)
		foreach (k,v in b)
			ROOT[k] <- v != null ? v : 0;
}

The purpose of the check for existing key is to prevent potential conflicts if any new constants with the same name are added in the future.


Standard Enum

An enum setup where each of its constants typically use integers in an ascending order as values, but not always.

EBotType

Name Value
TF_BOT_TYPE 1337

ECollisionGroup

See the main page for documentation on each collision group.

Name Value
COLLISION_GROUP_NONE 0
COLLISION_GROUP_DEBRIS 1
COLLISION_GROUP_DEBRIS_TRIGGER 2
COLLISION_GROUP_INTERACTIVE_DEBRIS 3
COLLISION_GROUP_INTERACTIVE 4
COLLISION_GROUP_PLAYER 5
COLLISION_GROUP_BREAKABLE_GLASS 6
COLLISION_GROUP_VEHICLE 7
COLLISION_GROUP_PLAYER_MOVEMENT 8
COLLISION_GROUP_NPC 9
COLLISION_GROUP_IN_VEHICLE 10
COLLISION_GROUP_WEAPON 11
COLLISION_GROUP_VEHICLE_CLIP 12
COLLISION_GROUP_PROJECTILE 13
COLLISION_GROUP_DOOR_BLOCKER 14
COLLISION_GROUP_PASSABLE_DOOR 15
COLLISION_GROUP_DISSOLVING 16
COLLISION_GROUP_PUSHAWAY 17
COLLISION_GROUP_NPC_ACTOR 18
COLLISION_GROUP_NPC_SCRIPTED 19
LAST_SHARED_COLLISION_GROUP 20
Note.pngNote:Team Fortress 2 Team Fortress 2 has extended collision groups, see below.

ECritType

Name Value
CRIT_NONE 0
CRIT_MINI 1
CRIT_FULL 2

EHitGroup

Name Value
HITGROUP_GENERIC null
Icon-Bug.pngBug:This is supposed to be 0  [todo tested in?]
HITGROUP_HEAD 1
HITGROUP_CHEST 2
HITGROUP_STOMACH 3
HITGROUP_LEFTARM 4
HITGROUP_RIGHTARM 5
HITGROUP_LEFTLEG 6
HITGROUP_RIGHTLEG 7
HITGROUP_GEAR 10

EHoliday

Name Value
kHoliday_None 0
kHoliday_TFBirthday 1
kHoliday_Halloween 2
kHoliday_Christmas 3
kHoliday_CommunityUpdate 4
kHoliday_EOTL 5
kHoliday_Valentines 6
kHoliday_MeetThePyro 7
kHoliday_FullMoon 8
kHoliday_HalloweenOrFullMoon 9
kHoliday_HalloweenOrFullMoonOrValentines 10
kHoliday_AprilFools 11
kHoliday_Soldier 12
kHoliday_Summer 13
kHolidayCount 14

EHudNotify

Name Value
HUD_PRINTNOTIFY 1
HUD_PRINTCONSOLE 2
HUD_PRINTTALK 3
HUD_PRINTCENTER 4

EMoveCollide

Name Value
MOVECOLLIDE_DEFAULT 0
MOVECOLLIDE_FLY_BOUNCE 1
MOVECOLLIDE_FLY_CUSTOM 2
MOVECOLLIDE_FLY_SLIDE 3
MOVECOLLIDE_MAX_BITS 3
MOVECOLLIDE_COUNT 4

EMoveType

Name Value
MOVETYPE_NONE 0
MOVETYPE_ISOMETRIC 1
MOVETYPE_WALK 2
MOVETYPE_STEP 3
MOVETYPE_FLY 4
MOVETYPE_FLYGRAVITY 5
MOVETYPE_VPHYSICS 6
MOVETYPE_PUSH 7
MOVETYPE_NOCLIP 8
MOVETYPE_LADDER 9
MOVETYPE_OBSERVER 10
MOVETYPE_CUSTOM 11
MOVETYPE_LAST 11

ENavCornerType

Name Value
NORTH_WEST 0
NORTH_EAST 1
SOUTH_EAST 2
SOUTH_WEST 3
NUM_CORNERS 4

ENavDirType

Name Value
NORTH 0
EAST 1
SOUTH 2
WEST 3
NUM_DIRECTIONS 4

ENavRelativeDirType

Name Value
FORWARD 0
RIGHT 1
BACKWARD 2
LEFT 3
UP 4
DOWN 5
NUM_RELATIVE_DIRECTIONS 6

ENavTraverseType

Name Value
GO_NORTH 0
GO_EAST 1
GO_SOUTH 2
GO_WEST 3
GO_LADDER_UP 4
GO_LADDER_DOWN 5
GO_JUMP 6
GO_ELEVATOR_UP 7
GO_ELEVATOR_DOWN 8
NUM_TRAVERSE_TYPES 9

ERenderFx

Name Value
kRenderFxNone 0
kRenderFxPulseSlow 1
kRenderFxPulseFast 2
kRenderFxPulseSlowWide 3
kRenderFxPulseFastWide 4
kRenderFxFadeSlow 5
kRenderFxFadeFast 6
kRenderFxSolidSlow 7
kRenderFxSolidFast 8
kRenderFxStrobeSlow 9
kRenderFxStrobeFast 10
kRenderFxStrobeFaster 11
kRenderFxFlickerSlow 12
kRenderFxFlickerFast 13
kRenderFxNoDissipation 14
kRenderFxDistort 15
kRenderFxHologram 16
kRenderFxExplode 17
kRenderFxGlowShell 18
kRenderFxClampMinScale 19
kRenderFxEnvRain 20
kRenderFxEnvSnow 21
kRenderFxSpotlight 22
kRenderFxRagdoll 23
kRenderFxPulseFastWider 24
kRenderFxMax 25

ERenderMode

Name Value
kRenderNormal 0
kRenderTransColor 1
kRenderTransTexture 2
kRenderGlow 3
kRenderTransAlpha 4
kRenderTransAdd 5
kRenderEnvironmental 6
kRenderTransAddFrameBlend 7
kRenderTransAlphaAdd 8
kRenderWorldGlow 9
kRenderNone 10
kRenderModeCount 11

ERoundState

Name Value
GR_STATE_INIT 0
GR_STATE_PREGAME 1
GR_STATE_STARTGAME 2
GR_STATE_PREROUND 3
GR_STATE_RND_RUNNING 4
GR_STATE_TEAM_WIN 5
GR_STATE_RESTART 6
GR_STATE_STALEMATE 7
GR_STATE_GAME_OVER 8
GR_STATE_BONUS 9
Icon-Bug.pngBug:This constant entry is missing!  [todo tested in?]
GR_STATE_BETWEEN_RNDS 10
Icon-Bug.pngBug:This constant entry is missing!  [todo tested in?]
GR_NUM_ROUND_STATES 11

EScriptRecipientFilter

Name Value
RECIPIENT_FILTER_DEFAULT 0
RECIPIENT_FILTER_PAS_ATTENUATION 1
RECIPIENT_FILTER_PAS 2
RECIPIENT_FILTER_PVS 3
RECIPIENT_FILTER_SINGLE_PLAYER 4
RECIPIENT_FILTER_GLOBAL 5
RECIPIENT_FILTER_TEAM 6

ESolidType

Name Value
SOLID_NONE 0
SOLID_BSP 1
SOLID_BBOX 2
SOLID_OBB 3
SOLID_OBB_YAW 4
SOLID_CUSTOM 5
SOLID_VPHYSICS 6
SOLID_LAST 7

ESpectatorMode

Name Value
OBS_MODE_NONE 0
OBS_MODE_DEATHCAM 1
OBS_MODE_FREEZECAM 2
OBS_MODE_FIXED 3
OBS_MODE_IN_EYE 4
OBS_MODE_CHASE 5
OBS_MODE_POI 6
OBS_MODE_ROAMING 7
NUM_OBSERVER_MODES 8

EStopwatchState

Name Value
STOPWATCH_CAPTURE_TIME_NOT_SET 0
STOPWATCH_RUNNING 1
STOPWATCH_OVERTIME 2

ETFBotDifficultyType

Name Value
EASY 0
NORMAL 1
HARD 2
EXPERT 3
NUM_DIFFICULTY_LEVELS 4
UNDEFINED -1

ETFClass

Name Value
TF_CLASS_UNDEFINED 0
TF_CLASS_SCOUT 1
TF_CLASS_SNIPER 2
TF_CLASS_SOLDIER 3
TF_CLASS_DEMOMAN 4
TF_CLASS_MEDIC 5
TF_CLASS_HEAVYWEAPONS 6
TF_CLASS_PYRO 7
TF_CLASS_SPY 8
TF_CLASS_ENGINEER 9
TF_CLASS_CIVILIAN 10
TF_CLASS_COUNT_ALL 11
TF_CLASS_RANDOM 12

ETFCond

Name Value
TF_COND_AIMING 0
TF_COND_ZOOMED 1
TF_COND_DISGUISING 2
TF_COND_DISGUISED 3
TF_COND_STEALTHED 4
TF_COND_INVULNERABLE 5
TF_COND_TELEPORTED 6
TF_COND_TAUNTING 7
TF_COND_INVULNERABLE_WEARINGOFF 8
TF_COND_STEALTHED_BLINK 9
TF_COND_SELECTED_TO_TELEPORT 10
TF_COND_CRITBOOSTED 11
TF_COND_TMPDAMAGEBONUS 12
TF_COND_FEIGN_DEATH 13
TF_COND_PHASE 14
TF_COND_STUNNED 15
TF_COND_OFFENSEBUFF 16
TF_COND_SHIELD_CHARGE 17
TF_COND_DEMO_BUFF 18
TF_COND_ENERGY_BUFF 19
TF_COND_RADIUSHEAL 20
TF_COND_HEALTH_BUFF 21
TF_COND_BURNING 22
TF_COND_HEALTH_OVERHEALED 23
TF_COND_URINE 24
TF_COND_BLEEDING 25
TF_COND_DEFENSEBUFF 26
TF_COND_MAD_MILK 27
TF_COND_MEGAHEAL 28
TF_COND_REGENONDAMAGEBUFF 29
TF_COND_MARKEDFORDEATH 30
TF_COND_NOHEALINGDAMAGEBUFF 31
TF_COND_SPEED_BOOST 32
TF_COND_CRITBOOSTED_PUMPKIN 33
TF_COND_CRITBOOSTED_USER_BUFF 34
TF_COND_CRITBOOSTED_DEMO_CHARGE 35
TF_COND_SODAPOPPER_HYPE 36
TF_COND_CRITBOOSTED_FIRST_BLOOD 37
TF_COND_CRITBOOSTED_BONUS_TIME 38
TF_COND_CRITBOOSTED_CTF_CAPTURE 39
TF_COND_CRITBOOSTED_ON_KILL 40
TF_COND_CANNOT_SWITCH_FROM_MELEE 41
TF_COND_DEFENSEBUFF_NO_CRIT_BLOCK 42
TF_COND_REPROGRAMMED 43
TF_COND_CRITBOOSTED_RAGE_BUFF 44
TF_COND_DEFENSEBUFF_HIGH 45
TF_COND_SNIPERCHARGE_RAGE_BUFF 46
TF_COND_DISGUISE_WEARINGOFF 47
TF_COND_MARKEDFORDEATH_SILENT 48
TF_COND_DISGUISED_AS_DISPENSER 49
TF_COND_SAPPED 50
TF_COND_INVULNERABLE_HIDE_UNLESS_DAMAGED 51
TF_COND_INVULNERABLE_USER_BUFF 52
TF_COND_HALLOWEEN_BOMB_HEAD 53
TF_COND_HALLOWEEN_THRILLER 54
TF_COND_RADIUSHEAL_ON_DAMAGE 55
TF_COND_CRITBOOSTED_CARD_EFFECT 56
TF_COND_INVULNERABLE_CARD_EFFECT 57
TF_COND_MEDIGUN_UBER_BULLET_RESIST 58
TF_COND_MEDIGUN_UBER_BLAST_RESIST 59
TF_COND_MEDIGUN_UBER_FIRE_RESIST 60
TF_COND_MEDIGUN_SMALL_BULLET_RESIST 61
TF_COND_MEDIGUN_SMALL_BLAST_RESIST 62
TF_COND_MEDIGUN_SMALL_FIRE_RESIST 63
TF_COND_STEALTHED_USER_BUFF 64
TF_COND_MEDIGUN_DEBUFF 65
TF_COND_STEALTHED_USER_BUFF_FADING 66
TF_COND_BULLET_IMMUNE 67
TF_COND_BLAST_IMMUNE 68
TF_COND_FIRE_IMMUNE 69
TF_COND_PREVENT_DEATH 70
TF_COND_MVM_BOT_STUN_RADIOWAVE 71
TF_COND_HALLOWEEN_SPEED_BOOST 72
TF_COND_HALLOWEEN_QUICK_HEAL 73
TF_COND_HALLOWEEN_GIANT 74
TF_COND_HALLOWEEN_TINY 75
TF_COND_HALLOWEEN_IN_HELL 76
TF_COND_HALLOWEEN_GHOST_MODE 77
TF_COND_MINICRITBOOSTED_ON_KILL 78
TF_COND_OBSCURED_SMOKE 79
TF_COND_PARACHUTE_ACTIVE 80
TF_COND_BLASTJUMPING 81
TF_COND_HALLOWEEN_KART 82
TF_COND_HALLOWEEN_KART_DASH 83
TF_COND_BALLOON_HEAD 84
TF_COND_MELEE_ONLY 85
TF_COND_SWIMMING_CURSE 86
TF_COND_FREEZE_INPUT 87
TF_COND_HALLOWEEN_KART_CAGE 88
TF_COND_DONOTUSE_0 89
TF_COND_RUNE_STRENGTH 90
TF_COND_RUNE_HASTE 91
TF_COND_RUNE_REGEN 92
TF_COND_RUNE_RESIST 93
TF_COND_RUNE_VAMPIRE 94
TF_COND_RUNE_REFLECT 95
TF_COND_RUNE_PRECISION 96
TF_COND_RUNE_AGILITY 97
TF_COND_GRAPPLINGHOOK 98
TF_COND_GRAPPLINGHOOK_SAFEFALL 99
TF_COND_GRAPPLINGHOOK_LATCHED 100
TF_COND_GRAPPLINGHOOK_BLEEDING 101
TF_COND_AFTERBURN_IMMUNE 102
TF_COND_RUNE_KNOCKOUT 103
TF_COND_RUNE_IMBALANCE 104
TF_COND_CRITBOOSTED_RUNE_TEMP 105
TF_COND_PASSTIME_INTERCEPTION 106
TF_COND_SWIMMING_NO_EFFECTS 107
TF_COND_PURGATORY 108
TF_COND_RUNE_KING 109
TF_COND_RUNE_PLAGUE 110
TF_COND_RUNE_SUPERNOVA 111
TF_COND_PLAGUE 112
TF_COND_KING_BUFFED 113
TF_COND_TEAM_GLOWS 114
TF_COND_KNOCKED_INTO_AIR 115
TF_COND_COMPETITIVE_WINNER 116
TF_COND_COMPETITIVE_LOSER 117
TF_COND_HEALING_DEBUFF 118
TF_COND_PASSTIME_PENALTY_DEBUFF 119
TF_COND_GRAPPLED_TO_PLAYER 120
TF_COND_GRAPPLED_BY_PLAYER 121
TF_COND_PARACHUTE_DEPLOYED 122
TF_COND_GAS 123
TF_COND_BURNING_PYRO 124
TF_COND_ROCKETPACK 125
TF_COND_LOST_FOOTING 126
TF_COND_AIR_CURRENT 127
TF_COND_HALLOWEEN_HELL_HEAL 128
TF_COND_POWERUPMODE_DOMINANT 129
TF_COND_IMMUNE_TO_PUSHBACK 130
TF_COND_INVALID -1

ETFDmgCustom

Name Value
TF_DMG_CUSTOM_NONE 0
TF_DMG_CUSTOM_HEADSHOT 1
TF_DMG_CUSTOM_BACKSTAB 2
TF_DMG_CUSTOM_BURNING 3
TF_DMG_WRENCH_FIX 4
TF_DMG_CUSTOM_MINIGUN 5
TF_DMG_CUSTOM_SUICIDE 6
TF_DMG_CUSTOM_TAUNTATK_HADOUKEN 7
TF_DMG_CUSTOM_BURNING_FLARE 8
TF_DMG_CUSTOM_TAUNTATK_HIGH_NOON 9
TF_DMG_CUSTOM_TAUNTATK_GRAND_SLAM 10
TF_DMG_CUSTOM_PENETRATE_MY_TEAM 11
TF_DMG_CUSTOM_PENETRATE_ALL_PLAYERS 12
TF_DMG_CUSTOM_TAUNTATK_FENCING 13
TF_DMG_CUSTOM_PENETRATE_NONBURNING_TEAMMATE 14
TF_DMG_CUSTOM_TAUNTATK_ARROW_STAB 15
TF_DMG_CUSTOM_TELEFRAG 16
TF_DMG_CUSTOM_BURNING_ARROW 17
TF_DMG_CUSTOM_FLYINGBURN 18
TF_DMG_CUSTOM_PUMPKIN_BOMB 19
TF_DMG_CUSTOM_DECAPITATION 20
TF_DMG_CUSTOM_TAUNTATK_GRENADE 21
TF_DMG_CUSTOM_BASEBALL 22
TF_DMG_CUSTOM_CHARGE_IMPACT 23
TF_DMG_CUSTOM_TAUNTATK_BARBARIAN_SWING 24
TF_DMG_CUSTOM_AIR_STICKY_BURST 25
TF_DMG_CUSTOM_DEFENSIVE_STICKY 26
TF_DMG_CUSTOM_PICKAXE 27
TF_DMG_CUSTOM_ROCKET_DIRECTHIT 28
TF_DMG_CUSTOM_TAUNTATK_UBERSLICE 29
TF_DMG_CUSTOM_PLAYER_SENTRY 30
TF_DMG_CUSTOM_STANDARD_STICKY 31
TF_DMG_CUSTOM_SHOTGUN_REVENGE_CRIT 32
TF_DMG_CUSTOM_TAUNTATK_ENGINEER_GUITAR_SMASH 33
TF_DMG_CUSTOM_BLEEDING 34
TF_DMG_CUSTOM_GOLD_WRENCH 35
TF_DMG_CUSTOM_CARRIED_BUILDING 36
TF_DMG_CUSTOM_COMBO_PUNCH 37
TF_DMG_CUSTOM_TAUNTATK_ENGINEER_ARM_KILL 38
TF_DMG_CUSTOM_FISH_KILL 39
TF_DMG_CUSTOM_TRIGGER_HURT 40
TF_DMG_CUSTOM_DECAPITATION_BOSS 41
TF_DMG_CUSTOM_STICKBOMB_EXPLOSION 42
TF_DMG_CUSTOM_AEGIS_ROUND 43
TF_DMG_CUSTOM_FLARE_EXPLOSION 44
TF_DMG_CUSTOM_BOOTS_STOMP 45
TF_DMG_CUSTOM_PLASMA 46
TF_DMG_CUSTOM_PLASMA_CHARGED 47
TF_DMG_CUSTOM_PLASMA_GIB 48
TF_DMG_CUSTOM_PRACTICE_STICKY 49
TF_DMG_CUSTOM_EYEBALL_ROCKET 50
TF_DMG_CUSTOM_HEADSHOT_DECAPITATION 51
TF_DMG_CUSTOM_TAUNTATK_ARMAGEDDON 52
TF_DMG_CUSTOM_FLARE_PELLET 53
TF_DMG_CUSTOM_CLEAVER 54
TF_DMG_CUSTOM_CLEAVER_CRIT 55
TF_DMG_CUSTOM_SAPPER_RECORDER_DEATH 56
TF_DMG_CUSTOM_MERASMUS_PLAYER_BOMB 57
TF_DMG_CUSTOM_MERASMUS_GRENADE 58
TF_DMG_CUSTOM_MERASMUS_ZAP 59
TF_DMG_CUSTOM_MERASMUS_DECAPITATION 60
TF_DMG_CUSTOM_CANNONBALL_PUSH 61
TF_DMG_CUSTOM_TAUNTATK_ALLCLASS_GUITAR_RIFF 62
TF_DMG_CUSTOM_THROWABLE 63
TF_DMG_CUSTOM_THROWABLE_KILL 64
TF_DMG_CUSTOM_SPELL_TELEPORT 65
TF_DMG_CUSTOM_SPELL_SKELETON 66
TF_DMG_CUSTOM_SPELL_MIRV 67
TF_DMG_CUSTOM_SPELL_METEOR 68
TF_DMG_CUSTOM_SPELL_LIGHTNING 69
TF_DMG_CUSTOM_SPELL_FIREBALL 70
TF_DMG_CUSTOM_SPELL_MONOCULUS 71
TF_DMG_CUSTOM_SPELL_BLASTJUMP 72
TF_DMG_CUSTOM_SPELL_BATS 73
TF_DMG_CUSTOM_SPELL_TINY 74
TF_DMG_CUSTOM_KART 75
TF_DMG_CUSTOM_GIANT_HAMMER 76
TF_DMG_CUSTOM_RUNE_REFLECT 77
TF_DMG_CUSTOM_DRAGONS_FURY_IGNITE 78
TF_DMG_CUSTOM_DRAGONS_FURY_BONUS_BURNING 79
TF_DMG_CUSTOM_SLAP_KILL 80
TF_DMG_CUSTOM_CROC 81
TF_DMG_CUSTOM_TAUNTATK_GASBLAST 82
TF_DMG_CUSTOM_AXTINGUISHER_BOOSTED 83
TF_DMG_CUSTOM_KRAMPUS_MELEE 84
TF_DMG_CUSTOM_KRAMPUS_RANGED 85
TF_DMG_CUSTOM_END 86

ETFTeam

Name Value
TEAM_UNASSIGNED null
Icon-Bug.pngBug:This is supposed to be 0  [todo tested in?]
TEAM_SPECTATOR 1
TF_TEAM_PVE_DEFENDERS 2
TF_TEAM_RED 2
TF_TEAM_BLUE 3
TF_TEAM_PVE_INVADERS 3
TF_TEAM_COUNT 4
TF_TEAM_PVE_INVADERS_GIANTS 4
TEAM_ANY -2
TEAM_INVALID -1

Math

Name Value
Zero 0
Epsilon 1.19209e-07
GoldenRatio 1.61803
One 1
Sqrt2 1.41421
Sqrt3 1.73205
E 2.71828
Pi 3.14159
Tau 6.28319

Server

Name Value
ConstantNamingConvention Constants are named as follows: F -> flags, E -> enums, (nothing) -> random values/constants
DIST_EPSILON 0.03125
MAX_PLAYERS 101
MAX_EDICTS 2048

Bit Fields

These enums setup their constants by using shifted bit values, a defining trait of bit fields. It may be necessary to account for multiple constants of the same enum at once, necessitating the use of bitwise operators.

FButtons

Name Value
IN_ATTACK 1
IN_JUMP 2
IN_DUCK 4
IN_FORWARD 8
IN_BACK 16
IN_USE 32
IN_CANCEL 64
IN_LEFT 128
IN_RIGHT 256
IN_MOVELEFT 512
IN_MOVERIGHT 1024
IN_ATTACK2 2048
IN_RUN 4096
IN_RELOAD 8192
IN_ALT1 16384
IN_ALT2 32768
IN_SCORE 65536
IN_SPEED 131072
IN_WALK 262144
IN_ZOOM 524288
IN_WEAPON1 1048576
IN_WEAPON2 2097152
IN_BULLRUSH 4194304
IN_GRENADE1 8388608
IN_GRENADE2 16777216
IN_ATTACK3 33554432

FContents

Name Value
CONTENTS_EMPTY null
Icon-Bug.pngBug:This is supposed to be 0  [todo tested in?]
CONTENTS_SOLID 1
CONTENTS_WINDOW 2
CONTENTS_AUX 4
CONTENTS_GRATE 8
CONTENTS_SLIME 16
CONTENTS_WATER 32
CONTENTS_BLOCKLOS 64
CONTENTS_OPAQUE 128
LAST_VISIBLE_CONTENTS 128
ALL_VISIBLE_CONTENTS 255
CONTENTS_TESTFOGVOLUME 256
CONTENTS_UNUSED 512
CONTENTS_UNUSED6 1024
CONTENTS_TEAM1 2048
CONTENTS_TEAM2 4096
CONTENTS_IGNORE_NODRAW_OPAQUE 8192
CONTENTS_MOVEABLE 16384
CONTENTS_AREAPORTAL 32768
CONTENTS_PLAYERCLIP 65536
CONTENTS_MONSTERCLIP 131072
CONTENTS_CURRENT_0 262144
CONTENTS_CURRENT_90 524288
CONTENTS_CURRENT_180 1048576
CONTENTS_CURRENT_270 2097152
CONTENTS_CURRENT_UP 4194304
CONTENTS_CURRENT_DOWN 8388608
CONTENTS_ORIGIN 16777216
CONTENTS_MONSTER 33554432
CONTENTS_DEBRIS 67108864
CONTENTS_DETAIL 134217728
CONTENTS_TRANSLUCENT 268435456
CONTENTS_LADDER 536870912
CONTENTS_HITBOX 1073741824

FDmgType

See Damage Types for more complete descriptions.
Name Value
DMG_GENERIC null
Icon-Bug.pngBug:This is supposed to be 0  [todo tested in?]
DMG_CRUSH 1
DMG_BULLET 2
DMG_SLASH 4
DMG_BURN 8
DMG_VEHICLE

Team Fortress 2 Train

16
DMG_FALL 32
DMG_BLAST 64
DMG_CLUB 128
DMG_SHOCK 256
DMG_SONIC 512
DMG_ENERGYBEAM 1024
DMG_PREVENT_PHYSICS_FORCE 2048
DMG_NEVERGIB 4096
DMG_ALWAYSGIB 8192
DMG_DROWN 16384
DMG_PARALYZE 32768
DMG_NERVEGAS

Team Fortress 2 Sawblade

65536
DMG_POISON 131072
DMG_RADIATION 262144
DMG_DROWNRECOVER 524288
DMG_ACID

Team Fortress 2 Crit

1048576
DMG_SLOWBURN

Team Fortress 2 Bullet falloff

2097152
DMG_REMOVENORAGDOLL 4194304
DMG_PHYSGUN 8388608
DMG_PLASMA 16777216
DMG_AIRBOAT 33554432
DMG_DISSOLVE 67108864
DMG_BLAST_SURFACE 134217728
DMG_DIRECT 268435456
DMG_BUCKSHOT 536870912

FEntityEffects

Name Value
EF_BONEMERGE 1
EF_BRIGHTLIGHT 2
EF_DIMLIGHT 4
EF_NOINTERP 8
EF_MAX_BITS 10
EF_NOSHADOW 16
EF_NODRAW 32
EF_NORECEIVESHADOW 64
EF_BONEMERGE_FASTCULL 128
EF_ITEM_BLINK 256
EF_PARENT_ANIMATES 512

FEntityEFlags

Name Value
EFL_KILLME 1
EFL_DORMANT 2
EFL_NOCLIP_ACTIVE 4
EFL_SETTING_UP_BONES 8
EFL_HAS_PLAYER_CHILD 16
EFL_KEEP_ON_RECREATE_ENTITIES 16
EFL_DIRTY_SHADOWUPDATE 32
EFL_NOTIFY 64
EFL_FORCE_CHECK_TRANSMIT 128
EFL_BOT_FROZEN 256
EFL_SERVER_ONLY 512
EFL_NO_AUTO_EDICT_ATTACH 1024
EFL_DIRTY_ABSTRANSFORM 2048
EFL_DIRTY_ABSVELOCITY 4096
EFL_DIRTY_ABSANGVELOCITY 8192
EFL_DIRTY_SURROUNDING_COLLISION_BOUNDS 16384
EFL_DIRTY_SPATIAL_PARTITION 32768
EFL_FORCE_ALLOW_MOVEPARENT 65536
EFL_IN_SKYBOX 131072
EFL_USE_PARTITION_WHEN_NOT_SOLID 262144
EFL_TOUCHING_FLUID 524288
EFL_IS_BEING_LIFTED_BY_BARNACLE 1048576
EFL_NO_ROTORWASH_PUSH 2097152
EFL_NO_THINK_FUNCTION 4194304
EFL_NO_GAME_PHYSICS_SIMULATION 8388608
EFL_CHECK_UNTOUCH 16777216
EFL_DONTBLOCKLOS 33554432
EFL_DONTWALKON 67108864
EFL_NO_DISSOLVE 134217728
EFL_NO_MEGAPHYSCANNON_RAGDOLL 268435456
EFL_NO_WATER_VELOCITY_CHANGE 536870912
EFL_NO_PHYSCANNON_INTERACTION 1073741824
EFL_NO_DAMAGE_FORCES 2147483648

FHideHUD

Name Value
HIDEHUD_WEAPONSELECTION 1
HIDEHUD_FLASHLIGHT 2
HIDEHUD_ALL 4
HIDEHUD_HEALTH 8
HIDEHUD_PLAYERDEAD 16
HIDEHUD_BITCOUNT 17
HIDEHUD_NEEDSUIT 32
HIDEHUD_MISCSTATUS 64
HIDEHUD_CHAT 128
HIDEHUD_CROSSHAIR 256
HIDEHUD_VEHICLE_CROSSHAIR 512
HIDEHUD_INVEHICLE 1024
HIDEHUD_BONUS_PROGRESS 2048
HIDEHUD_BUILDING_STATUS 4096
HIDEHUD_CLOAK_AND_FEIGN 8192
HIDEHUD_PIPES_AND_CHARGE 16384
HIDEHUD_METAL 32768
HIDEHUD_TARGET_ID 65536

FNavAttributeType

Name Value
NAV_MESH_INVALID 0
NAV_MESH_CROUCH 1
NAV_MESH_JUMP 2
NAV_MESH_PRECISE 4
NAV_MESH_NO_JUMP 8
NAV_MESH_STOP 16
NAV_MESH_RUN 32
NAV_MESH_WALK 64
NAV_MESH_AVOID 128
NAV_MESH_TRANSIENT 256
NAV_MESH_DONT_HIDE 512
NAV_MESH_STAND 1024
NAV_MESH_NO_HOSTAGES 2048
NAV_MESH_STAIRS 4096
NAV_MESH_NO_MERGE 8192
NAV_MESH_OBSTACLE_TOP 16384
NAV_MESH_CLIFF 32768
NAV_MESH_FIRST_CUSTOM 65536
NAV_MESH_LAST_CUSTOM 67108864
NAV_MESH_FUNC_COST 536870912
NAV_MESH_HAS_ELEVATOR 1073741824
NAV_MESH_NAV_BLOCKER 2147483648

FPlayer

Note.pngNote:The name is misleading, these flags exist on all entities, not just players.
Name Value
FL_ONGROUND 1
FL_DUCKING 2
FL_ANIMDUCKING 4
FL_WATERJUMP 8
PLAYER_FLAG_BITS 11
FL_ONTRAIN 16
FL_INRAIN 32
FL_FROZEN 64
FL_ATCONTROLS 128
FL_CLIENT 256
FL_FAKECLIENT 512
FL_INWATER 1024
FL_FLY 2048
FL_SWIM 4096
FL_CONVEYOR 8192
FL_NPC 16384
FL_GODMODE 32768
FL_NOTARGET 65536
FL_AIMTARGET 131072
FL_PARTIALGROUND 262144
FL_STATICPROP 524288
FL_GRAPHED 1048576
FL_GRENADE 2097152
FL_STEPMOVEMENT 4194304
FL_DONTTOUCH 8388608
FL_BASEVELOCITY 16777216
FL_WORLDBRUSH 33554432
FL_OBJECT 67108864
FL_KILLME 134217728
FL_ONFIRE 268435456
FL_DISSOLVING 536870912
FL_TRANSRAGDOLL 1073741824
FL_UNBLOCKABLE_BY_PLAYER 2147483648

FSolid

Name Value
FSOLID_CUSTOMRAYTEST 1
FSOLID_CUSTOMBOXTEST 2
FSOLID_NOT_SOLID 4
FSOLID_TRIGGER 8
FSOLID_MAX_BITS 10
FSOLID_NOT_STANDABLE 16
FSOLID_VOLUME_CONTENTS 32
FSOLID_FORCE_WORLD_ALIGNED 64
FSOLID_USE_TRIGGER_BOUNDS 128
FSOLID_ROOT_PARENT_ALIGNED 256
FSOLID_TRIGGER_TOUCH_DEBRIS 512

FSurf

Name Value
SURF_LIGHT 1
SURF_SKY2D 2
SURF_SKY 4
SURF_WARP 8
SURF_TRANS 16
SURF_NOPORTAL 32
SURF_TRIGGER 64
SURF_NODRAW 128
SURF_HINT 256
SURF_SKIP 512
SURF_NOLIGHT 1024
SURF_BUMPLIGHT 2048
SURF_NOSHADOWS 4096
SURF_NODECALS 8192
SURF_NOCHOP 16384
SURF_HITBOX 32768

FTaunts

Name Value
TAUNT_BASE_WEAPON 0
TAUNT_MISC_ITEM 1
TAUNT_SHOW_ITEM 2
TAUNT_LONG 3
TAUNT_SPECIAL 4

FTFBotAttributeType

Name Value
REMOVE_ON_DEATH 1
AGGRESSIVE 2
IS_NPC 4
SUPPRESS_FIRE 8
DISABLE_DODGE 16
BECOME_SPECTATOR_ON_DEATH 32
QUOTA_MANANGED 64
RETAIN_BUILDINGS 128
SPAWN_WITH_FULL_CHARGE 256
ALWAYS_CRIT 512
IGNORE_ENEMIES 1024
HOLD_FIRE_UNTIL_FULL_RELOAD 2048
PRIORITIZE_DEFENSE 4096
ALWAYS_FIRE_WEAPON 8192
TELEPORT_TO_HINT 16384
MINIBOSS 32768
USE_BOSS_HEALTH_BAR 65536
IGNORE_FLAG 131072
AUTO_JUMP 262144
AIR_CHARGE_ONLY 524288
PREFER_VACCINATOR_BULLETS 1048576
PREFER_VACCINATOR_BLAST 2097152
PREFER_VACCINATOR_FIRE 4194304
BULLET_IMMUNE 8388608
BLAST_IMMUNE 16777216
FIRE_IMMUNE 33554432
PARACHUTE 67108864
PROJECTILE_SHIELD 134217728

FTFNavAttributeType

Name Value
TF_NAV_INVALID 0
TF_NAV_BLOCKED 1
TF_NAV_SPAWN_ROOM_RED 2
TF_NAV_SPAWN_ROOM_BLUE 4
TF_NAV_SPAWN_ROOM_EXIT 8
TF_NAV_HAS_AMMO 16
TF_NAV_HAS_HEALTH 32
TF_NAV_CONTROL_POINT 64
TF_NAV_BLUE_SENTRY_DANGER 128
TF_NAV_RED_SENTRY_DANGER 256
TF_NAV_BLUE_SETUP_GATE 2048
TF_NAV_RED_SETUP_GATE 4096
TF_NAV_BLOCKED_AFTER_POINT_CAPTURE 8192
TF_NAV_BLOCKED_UNTIL_POINT_CAPTURE 16384
TF_NAV_BLUE_ONE_WAY_DOOR 32768
TF_NAV_RED_ONE_WAY_DOOR 65536
TF_NAV_WITH_SECOND_POINT 131072
TF_NAV_WITH_THIRD_POINT 262144
TF_NAV_WITH_FOURTH_POINT 524288
TF_NAV_WITH_FIFTH_POINT 1048576
TF_NAV_SNIPER_SPOT 2097152
TF_NAV_SENTRY_SPOT 4194304
TF_NAV_ESCAPE_ROUTE 8388608
TF_NAV_ESCAPE_ROUTE_VISIBLE 16777216
TF_NAV_NO_SPAWNING 33554432
TF_NAV_RESCUE_CLOSET 67108864
TF_NAV_BOMB_CAN_DROP_HERE 134217728
TF_NAV_DOOR_NEVER_BLOCKS 268435456
TF_NAV_DOOR_ALWAYS_BLOCKS 536870912
TF_NAV_UNBLOCKABLE 1073741824
TF_NAV_PERSISTENT_ATTRIBUTES 1988098048

Unofficial

Note.pngNote:The following enums are not included in the game, but these might still be useful for reference.

BLOOD_COLOR

Name Value
DONT_BLEED -1
BLOOD_COLOR_RED 0
BLOOD_COLOR_YELLOW 1
BLOOD_COLOR_GREEN 2
BLOOD_COLOR_MECH 3

CHAN

Name Value
CHAN_REPLACE -1
CHAN_AUTO 0
CHAN_WEAPON 1
CHAN_VOICE 2
CHAN_ITEM 3
CHAN_BODY 4
CHAN_STREAM 5
CHAN_STATIC 6
CHAN_VOICE2 7
CHAN_VOICE_BASE 8
CHAN_USER_BASE 136

DAMAGE

Name Value
DAMAGE_NO 0
DAMAGE_EVENTS_ONLY 1
DAMAGE_YES 2
DAMAGE_AIM 3

FFADE

Name Value
FFADE_IN 1
FFADE_OUT 2
FFADE_MODULATE 4
FFADE_STAYOUT 8
FFADE_PURGE 16

kBonusEffect

Name Value
kBonusEffect_Crit 0
kBonusEffect_MiniCrit 1
kBonusEffect_DoubleDonk 2
kBonusEffect_WaterBalloonSploosh 3
kBonusEffect_None 4
kBonusEffect_DragonsFury 5
kBonusEffect_Stomp 6
kBonusEffect_Count 7

LIFE

Name Value
LIFE_ALIVE 0
LIFE_DYING 1
LIFE_DEAD 2
LIFE_RESPAWNABLE 3
LIFE_DISCARDBODY 4

MASK

Name Value
MASK_ALL -1
MASK_SPLITAREAPORTAL 48
MASK_SOLID_BRUSHONLY 16395
MASK_WATER 16432
MASK_BLOCKLOS 16449
MASK_OPAQUE 16513
MASK_DEADSOLID 65547
MASK_PLAYERSOLID_BRUSHONLY 81931
MASK_NPCWORLDSTATIC 131083
MASK_NPCSOLID_BRUSHONLY 147467
MASK_CURRENT 16515072
MASK_SHOT_PORTAL 33570819
MASK_SOLID 33570827
MASK_BLOCKLOS_AND_NPCS 33570881
MASK_OPAQUE_AND_NPCS 33570945
MASK_VISIBLE_AND_NPCS 33579137
MASK_PLAYERSOLID 33636363
MASK_NPCSOLID 33701899
MASK_SHOT_HULL 100679691
MASK_SHOT 1174421507

MATHLIB

Name Value
DEG2RAD 0.0174532924
RAD2DEG 57.295779513
FLT_MIN 1.175494e-38
FLT_MAX 3.402823466e+38
INT_MIN -2147483648
INT_MAX 2147483647


MP_CONCEPT

Name Value
MP_CONCEPT_FIREWEAPON 0
MP_CONCEPT_HURT 1
MP_CONCEPT_PLAYER_EXPRESSION 2
MP_CONCEPT_WINDMINIGUN 3
MP_CONCEPT_FIREMINIGUN 4
MP_CONCEPT_PLAYER_MEDIC 5
MP_CONCEPT_DETONATED_OBJECT 6
MP_CONCEPT_KILLED_PLAYER 7
MP_CONCEPT_KILLED_OBJECT 8
MP_CONCEPT_PLAYER_PAIN 9
MP_CONCEPT_PLAYER_ATTACKER_PAIN 10
MP_CONCEPT_PLAYER_TAUNT 11
MP_CONCEPT_PLAYER_HELP 12
MP_CONCEPT_PLAYER_GO 13
MP_CONCEPT_PLAYER_MOVEUP 14
MP_CONCEPT_PLAYER_LEFT 15
MP_CONCEPT_PLAYER_RIGHT 16
MP_CONCEPT_PLAYER_YES 17
MP_CONCEPT_PLAYER_NO 18
MP_CONCEPT_PLAYER_INCOMING 19
MP_CONCEPT_PLAYER_CLOAKEDSPY 20
MP_CONCEPT_PLAYER_SENTRYAHEAD 21
MP_CONCEPT_PLAYER_TELEPORTERHERE 22
MP_CONCEPT_PLAYER_DISPENSERHERE 23
MP_CONCEPT_PLAYER_SENTRYHERE 24
MP_CONCEPT_PLAYER_ACTIVATECHARGE 25
MP_CONCEPT_PLAYER_CHARGEREADY 26
MP_CONCEPT_PLAYER_TAUNTS 27
MP_CONCEPT_PLAYER_BATTLECRY 28
MP_CONCEPT_PLAYER_CHEERS 29
MP_CONCEPT_PLAYER_JEERS 30
MP_CONCEPT_PLAYER_POSITIVE 31
MP_CONCEPT_PLAYER_NEGATIVE 32
MP_CONCEPT_PLAYER_NICESHOT 33
MP_CONCEPT_PLAYER_GOODJOB 34
MP_CONCEPT_MEDIC_STARTEDHEALING 35
MP_CONCEPT_MEDIC_CHARGEREADY 36
MP_CONCEPT_MEDIC_STOPPEDHEALING 37
MP_CONCEPT_MEDIC_CHARGEDEPLOYED 38
MP_CONCEPT_FLAGPICKUP 39
MP_CONCEPT_FLAGCAPTURED 40
MP_CONCEPT_ROUND_START 41
MP_CONCEPT_SUDDENDEATH_START 42
MP_CONCEPT_ONFIRE 43
MP_CONCEPT_STALEMATE 44
MP_CONCEPT_BUILDING_OBJECT 45
MP_CONCEPT_LOST_OBJECT 46
MP_CONCEPT_SPY_SAPPER 47
MP_CONCEPT_TELEPORTED 48
MP_CONCEPT_LOST_CONTROL_POINT 49
MP_CONCEPT_CAPTURED_POINT 50
MP_CONCEPT_CAPTURE_BLOCKED 51
MP_CONCEPT_HEALTARGET_STARTEDHEALING 52
MP_CONCEPT_HEALTARGET_CHARGEREADY 53
MP_CONCEPT_HEALTARGET_STOPPEDHEALING 54
MP_CONCEPT_HEALTARGET_CHARGEDEPLOYED 55
MP_CONCEPT_MINIGUN_FIREWEAPON 56
MP_CONCEPT_DIED 57
MP_CONCEPT_PLAYER_THANKS 58
MP_CONCEPT_CART_MOVING_FORWARD 59
MP_CONCEPT_CART_MOVING_BACKWARD 60
MP_CONCEPT_CART_STOP 61
MP_CONCEPT_ATE_FOOD 62
MP_CONCEPT_DOUBLE_JUMP 63
MP_CONCEPT_DODGING 64
MP_CONCEPT_DODGE_SHOT 65
MP_CONCEPT_GRAB_BALL 66
MP_CONCEPT_REGEN_BALL 67
MP_CONCEPT_DEFLECTED 68
MP_CONCEPT_BALL_MISSED 69
MP_CONCEPT_STUNNED 70
MP_CONCEPT_STUNNED_TARGET 71
MP_CONCEPT_TIRED 72
MP_CONCEPT_BAT_BALL 73
MP_CONCEPT_ACHIEVEMENT_AWARD 74
MP_CONCEPT_JARATE_HIT 75
MP_CONCEPT_JARATE_LAUNCH 76
MP_CONCEPT_HIGHFIVE_SUCCESS 77
MP_CONCEPT_HIGHFIVE_SUCCESS_FULL 78
MP_CONCEPT_HIGHFIVE_FAILURE 79
MP_CONCEPT_HIGHFIVE_FAILURE_FULL 80
MP_CONCEPT_PLAYER_TAUNT2 81
MP_CONCEPT_PICKUP_BUILDING 82
MP_CONCEPT_REDEPLOY_BUILDING 83
MP_CONCEPT_CARRYING_BUILDING 84
MP_CONCEPT_DUEL_REQUEST 85
MP_CONCEPT_DUEL_TARGET_REJECT 86
MP_CONCEPT_DUEL_REJECTED 87
MP_CONCEPT_DUEL_TARGET_ACCEPT 88
MP_CONCEPT_DUEL_ACCEPTED 89
MP_CONCEPT_PLAYER_SHOW_ITEM_TAUNT 90
MP_CONCEPT_TAUNT_REPLAY 91
MP_CONCEPT_TAUNT_LAUGH 92
MP_CONCEPT_TAUNT_HEROIC_POSE 93
MP_CONCEPT_PARTNER_TAUNT_READY 94
MP_CONCEPT_HOLDTAUNT 95
MP_CONCEPT_TAUNT_PYRO_ARMAGEDDON 96
MP_CONCEPT_ROCKET_DESTOYED 97
MP_CONCEPT_MVM_BOMB_DROPPED 98
MP_CONCEPT_MVM_BOMB_CARRIER_UPGRADE1 99
MP_CONCEPT_MVM_BOMB_CARRIER_UPGRADE2 100
MP_CONCEPT_MVM_BOMB_CARRIER_UPGRADE3 101
MP_CONCEPT_MVM_DEFENDER_DIED 102
MP_CONCEPT_MVM_FIRST_BOMB_PICKUP 103
MP_CONCEPT_MVM_BOMB_PICKUP 104
MP_CONCEPT_MVM_SENTRY_BUSTER 105
MP_CONCEPT_MVM_SENTRY_BUSTER_DOWN 106
MP_CONCEPT_MVM_SNIPER_CALLOUT 107
MP_CONCEPT_MVM_LAST_MAN_STANDING 108
MP_CONCEPT_MVM_ENCOURAGE_MONEY 109
MP_CONCEPT_MVM_MONEY_PICKUP 110
MP_CONCEPT_MVM_ENCOURAGE_UPGRADE 111
MP_CONCEPT_MVM_UPGRADE_COMPLETE 112
MP_CONCEPT_MVM_GIANT_CALLOUT 113
MP_CONCEPT_MVM_GIANT_HAS_BOMB 114
MP_CONCEPT_MVM_GIANT_KILLED 115
MP_CONCEPT_MVM_GIANT_KILLED_TEAMMATE 116
MP_CONCEPT_MVM_SAPPED_ROBOT 117
MP_CONCEPT_MVM_CLOSE_CALL 118
MP_CONCEPT_MVM_TANK_CALLOUT 119
MP_CONCEPT_MVM_TANK_DEAD 120
MP_CONCEPT_MVM_TANK_DEPLOYING 121
MP_CONCEPT_MVM_ATTACK_THE_TANK 122
MP_CONCEPT_MVM_TAUNT 123
MP_CONCEPT_MVM_WAVE_START 124
MP_CONCEPT_MVM_WAVE_WIN 125
MP_CONCEPT_MVM_WAVE_LOSE 126
MP_CONCEPT_MVM_DEPLOY_RAGE 127
MP_CONCEPT_MAGIC_BIGHEAD 128
MP_CONCEPT_MAGIC_SMALLHEAD 129
MP_CONCEPT_MAGIC_GRAVITY 130
MP_CONCEPT_MAGIC_GOOD 131
MP_CONCEPT_MAGIC_DANCE 132
MP_CONCEPT_HALLOWEEN_LONGFALL 133
MP_CONCEPT_TAUNT_GUITAR_RIFF 134
MP_CONCEPT_PLAYER_CAST_FIREBALL 135
MP_CONCEPT_PLAYER_CAST_MERASMUS_ZAP 136
MP_CONCEPT_PLAYER_CAST_SELF_HEAL 137
MP_CONCEPT_PLAYER_CAST_MIRV 138
MP_CONCEPT_PLAYER_CAST_BLAST_JUMP 139
MP_CONCEPT_PLAYER_CAST_STEALTH 140
MP_CONCEPT_PLAYER_CAST_TELEPORT 141
MP_CONCEPT_PLAYER_CAST_LIGHTNING_BALL 142
MP_CONCEPT_PLAYER_CAST_MOVEMENT_BUFF 143
MP_CONCEPT_PLAYER_CAST_MONOCULOUS 144
MP_CONCEPT_PLAYER_CAST_METEOR_SWARM 145
MP_CONCEPT_PLAYER_CAST_SKELETON_HORDE 146
MP_CONCEPT_PLAYER_CAST_BOMB_HEAD_CURSE 147
MP_CONCEPT_PLAYER_SPELL_FIREBALL 148
MP_CONCEPT_PLAYER_SPELL_MERASMUS_ZAP 149
MP_CONCEPT_PLAYER_SPELL_SELF_HEAL 150
MP_CONCEPT_PLAYER_SPELL_MIRV 151
MP_CONCEPT_PLAYER_SPELL_BLAST_JUMP 152
MP_CONCEPT_PLAYER_SPELL_STEALTH 153
MP_CONCEPT_PLAYER_SPELL_TELEPORT 154
MP_CONCEPT_PLAYER_SPELL_LIGHTNING_BALL 155
MP_CONCEPT_PLAYER_SPELL_MOVEMENT_BUFF 156
MP_CONCEPT_PLAYER_SPELL_MONOCULOUS 157
MP_CONCEPT_PLAYER_SPELL_METEOR_SWARM 158
MP_CONCEPT_PLAYER_SPELL_SKELETON_HORDE 159
MP_CONCEPT_PLAYER_SPELL_BOMB_HEAD_CURSE 160
MP_CONCEPT_PLAYER_SPELL_PICKUP_COMMON 161
MP_CONCEPT_PLAYER_SPELL_PICKUP_RARE 162
MP_CONCEPT_PLAYER_HELLTOWER_MIDNIGHT 163
MP_CONCEPT_PLAYER_SKELETON_KING_APPEAR 164
MP_CONCEPT_MANNHATTAN_GATE_ATK 165
MP_CONCEPT_MANNHATTAN_GATE_TAKE 166
MP_CONCEPT_RESURRECTED 167
MP_CONCEPT_MVM_LOOT_COMMON 168
MP_CONCEPT_MVM_LOOT_RARE 169
MP_CONCEPT_MVM_LOOT_ULTRARARE 170
MP_CONCEPT_MEDIC_HEAL_SHIELD 171
MP_CONCEPT_TAUNT_EUREKA_EFFECT_TELEPORT 172
MP_CONCEPT_COMBO_KILLED 173
MP_CONCEPT_PLAYER_ASK_FOR_BALL 174
MP_CONCEPT_ROUND_START_COMP 175
MP_CONCEPT_GAME_OVER_COMP 176
MP_CONCEPT_MATCH_OVER_COMP 177

OBJ

Name Value
OBJ_DISPENSER 0
OBJ_TELEPORTER 1
OBJ_SENTRYGUN 2
OBJ_ATTACHMENT_SAPPER 3
OBJ_LAST 4

PATTACH

Name Value
PATTACH_ABSORIGIN 0
PATTACH_ABSORIGIN_FOLLOW 1
PATTACH_CUSTOMORIGIN 2
PATTACH_POINT 3
PATTACH_POINT_FOLLOW 4
PATTACH_WORLDORIGIN 5
PATTACH_ROOTBONE_FOLLOW 6

RUNE

Name Value
RUNE_NONE -1
RUNE_STRENGTH 0
RUNE_HASTE 1
RUNE_REGEN 2
RUNE_RESIST 3
RUNE_VAMPIRE 4
RUNE_REFLECT 5
RUNE_PRECISION 6
RUNE_AGILITY 7
RUNE_KNOCKOUT 8
RUNE_KING 9
RUNE_PLAGUE 10
RUNE_SUPERNOVA 11
RUNE_TYPES_MAX 12

SF_TRIGGER

Name Value
SF_TRIGGER_ALLOW_CLIENTS 1
SF_TRIGGER_ALLOW_NPCS 2
SF_TRIGGER_ALLOW_PUSHABLES 4
SF_TRIGGER_ALLOW_PHYSICS 8
SF_TRIGGER_ONLY_PLAYER_ALLY_NPCS 16
SF_TRIGGER_ONLY_CLIENTS_IN_VEHICLES 32
SF_TRIGGER_ALLOW_ALL 64
SF_TRIG_PUSH_ONCE 128
SF_TRIG_PUSH_AFFECT_PLAYER_ON_LADDER 256
SF_TRIGGER_ONLY_CLIENTS_OUT_OF_VEHICLES 512
SF_TRIG_TOUCH_DEBRIS 1024
SF_TRIGGER_ONLY_NPCS_IN_VEHICLES 2048
SF_TRIGGER_DISALLOW_BOTS 4096

SND

Name Value
SND_NOFLAGS 0
SND_CHANGE_VOL 1
SND_CHANGE_PITCH 2
SND_STOP 4
SND_SPAWNING 8
SND_DELAY 16
SND_STOP_LOOPING 32
SND_SPEAKER 64
SND_SHOULDPAUSE 128
SND_IGNORE_PHONEMES 256
SND_IGNORE_NAME 512
SND_DO_NOT_OVERWRITE_EXISTING_ON_CHANNEL 1024

TF_AMMO

Name Value
TF_AMMO_DUMMY 0
TF_AMMO_PRIMARY 1
TF_AMMO_SECONDARY 2
TF_AMMO_METAL 3
TF_AMMO_GRENADES1 4
TF_AMMO_GRENADES2 5
TF_AMMO_GRENADES3 6
TF_AMMO_COUNT 7

TF_DEATH

Name Value
TF_DEATH_DOMINATION 1
TF_DEATH_ASSISTER_DOMINATION 2
TF_DEATH_REVENGE 4
TF_DEATH_ASSISTER_REVENGE 8
TF_DEATH_FIRST_BLOOD 16
TF_DEATH_FEIGN_DEATH 32
TF_DEATH_INTERRUPTED 64
TF_DEATH_GIBBED 128
TF_DEATH_PURGATORY 256
TF_DEATH_MINIBOSS 512
TF_DEATH_AUSTRALIUM 1024

TF_STUN

Name Value
TF_STUN_NONE 0
TF_STUN_MOVEMENT 1
TF_STUN_CONTROLS 2
TF_STUN_MOVEMENT_FORWARD_ONLY 4
TF_STUN_SPECIAL_SOUND 8
TF_STUN_DODGE_COOLDOWN 16
TF_STUN_NO_EFFECTS 32
TF_STUN_LOSER_STATE 64
TF_STUN_BY_TRIGGER 128
TF_STUN_SOUND 256

TFCOLLISION_GROUP

Name Value
TFCOLLISION_GROUP_GRENADES 20
TFCOLLISION_GROUP_OBJECT 21
TFCOLLISION_GROUP_OBJECT_SOLIDTOPLAYERMOVEMENT 22
TFCOLLISION_GROUP_COMBATOBJECT 23
TFCOLLISION_GROUP_ROCKETS 24
TFCOLLISION_GROUP_RESPAWNROOMS 25
TFCOLLISION_GROUP_PUMPKIN_BOMB 26
TFCOLLISION_GROUP_ROCKET_BUT_NOT_WITH_OTHER_ROCKETS 27

WATERLEVEL

Name Value
WL_NotInWater 0
WL_Feet 1
WL_Waist 2
WL_Eyes 3