mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-03-22 10:30:20 +03:00
Created Enum Reference (markdown)
parent
6619b34d9b
commit
5be69bfa9f
172
Enum-Reference.md
Normal file
172
Enum-Reference.md
Normal file
@ -0,0 +1,172 @@
|
||||
**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
|
||||
|
||||
---
|
||||
1. **EF_BONEMERGE** - Performs bone merge on client side
|
||||
2. **EF_BRIGHTLIGHT** - DLight centered at entity origin
|
||||
4. **EF_DIMLIGHT** - Player flashlight
|
||||
8. **EF_NOINTERP** - Don't interpolate the next frame
|
||||
16. **EF_NOSHADOW** - Don't cast no shadow
|
||||
32. **EF_NODRAW** - Don't draw entity
|
||||
64. **EF_NORECEIVESHADOW** - Don't receive no shadow
|
||||
128. **EF_BONEMERGE_FASTCULL** - The comment that describes this is too big for me to put here. Don't bother, I guess.
|
||||
256. **EF_ITEM_BLINK** - Blink an item so that the player notices it.
|
||||
512. **EF_PARENT_ANIMATES** - Always assume that the parent entity is animating.
|
||||
|
||||
---
|
||||
##Movetypes
|
||||
*SetMoveType*
|
||||
|
||||
---
|
||||
0. **MOVETYPE_NONE** - Simply doesn't move on its own. Can move in a hierarchy.
|
||||
1. **MOVETYPE_ISOMETRIC** - For players in TF2 commander mode, etc.
|
||||
2. **MOVETYPE_WALK** - Ground movement. Players only.
|
||||
3. **MOVETYPE_STEP** - Gravity, special edge handling, etc. NPCs use this.
|
||||
4. **MOVETYPE_FLY** - No gravity, but still collides with stuff. This is not used for scanners.
|
||||
5. **MOVETYPE_FLYGRAVITY** - Flies through the air *and* is affected by gravity. SMG grenades, flares, and for some reason weapons use this.
|
||||
6. **MOVETYPE_VPHYSICS** - Uses VPHYSICS for physics simulation. Props, scanners, etc. use this.
|
||||
7. **MOVETYPE_PUSH** - No clip to world, just push and crush.
|
||||
8. **MOVETYPE_NOCLIP** - No gravity, no collisions, still do velocity stuff
|
||||
9. **MOVETYPE_LADDER** - Used by players while using ladders.
|
||||
10. **MOVETYPE_OBSERVER** - Observer movement, depends on the player's observer mode apparently.
|
||||
11. **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.
|
||||
|
||||
---
|
||||
|
||||
1. **Ground Movement** - The ability to walk/run across a surface.
|
||||
2. **Jump Navigation** - The ability to jump while navigating. Ex: Fast zombies, antlions
|
||||
4. **Fly Movement** - The ability to fly with air nodes. Ex: Scanners
|
||||
8. **Climb Movement** - The ability to use climb nodes. Ex: Fast zombies on pipes
|
||||
64. **Shoot while moving** - The ability to shoot while moving.
|
||||
128. **Skip nav ground check** - Skips check for whether we're on the ground while moving.
|
||||
3072. **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.
|
||||
4096. **Turn Head** - The ability to turn our head.
|
||||
8192. **Weapon Range Attack 1** - Can use our weapon's primary attack option.
|
||||
16384. **Weapon Range Attack 2** - Can use our weapon's secondary attack option.
|
||||
32768. **Weapon Melee Attack 1** - Can use our weapon's primary melee attack option.
|
||||
65536. **Weapon Melee Attack 2** - Can use our weapon's secondary melee attack option.
|
||||
131072. **Innate Range Attack 1** - Marks an innate range attack 1.
|
||||
262144. **Innate Range Attack 2** - Marks an innate range attack 2.
|
||||
524288. **Innate Melee Attack 1** - Marks an innate melee attack 1.
|
||||
1048576. **Innate Melee Attack 2** - Marks an innate melee attack 2.
|
||||
2097152. **Use Weapons** - The ability to use weapons. Without this, NPCs simply cannot use weapons.
|
||||
8388608. **Animated Face** - Has animated eyes/face. (todo: look into, elaborate)
|
||||
16777216. **Shot Regulator** - Uses the shot regular for range attack 1.
|
||||
33554432. **Friendly Damage Immune** - Friendly fire capability. The friendly fire keyvalue added in Mapbase overrides this capability in NPCs.
|
||||
67108864. **Squads** - The ability to use squads. Squads will not work on NPCs that don't have this.
|
||||
134217728. **Duck** - The ability to crouch, at least when it comes to crouch cover nodes. Required for standoffs.
|
||||
268435456. **No Hit Players** - Actively avoid hitting players. Probably only matters when players can take friendly fire, which is disabled by default.
|
||||
536870912. **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
|
||||
|
||||
---
|
||||
0. **CONTENTS_EMPTY**
|
||||
1. **CONTENTS_SOLID**
|
||||
2. **CONTENTS_WINDOW**
|
||||
4. **CONTENTS_AUX**
|
||||
8. **CONTENTS_GRATE**
|
||||
16. **CONTENTS_SLIME**
|
||||
32. **CONTENTS_WATER**
|
||||
64. **CONTENTS_BLOCKLOS**
|
||||
128. **CONTENTS_OPAQUE**
|
||||
128. **LAST_VISIBLE_CONTENTS**
|
||||
256. **CONTENTS_TESTFOGVOLUME**
|
||||
512. **CONTENTS_UNUSED**
|
||||
2048. **CONTENTS_TEAM1**
|
||||
4096. **CONTENTS_TEAM2**
|
||||
8192. **CONTENTS_IGNORE_NODRAW_OPAQUE**
|
||||
16384. **CONTENTS_MOVEABLE**
|
||||
32768. **CONTENTS_AREAPORTAL**
|
||||
65536. **CONTENTS_PLAYERCLIP**
|
||||
131072. **CONTENTS_MONSTERCLIP**
|
||||
262144. **CONTENTS_CURRENT_0**
|
||||
524288. **CONTENTS_CURRENT_90**
|
||||
1048576. **CONTENTS_CURRENT_180**
|
||||
2097152. **CONTENTS_CURRENT_270**
|
||||
4194304. **CONTENTS_CURRENT_UP**
|
||||
8388608. **CONTENTS_CURRENT_DOWN**
|
||||
16777216. **CONTENTS_ORIGIN**
|
||||
33554432. **CONTENTS_MONSTER**
|
||||
67108864. **CONTENTS_DEBRIS**
|
||||
134217728. **CONTENTS_DETAIL**
|
||||
268435456. **CONTENTS_TRANSLUCENT**
|
||||
536870912. **CONTENTS_LADDER**
|
||||
1073741824. **CONTENTS_HITBOX**
|
||||
|
||||
33570827. **MASK_SOLID**
|
||||
33636363. **MASK_PLAYERSOLID**
|
||||
33701899. **MASK_NPCSOLID**
|
||||
16432. **MASK_WATER**
|
||||
16513. **MASK_OPAQUE**
|
||||
33570945. **MASK_OPAQUE_AND_NPCS**
|
||||
16449. **MASK_BLOCKLOS**
|
||||
33570881. **MASK_BLOCKLOS_AND_NPCS**
|
||||
24705. **MASK_VISIBLE**
|
||||
33579137. **MASK_VISIBLE_AND_NPCS**
|
||||
1174421507. **MASK_SHOT**
|
||||
100679691. **MASK_SHOT_HULL**
|
||||
33570819. **MASK_SHOT_PORTAL**
|
||||
16395. **MASK_SOLID_BRUSHONLY**
|
||||
81931. **MASK_PLAYERSOLID_BRUSHONLY**
|
||||
147467. **MASK_NPCSOLID_BRUSHONLY**
|
||||
131083. **MASK_NPCWORLDSTATIC**
|
||||
48. **MASK_SPLITAREAPORTAL**
|
||||
16515072. **MASK_CURRENT**
|
||||
65547. **MASK_DEADSOLID**
|
||||
|
||||
---
|
||||
###Template
|
||||
Template for documenting new bits
|
||||
|
||||
---
|
||||
1.
|
||||
2.
|
||||
4.
|
||||
8.
|
||||
16.
|
||||
32.
|
||||
64.
|
||||
128.
|
||||
256.
|
||||
512.
|
||||
1024.
|
||||
2048.
|
||||
4096.
|
||||
8192.
|
||||
16384.
|
||||
32768.
|
||||
65536.
|
||||
131072.
|
||||
262144.
|
||||
524288.
|
||||
1048576.
|
||||
2097152.
|
||||
4194304.
|
||||
8388608.
|
||||
16777216.
|
||||
33554432.
|
||||
67108864.
|
||||
134217728.
|
||||
268435456.
|
||||
536870912.
|
||||
1073741824.
|
Loading…
x
Reference in New Issue
Block a user