Skip to content

Add SetCollisionGroup to API #1461

@xMaZax

Description

@xMaZax

Hello everyone, some people know and have encountered the fact that when installing a collision, an object can fall under the map or have some other side effects.

Problematic Code (or Steps to Reproduce)

SetEntProp(client, Prop_Data, "m_CollisionGroup", flags);

If we use a function that directly causes a collision to be set then this problem will not occur

void CBaseEntity::SetCollisionGroup( int collisionGroup )

https://github.com/perilouswithadollarsign/cstrike15_src/blob/f82112a2388b841d72cb62ca48ab1846dfcc11c8/game/shared/baseentity_shared.cpp#L2704

I suggest adding this feature to the main sourcemod API.

I think this is because another CollisionRulesChanged() function is not called; when we expose just via SetEntProp.

I think a direct function call will be more correct than we use now " crutches"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature Requestuser requested featureGood First IssueIssues that are suitable for first-time contributors.Help Wantedup for grabs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions