Raised This Month: $ Target: $400
 0% 

[TF2] Ball Projectile Limit


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Tylerst
Veteran Member
Join Date: Oct 2010
Plugin ID:
3086
Plugin Version:
1.0.1
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    9 
    Plugin Description:
    Limits the number of ball projectiles allowed on the map at once
    Old 07-14-2012 , 13:46   [TF2] Ball Projectile Limit
    Reply With Quote #1

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (TF2 Ball Projectile Limit.sp - 411 views - 3.4 KB)
    File Type: smx TF2 Ball Projectile Limit.smx (4.2 KB, 549 views)

    Last edited by Tylerst; 07-26-2012 at 03:05. Reason: Update
    Tylerst is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 07-14-2012 , 21:44   Re: [TF2] Ball Projectile Limit
    Reply With Quote #2

    Wow nice plugin! No more lagging the server with infinite sandman balls running!

    Last edited by Sreaper; 07-14-2012 at 23:35.
    Sreaper is offline
    MasterOfTheXP
    Veteran Member
    Join Date: Aug 2011
    Location: Cloudbank
    Old 07-15-2012 , 19:45   Re: [TF2] Ball Projectile Limit
    Reply With Quote #3

    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!
    __________________
    Plugins / My Steam / TF2 Sandbox (plugin beta testing!)
    MasterOfTheXP is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 07-16-2012 , 09:30   Re: [TF2] Ball Projectile Limit
    Reply With Quote #4

    This plugin should be a requirement for any FF2 server that has the Sandmen boss.
    __________________
    Not currently working on SourceMod plugin development.

    Last edited by Powerlord; 07-16-2012 at 09:30.
    Powerlord is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 07-25-2012 , 22:00   Re: [TF2] Ball Projectile Limit
    Reply With Quote #5

    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?
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.

    Last edited by FlaminSarge; 07-25-2012 at 22:00.
    FlaminSarge is offline
    Tylerst
    Veteran Member
    Join Date: Oct 2010
    Old 07-26-2012 , 03:04   Re: [TF2] Ball Projectile Limit
    Reply With Quote #6

    Quote:
    Originally Posted by FlaminSarge View Post
    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

    Last edited by Tylerst; 07-26-2012 at 03:04.
    Tylerst is offline
    Wazman
    AlliedModders Donor
    Join Date: Oct 2012
    Location: Unknown place ????
    Old 08-12-2013 , 15:11   Re: [TF2] Ball Projectile Limit
    Reply With Quote #7

    plugin doesn't work, maybe update it?
    Wazman is offline
    Reply



    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 03:31.


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