Description:
"Garbage" collects (removes from the game) orphaned entities such as projectiles after their owner dies. Does so by hooking the
FireProjectile member function of each valid CTFWeaponBaseGun.
It currently works in TF2 Classic on my MGE server, but if someone's interested, I could port it over to the base game as well.
ConVars- sm_entc_version "1.1.3"
- entc_tracked_ents "30"
- Number of tracked entities per player.
- entc_autoremove "1"
- Remove entities automatically on death. Use RemoveClientEntities to remove them manually at any time.
- entc_display_te ""
- Show a brief visual effect in place of a removed entity. Empty value means disabled.
- Works with "Sparks" and "Energy Splash".
Changelog
Code:
27-12-2023 (1.1.3)
- Added three new ConVars
- Added a native for plugins to manually call for removal
26-12-2023 (1.0.0)
- Initial release