swiftlys2/docs/api/releases/features/ai/
API Reference › Natives

CollisionGroup

Enum
Namespace: SwiftlyS2.Shared.Natives · Assembly: SwiftlyS2.CS2.dll
public enum CollisionGroup : byte
View source
Always

Default layer, always collides with everything.

0
BreakableGlass
9
ConditionallySolid

Conditionally solid means that the collision response will be zero or as defined in the table when there are matching interactions

3
Debris

Collides with nothing but world, static stuff and triggers

5
Default
4
Dissolving

Things that are dissolving are in this group

19
DoorBlocker

Blocks entities not permitted to get near moving doors

17
FirstUser

First unreserved collision layer index.

4
InVehicle

for any entity inside a vehicle

13
Interactive

Collides with everything except interactive debris or debris

7
InteractiveDebris

Collides with everything except other interactive debris or debris

6
LastSharedCollisionGroup
25
MaxAllowed
64
NPC

Generic NPC group

12
NPCActor

Used so NPCs in scripts ignore the player.

21
NPCScripted

Used for NPCs in scripts that should not collide with each other

22
Nonphysical

This is how you turn off all collisions for an object - move it to this group

1
PZClip
23
PassableDoor

Doors that the player shouldn't collide with

18
Player
8
PlayerMovement

For HL2, same as Collision_Group_Player, for TF2, this filters out other players and CBaseObjects

11
Projectile

Projectiles!

16
Props
24
Pushaway

Nonsolid on client and server, pushaway in player code

20
Trigger

Trigger layer, never collides with anything, only triggers/interacts. Use when querying for interaction layers.

2
Vehicle
10
VehicleClip

vehicle clip brush to restrict vehicle movement

15
Weapon

for any weapons that need collision detection

14