source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

[HL2MP] Prevent deleting vital entities

Open speedvoltage opened this issue 9 months ago • 1 comments

Issue: Deleting certain entities crashes the game. Obviously, deleting worldspawn is a bad idea for example.

Fix: Prevent deleting vital entities responsible for running the game properly.

speedvoltage avatar Mar 14 '25 21:03 speedvoltage

This is a poor way of going about it. You can bypass it by changing the classname of the entity, for example ent_fire player addoutput "classname abc";ent_remove abc (you can also workaround this with ent_create). You should not be doing any classname comparisons

ficool2 avatar Mar 14 '25 22:03 ficool2