Class Masks
- Namespace
- CounterStrikeSharp.API.Modules.Utils
- Assembly
- CounterStrikeSharp.API.dll
Composite trace masks (bspflags.h MASK_* defines).
public static class Masks
- Inheritance
-
objectMasks
Fields
All
public const Contents All = (Contents)18446744073709551615
Field Value
NpcFluid
Blocks fluid movement.
public const Contents NpcFluid = Solid | NpcClip | Window | Player | Npc
Field Value
NpcSolid
Blocks NPC movement.
public const Contents NpcSolid = Solid | NpcClip | Window | PassBullets | Player | Npc
Field Value
NpcSolidBrushOnly
Everything normally solid for NPC movement, except monsters (world + brush only).
public const Contents NpcSolidBrushOnly = Solid | NpcClip | Window | PassBullets
Field Value
PlayerSolid
Everything that blocks player movement.
public const Contents PlayerSolid = Solid | PlayerClip | Window | PassBullets | Player | Npc
Field Value
PlayerSolidBrushOnly
Everything normally solid for player movement, except monsters (world + brush only).
public const Contents PlayerSolidBrushOnly = Solid | PlayerClip | Window | PassBullets
Field Value
Shot
Bullets see these as solid.
public const Contents Shot = Solid | Hitbox | Window | Player | Npc | Debris
Field Value
ShotBrushOnly
Bullets see these as solid, except monsters (world + brush only).
public const Contents ShotBrushOnly = Solid | Window | Debris
Field Value
ShotHull
Non-raycasted weapons see this as solid (includes grates).
public const Contents ShotHull = Solid | Window | PassBullets | Player | Npc | Debris
Field Value
ShotPortal
Hits solids (not grates) and passes through everything else.
public const Contents ShotPortal = Solid | Window | Player | Npc
Field Value
Solid
Everything that is normally solid.
public const Contents Solid = Solid | Window | PassBullets | Player | Npc
Field Value
SolidBrushOnly
Everything normally solid, except monsters (world + brush only).
public const Contents SolidBrushOnly = Solid | Window | PassBullets
Field Value
Water
Water physics.
public const Contents Water = Water | Slime