This plugin conflicts with the Anomaly plugin and causes the errors below to spam the error log. Please could you add in the following to fix?
L 03/05/2020 - 02:20:04: [SM] Exception reported: Entity -1 (-2019573042) is invalid
L 03/05/2020 - 02:20:04: [SM] Blaming: l4d_rock_lagcomp.smx
L 03/05/2020 - 02:20:04: [SM] Call stack trace:
L 03/05/2020 - 02:20:04: [SM]  GetEntPropVector
L 03/05/2020 - 02:20:04: [SM]  Line 230, l4d_rock_lagcomp.sp::OnGameFrame
You're storing EntIndexToEntRef but never verify it on retrieval. Remove invalid rocks from the array, line 230 add:
if( !rockEntity || EntRefToEntIndex(rockEntity) == INVALID_ENT_REFERENCE )
To avoid a further conflict where this plugin makes the Anomaly rock visible I would suggest checking the "m_iHammerID". It would be most efficient to do:
// Add this line before "Array_AddNewRock" in "OnEntityCreated"
SDKHook(entityRef, SDKHook_SpawnPost, SpawnPost);
// Add this below outside "OnEntityCreated" function.
void SpawnPost(int entity)
if( GetEntProp(entity, Prop_Data, "m_iHammerID") == 92950 )
That way the rock is removed from the array and saving many CPU cycles from the OnGameFrame function.
I would have made Anomaly compatible with this plugin but it's not possible on my end and the fix has to come from this plugin.
Edit: Since author is probably inactive, I've attached the plugin. Requires SMLib to compile so I've attached the compile version too.