Skip to content

Commit 57e3dce

Browse files
committed
experiment with calling EntityCollisionRulesChanged on solid zone p2
1 parent dfc9276 commit 57e3dce

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

addons/sourcemod/scripting/shavit-zones.sp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,6 @@ int gI_ZoneWidth[MAXPLAYERS+1][ZONETYPES_SIZE][TRACKS_SIZE];
198198

199199
int gI_LastMenuPos[MAXPLAYERS+1];
200200

201-
// from https://github.com/alliedmodders/sourcemod/blob/master/plugins/include/sdktools_functions.inc
202-
// Should be available in SM1.11+ but not sure...
203-
native void EntityCollisionRulesChanged(int entity);
204-
205201
public Plugin myinfo =
206202
{
207203
name = "[shavit] Map Zones",
@@ -1506,8 +1502,7 @@ bool CreateZoneTrigger(int zone)
15061502
SetEntProp(entity, Prop_Send, "m_usSolidFlags",
15071503
GetEntProp(entity, Prop_Send, "m_usSolidFlags") & ~(FSOLID_TRIGGER|FSOLID_NOT_SOLID));
15081504

1509-
if (GetFeatureStatus(FeatureType_Native, "EntityCollisionRulesChanged") == FeatureStatus_Available)
1510-
EntityCollisionRulesChanged(entity);
1505+
EntityCollisionRulesChanged(entity);
15111506
}
15121507

15131508
TeleportEntity(entity, gV_ZoneCenter[zone], NULL_VECTOR, NULL_VECTOR);

0 commit comments

Comments
 (0)