Table of Contents

Class Masks

Namespace
CounterStrikeSharp.API.Modules.Utils
Assembly
CounterStrikeSharp.API.dll

Composite trace masks (bspflags.h MASK_* defines).

public static class Masks
Inheritance
object
Masks

Fields

All

public const Contents All = (Contents)18446744073709551615

Field Value

Contents

NpcFluid

Blocks fluid movement.

public const Contents NpcFluid = Solid | NpcClip | Window | Player | Npc

Field Value

Contents

NpcSolid

Blocks NPC movement.

public const Contents NpcSolid = Solid | NpcClip | Window | PassBullets | Player | Npc

Field Value

Contents

NpcSolidBrushOnly

Everything normally solid for NPC movement, except monsters (world + brush only).

public const Contents NpcSolidBrushOnly = Solid | NpcClip | Window | PassBullets

Field Value

Contents

PlayerSolid

Everything that blocks player movement.

public const Contents PlayerSolid = Solid | PlayerClip | Window | PassBullets | Player | Npc

Field Value

Contents

PlayerSolidBrushOnly

Everything normally solid for player movement, except monsters (world + brush only).

public const Contents PlayerSolidBrushOnly = Solid | PlayerClip | Window | PassBullets

Field Value

Contents

Shot

Bullets see these as solid.

public const Contents Shot = Solid | Hitbox | Window | Player | Npc | Debris

Field Value

Contents

ShotBrushOnly

Bullets see these as solid, except monsters (world + brush only).

public const Contents ShotBrushOnly = Solid | Window | Debris

Field Value

Contents

ShotHull

Non-raycasted weapons see this as solid (includes grates).

public const Contents ShotHull = Solid | Window | PassBullets | Player | Npc | Debris

Field Value

Contents

ShotPortal

Hits solids (not grates) and passes through everything else.

public const Contents ShotPortal = Solid | Window | Player | Npc

Field Value

Contents

Solid

Everything that is normally solid.

public const Contents Solid = Solid | Window | PassBullets | Player | Npc

Field Value

Contents

SolidBrushOnly

Everything normally solid, except monsters (world + brush only).

public const Contents SolidBrushOnly = Solid | Window | PassBullets

Field Value

Contents

Water

Water physics.

public const Contents Water = Water | Slime

Field Value

Contents