PHP Code:
int entity = CreateEntityByName("func_wall_toggle");
if (entity != -1)
{
DispatchKeyValueVector(entity, "origin", zoneInfo.vecOrigin);
DispatchSpawn(entity);
ActivateEntity(entity);
SetEntityModel(entity, "models/error.mdl");
SetEntProp(entity, Prop_Send, "m_nSolidType", 2);
SetEntProp(entity, Prop_Send, "m_fEffects", GetEntProp(entity, Prop_Send, "m_fEffects") | EF_NODRAW);
SetEntPropVector(entity, Prop_Data, "m_vecMins", zoneInfo.vecMins);
SetEntPropVector(entity, Prop_Data, "m_vecMaxs", zoneInfo.vecMaxs);
SDKHook(entity, SDKHook_StartTouchPost, SDK_RestrictedZoneTouch);
renderZones = true;
}
Im creating solid walls like this. Players cannot go through these walls, but you can drop weapons through them. How can I make them solid to weapons as well? (I'm making a bombsite restrictor plugin, players must not drop C4 through them).
If I change func_wall_toggle to func_brush, its the same thing ...
__________________