Skip to content

Commit

Permalink
experiment with calling EntityCollisionRulesChanged on solid zone p2
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Jan 4, 2025
1 parent dfc9276 commit 57e3dce
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions addons/sourcemod/scripting/shavit-zones.sp
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,6 @@ int gI_ZoneWidth[MAXPLAYERS+1][ZONETYPES_SIZE][TRACKS_SIZE];

int gI_LastMenuPos[MAXPLAYERS+1];

// from https://github.com/alliedmodders/sourcemod/blob/master/plugins/include/sdktools_functions.inc
// Should be available in SM1.11+ but not sure...
native void EntityCollisionRulesChanged(int entity);

public Plugin myinfo =
{
name = "[shavit] Map Zones",
Expand Down Expand Up @@ -1506,8 +1502,7 @@ bool CreateZoneTrigger(int zone)
SetEntProp(entity, Prop_Send, "m_usSolidFlags",
GetEntProp(entity, Prop_Send, "m_usSolidFlags") & ~(FSOLID_TRIGGER|FSOLID_NOT_SOLID));

if (GetFeatureStatus(FeatureType_Native, "EntityCollisionRulesChanged") == FeatureStatus_Available)
EntityCollisionRulesChanged(entity);
EntityCollisionRulesChanged(entity);
}

TeleportEntity(entity, gV_ZoneCenter[zone], NULL_VECTOR, NULL_VECTOR);
Expand Down

0 comments on commit 57e3dce

Please sign in to comment.