MASK
Description
Enumerations used as trace masks in Trace structure and HullTrace structure. These enumerations are simply combinations of CONTENTS enum.
Values
| MASK_ALL | 4294967295 | Anything that is not empty space |
| MASK_BLOCKLOS | 16449 | Anything that blocks line of sight for AI |
| MASK_BLOCKLOS_AND_NPCS | 33570881 | Anything that blocks line of sight for AI or NPCs |
| MASK_CURRENT | 16515072 | Water that is moving (may not work) |
| MASK_DEADSOLID | 65547 | Anything that blocks corpse movement |
| MASK_NPCSOLID | 33701899 | Anything that blocks NPC movement |
| MASK_NPCSOLID_BRUSHONLY | 147467 | Anything that blocks NPC movement, except other NPCs |
| MASK_NPCWORLDSTATIC | 131083 | The world entity |
| MASK_OPAQUE | 16513 | Anything that blocks lighting |
| MASK_OPAQUE_AND_NPCS | 33570945 | Anything that blocks lighting, including NPCs |
| MASK_PLAYERSOLID | 33636363 | Anything that blocks player movement |
| MASK_PLAYERSOLID_BRUSHONLY | 81931 | World + Brushes + Player Clips |
| MASK_SHOT | 1174421507 | Anything that stops a bullet (including hitboxes) |
| MASK_SHOT_HULL | 100679691 | Anything that stops a bullet (excluding hitboxes) |
| MASK_SHOT_PORTAL | 33570819 | Solids except for grates |
| MASK_SOLID | 33570827 | Anything that is (normally) solid |
| MASK_SOLID_BRUSHONLY | 16395 | World + Brushes |
| MASK_SPLITAREAPORTAL | 48 | Things that split area portals |
| MASK_VISIBLE | 24705 | Anything that blocks line of sight for players |
| MASK_VISIBLE_AND_NPCS | 33579137 | Anything that blocks line of sight for players, including NPCs |
| MASK_WATER | 16432 | Anything that has water-like physics |
Garry's Mod
Rust
Steamworks
Wiki Help