Raised This Month: $51 Target: $400
 12% 

[CS:S] Weapon Optimizer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Agent Wesker
Senior Member
Join Date: Apr 2012
Plugin ID:
2892
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Old 04-08-2012 , 15:43   [CS:S] Weapon Optimizer
    Reply With Quote #1

    Description:
    I made this modified plugin for surf servers in general, for maps with weapon spawners.

    It will remove collision on weapons which reduces server lag. It will also remove all weapons if there are too many on the map which could prevent a crash.

    Note that this does not remove weapons completely or on player drop, use another plugin for that.

    CVars:

    Code:
    sm_weaponoptimizer_enable //Enable or disable collision checker
    //Default 1
    
    sm_weaponoptimizer_time //Disables collision on all weapons (and removes if limit reached) every X seconds
    //Requires sm_weaponoptimizer_enable 1
    //Default 10
    //Min 5, Max 600
    
    sm_weaponoptimizer_remove //Enable remove all weapons
    //Default 1
    
    sm_weaponoptimizer_limit //Remove all weapons once the amount of weapons reaches this limit
    //Requires sm_weaponoptimizer_remove 1
    //Default 35
    //Min 1, Max 500
    Idea taken from: http://forums.alliedmods.net/showthread.php?p=870661
    and http://forums.alliedmods.net/showthread.php?p=1612901

    Modified to apply to all weapons instead of dropped ones, and works on an interval timer instead of game events.
    Attached Files
    File Type: sp Get Plugin or Get Source (WeaponOptimizer.sp - 1045 views - 3.1 KB)

    Last edited by Agent Wesker; 04-08-2012 at 16:25.
    Agent Wesker 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 16:59.


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