Raised This Month: $119 Target: $400
 29% 

[ANY]Security entity limit (0.5.4v)


Post New Thread Reply   
 
Thread Tools Display Modes
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 07-09-2015 , 15:27   Re: [ANY]Security entity limit
Reply With Quote #11

Update Security Entity Limit 0.4v
Changelog in first post.
__________________
Benoist3012 is offline
aexi0n
AlliedModders Donor
Join Date: Nov 2014
Location: bhop_deluxe
Old 07-09-2015 , 15:32   Re: [ANY]Security entity limit
Reply With Quote #12

So would this handle creating > 32 TempEnts?
aexi0n is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 07-09-2015 , 20:34   Re: [ANY]Security entity limit
Reply With Quote #13

Add a Cvar to toggle logging as it seems you log just about any activity. To me that wouldn't be needed it would just be a load and forget plugin no need to log anything.
Horsedick is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-09-2015 , 20:46   Re: Security entity limit
Reply With Quote #14

Quote:
Originally Posted by Potato Uno View Post
EDIT: So every time an entity is created, you loop across all 2048 entities?
This could be more efficiently done by using FindEntityByClassname with "*" to only loop indexes that have valid entity at them, instead of checking each individually. (You'd still want to check <2048 to stop once past networked ents).
psychonic is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 07-10-2015 , 05:06   Re: Security entity limit
Reply With Quote #15

Quote:
Originally Posted by psychonic View Post
This could be more efficiently done by using FindEntityByClassname with "*" to only loop indexes that have valid entity at them, instead of checking each individually. (You'd still want to check <2048 to stop once past networked ents).
Ah yes, like in hammer, we can target every entity with a "*", thanks I will try it.

Edit: I done this
new iEnt = BaseMapsEntity;
while((iEnt = FindEntityByClassname(iEnt, "*")) != -1)
{
__________________

Last edited by Benoist3012; 07-10-2015 at 05:15.
Benoist3012 is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 07-10-2015 , 05:07   Re: [ANY]Security entity limit
Reply With Quote #16

Quote:
Originally Posted by Horsedick View Post
Add a Cvar to toggle logging as it seems you log just about any activity. To me that wouldn't be needed it would just be a load and forget plugin no need to log anything.
Right, I will add it.

Edit: Done
__________________

Last edited by Benoist3012; 07-10-2015 at 05:25.
Benoist3012 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-10-2015 , 09:08   Re: Security entity limit
Reply With Quote #17

Quote:
Originally Posted by Benoist3012 View Post
Ah yes, like in hammer, we can target every entity with a "*", thanks I will try it.

Edit: I done this
new iEnt = BaseMapsEntity;
while((iEnt = FindEntityByClassname(iEnt, "*")) != -1)
{
Code:
while((iEnt = FindEntityByClassname(iEnt, "*")) != -1 && iEnt < 2048)
Else, you will also be getting to non-networked entities (which don't use edicts).
psychonic is offline
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 07-11-2015 , 11:57   Re: [ANY]Security entity limit
Reply With Quote #18

Could this remove an entity a player is interacting with?
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!

Byte is offline
Benoist3012
Veteran Member
Join Date: Mar 2014
Location: CWave::ForceFinish()
Old 07-11-2015 , 12:53   Re: [ANY]Security entity limit
Reply With Quote #19

Ah well if it's about cs:go for dropped weapon, yes it can happen, I will add later a black list.
__________________
Benoist3012 is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 07-14-2015 , 23:46   Re: [ANY]Security entity limit
Reply With Quote #20

Very interesting, can this be used in combination with Create Edict Fixer.
__________________

Last edited by zeroibis; 07-14-2015 at 23:46.
zeroibis is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:34.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode