AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Ball Projectile Limit (https://forums.alliedmods.net/showthread.php?t=190071)

Tylerst 07-14-2012 13:46

[TF2] Ball Projectile Limit
 
2 Attachment(s)
Ball Projectile Limit
Requires SDKHooks


Description: Limits the number of ball projectiles allowed on the map at once


This will remove ball projectiles which come from the sandman and wrap assassin once the amount of them on the map reaches the amount specified by the cvar(Default 32)
Note: This will only remove balls that have hit already hit something, so that older ones get removed before active ones.
This was created to prevent lag due to too many of them at once.



Cvars(Default Values Shown):
sm_balllimit_version "1.0.1"

sm_balllimit "32" - Limit the ball projectiles on the map to this amount
Note: Changing sm_balllimit will remove all current balls on the map


Admin Command
sm_clearballs - Clears all ball projectiles on the map, including active ones. -Default Generic Flag(b)


Changelog
Code:

Version 1.0.0 - July 14, 2012
* Initial Release
Version 1.0.1 - July 26, 2012
* Attempt at bug fix


Sreaper 07-14-2012 21:44

Re: [TF2] Ball Projectile Limit
 
Wow nice plugin! No more lagging the server with infinite sandman balls running!

MasterOfTheXP 07-15-2012 19:45

Re: [TF2] Ball Projectile Limit
 
Now this...is a nice plugin. Used to have a scrappy method with which I just removed all balls 3.0 seconds after launching, but this works out much better. Thanks!

Powerlord 07-16-2012 09:30

Re: [TF2] Ball Projectile Limit
 
This plugin should be a requirement for any FF2 server that has the Sandmen boss.

FlaminSarge 07-25-2012 22:00

Re: [TF2] Ball Projectile Limit
 
Code:

L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 3 (3) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 4 (4) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 5 (5) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 6 (6) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 7 (7) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 8 (8) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 2 (2) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 9 (9) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()

Possibly the result of the Short Circuit?

Tylerst 07-26-2012 03:04

Re: [TF2] Ball Projectile Limit
 
Quote:

Originally Posted by FlaminSarge (Post 1758301)
Code:

L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 3 (3) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 4 (4) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 5 (5) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 6 (6) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 7 (7) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 8 (8) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 2 (2) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()
L 07/25/2012 - 20:32:23: [SM] Native "GetEntPropString" reported: Entity 9 (9) is invalid
L 07/25/2012 - 20:32:23: [SM] Displaying call stack trace for plugin "TF2 Ball Projectile Limit.smx":
L 07/25/2012 - 20:32:23: [SM]  [0]  Line 706, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\include\entity.inc::GetEntityClassname()
L 07/25/2012 - 20:32:23: [SM]  [1]  Line 83, C:\TF2 Server\orangebox\tf\addons\sourcemod\scripting\TF2 Ball Projectile Limit.sp::OnEntityDestroyed()

Possibly the result of the Short Circuit?

I tried to get this to occur(tried your short circuit idea) for quite a while and couldn't.

The indexes from the errors you posted (3-9) should be reserved for clients though, so I added an entity > MaxClients check.

Hopefully that should fix your problem. If not, I'm not sure what to do about it since I can't seem to reproduce it. :?

Update to 1.0.1
-Attempt at bug fix

Wazman 08-12-2013 15:11

Re: [TF2] Ball Projectile Limit
 
plugin doesn't work, maybe update it?


All times are GMT -4. The time now is 03:31.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.