Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 172
Enum Reference
WIP!!!
A reference card for inputs that deal directly with integers that would otherwise be enumerated in code. These are mostly for ones that cannot possibly be found in the editor, so spawnflags and certain keyvalues are not included here. Most of the non-functional ones are not included.
I mostly included this for myself, but it's a very good reference sheet when you're using inputs like AddCapabilities or logic_measure_direction's mask type and can't/don't want to have to look at the code.
##Effects
AddEffects, RemoveEffects
TODO: Go into detail, don't just use stock comments
- EF_BONEMERGE - Performs bone merge on client side
- EF_BRIGHTLIGHT - DLight centered at entity origin
- EF_DIMLIGHT - Player flashlight
- EF_NOINTERP - Don't interpolate the next frame
- EF_NOSHADOW - Don't cast no shadow
- EF_NODRAW - Don't draw entity
- EF_NORECEIVESHADOW - Don't receive no shadow
- EF_BONEMERGE_FASTCULL - The comment that describes this is too big for me to put here. Don't bother, I guess.
- EF_ITEM_BLINK - Blink an item so that the player notices it.
- EF_PARENT_ANIMATES - Always assume that the parent entity is animating.
##Movetypes SetMoveType
- MOVETYPE_NONE - Simply doesn't move on its own. Can move in a hierarchy.
- MOVETYPE_ISOMETRIC - For players in TF2 commander mode, etc.
- MOVETYPE_WALK - Ground movement. Players only.
- MOVETYPE_STEP - Gravity, special edge handling, etc. NPCs use this.
- MOVETYPE_FLY - No gravity, but still collides with stuff. This is not used for scanners.
- MOVETYPE_FLYGRAVITY - Flies through the air and is affected by gravity. SMG grenades, flares, and for some reason weapons use this.
- MOVETYPE_VPHYSICS - Uses VPHYSICS for physics simulation. Props, scanners, etc. use this.
- MOVETYPE_PUSH - No clip to world, just push and crush.
- MOVETYPE_NOCLIP - No gravity, no collisions, still do velocity stuff
- MOVETYPE_LADDER - Used by players while using ladders.
- MOVETYPE_OBSERVER - Observer movement, depends on the player's observer mode apparently.
- MOVETYPE_CUSTOM - Allows the entity to decide its own physics.
##Capabilities AddCapabilities, RemoveCapabilities Important capabilities that I believe are relevant or would be used often are fully bolded.
- Ground Movement - The ability to walk/run across a surface.
- Jump Navigation - The ability to jump while navigating. Ex: Fast zombies, antlions
- Fly Movement - The ability to fly with air nodes. Ex: Scanners
- Climb Movement - The ability to use climb nodes. Ex: Fast zombies on pipes
- Shoot while moving - The ability to shoot while moving.
- Skip nav ground check - Skips check for whether we're on the ground while moving.
- Doors - The ability to open doors. Removing this capability works fine, but (re)adding it can be kind of tricky when they're already coming up to a door. Needs more research.
- Turn Head - The ability to turn our head.
- Weapon Range Attack 1 - Can use our weapon's primary attack option.
- Weapon Range Attack 2 - Can use our weapon's secondary attack option.
- Weapon Melee Attack 1 - Can use our weapon's primary melee attack option.
- Weapon Melee Attack 2 - Can use our weapon's secondary melee attack option.
- Innate Range Attack 1 - Marks an innate range attack 1.
- Innate Range Attack 2 - Marks an innate range attack 2.
- Innate Melee Attack 1 - Marks an innate melee attack 1.
- Innate Melee Attack 2 - Marks an innate melee attack 2.
- Use Weapons - The ability to use weapons. Without this, NPCs simply cannot use weapons.
- Animated Face - Has animated eyes/face. (todo: look into, elaborate)
- Shot Regulator - Uses the shot regular for range attack 1.
- Friendly Damage Immune - Friendly fire capability. The friendly fire keyvalue added in Mapbase overrides this capability in NPCs.
- Squads - The ability to use squads. Squads will not work on NPCs that don't have this.
- Duck - The ability to crouch, at least when it comes to crouch cover nodes. Required for standoffs.
- No Hit Players - Actively avoid hitting players. Probably only matters when players can take friendly fire, which is disabled by default.
- Aim Gun - "Uses arms to aim gun, not just body." 1073741824. No Hit Squadmates - Avoid hitting squadmates. Usually only matters when friendly fire is enabled. -2147483648. Simple Radius Damage - Don't use complex radius damage on this character.
###Contents Collision masks
CONTENTS_EMPTY
CONTENTS_SOLID
CONTENTS_WINDOW
CONTENTS_AUX
CONTENTS_GRATE
CONTENTS_SLIME
CONTENTS_WATER
CONTENTS_BLOCKLOS
CONTENTS_OPAQUE
LAST_VISIBLE_CONTENTS
CONTENTS_TESTFOGVOLUME
CONTENTS_UNUSED
CONTENTS_TEAM1
CONTENTS_TEAM2
CONTENTS_IGNORE_NODRAW_OPAQUE
CONTENTS_MOVEABLE
CONTENTS_AREAPORTAL
CONTENTS_PLAYERCLIP
CONTENTS_MONSTERCLIP
CONTENTS_CURRENT_0
CONTENTS_CURRENT_90
CONTENTS_CURRENT_180
CONTENTS_CURRENT_270
CONTENTS_CURRENT_UP
CONTENTS_CURRENT_DOWN
CONTENTS_ORIGIN
CONTENTS_MONSTER
CONTENTS_DEBRIS
CONTENTS_DETAIL
CONTENTS_TRANSLUCENT
CONTENTS_LADDER 1073741824. CONTENTS_HITBOX
MASK_SOLID
MASK_PLAYERSOLID
MASK_NPCSOLID
MASK_WATER
MASK_OPAQUE
MASK_OPAQUE_AND_NPCS
MASK_BLOCKLOS
MASK_BLOCKLOS_AND_NPCS
MASK_VISIBLE
MASK_VISIBLE_AND_NPCS 1174421507. MASK_SHOT
MASK_SHOT_HULL
MASK_SHOT_PORTAL
MASK_SOLID_BRUSHONLY
MASK_PLAYERSOLID_BRUSHONLY
MASK_NPCSOLID_BRUSHONLY
MASK_NPCWORLDSTATIC
MASK_SPLITAREAPORTAL
MASK_CURRENT
MASK_DEADSOLID
###Template Template for documenting new bits
1073741824.