View Single Post
Author Message
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 07-07-2015 , 05:42   [ANY]Security entity limit (0.5.4v)
Reply With Quote #1

Security entity limit


Why another one?
  • Remove the oldest entity and not new
  • Server owner support with entities counter
  • Request

Current Version: 0.5.5v

Current Beta Version: N/A


Cvar
  • sm_sel_version Version of the plugin
  • sm_sel_log_enabled Enable/Disable SEL logs

Command
  • sm_sel_show_counter Enable/Disable the counter to show in real time entities alive in a map. Default flag access: Adm_slay

How install it?
  • Click on Get Plugins
  • Copy and paste the file in servername>tf>addons>sourcemod>plugins
  • Optional: You can add the source in servername>tf>addons>sourcemod>scripting
Know bugs?
  • Nothing for now
Special thanks
  • TonyBarreta for the request, idea, and for testing the beta version
  • psychonic for showing me a better way to loop every entities
Changelog

Code:
v0.5.5
-Code clean-up.
-Improved logs.
-Fixed a bug in entity deletion method.
v0.5.4
-Tested on custom gamemode and MvM.
-Reworked code.
v0.5.3
-Fixed a wrong/non working version.
v0.5.2
-Beta ended
-Improved killing of entities
-Moved code to new syntax SM 1.7+
v0.5.1_9 Beta
-Fixed bug with an array in OnEntityDestroyed
-Entities counter improved
v0.5.1_8 Beta
-Fixed the hud counter from blocking text hud in TF2Ware
v0.5.1_7 Beta
-Fixed counter not being shown
-Fixed leaks with the critical limit
-Entities are now properly deleted
v0.5.1_5 Beta
-Improving map entities detection again
-Added a command to show in real time the entities alive in the map
v0.5 Beta
-Improving map entities detection
-Added a cvar to disable/enable log
-Reworked entities checking
v0.4
-Decreased cleaning limit
-The plugin deletes now ghost entities
v0.3
-Improved logs
-Improved entity limit detection
-Added a critical entity limit to 2044 entities(planning to add a cvar for this)
-Decreased cleaning limit to 2040 (from 2044)
-Fixed code not to work properly sometimes
v0.2_2
-Fixed a bug with arrays
v0.2
-Better map entities protection
-Fixed possible lags with TF2Ware
-Plugin now logs the entity deleted with his classname
v0.1
-Initial release
Counter of old total views
  • 1593
Note:
  • Feel free to use and add my code in your plugin, don't forget to give credits
Attached Files
File Type: sp Get Plugin or Get Source (security_entity_limit.sp - 4347 views - 5.5 KB)
__________________

Last edited by Benoist3012; 04-30-2020 at 21:19. Reason: typo
Benoist3012 is offline