Raised This Month: $ Target: $400
 0% 

Bandwidth Reducer & Server Optimizer


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Server Management       
endeffects
Senior Member
Join Date: Nov 2007
Old 01-30-2010 , 11:03   Bandwidth Reducer & Server Optimizer
Reply With Quote #1

Bandwidth Reducer by MeRcyLeZZ
http://forums.alliedmods.net/member.php?u=33273


This is a great plugin i found as comment on the following thread:
http://forums.alliedmods.net/showthr...reducer&page=3

It allows to override various functions server side and helps
to reduce the traffic the server sends. A nice side effect
is that it removes chokes too and the gameplay is much better.

I had a great performance boost when i was running the plugin
the first time.

Anyways, everything good has something bad, you'll notice
that some animations are badly timed if you turn to many options on.
See the script comments for more details.

Currently it looks like that the author MeRcyLeZZ is no longer active
on this board, which is the reason i'm posting the plugin here.

So if you have some more suggestions to reduce the server load
and to improve the performance please share it and i'll try to update
the plugin with it.

Thanks and regards.

All Credits goes to MeRcyLeZZ.
Attached Files
File Type: sma Get Plugin or Get Source (bandwidth_reducer.sma - 1356 views - 3.0 KB)

Last edited by endeffects; 01-30-2010 at 11:07.
endeffects is offline
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 01-30-2010 , 11:29   Re: Bandwidth Reducer & Server Optimizer
Reply With Quote #2

Lets SEE!
__________________


SpILL is offline
TotalCS
Member
Join Date: Aug 2008
Old 01-30-2010 , 13:23   Re: Bandwidth Reducer & Server Optimizer
Reply With Quote #3

I`m going to test it
TotalCS is offline
sunx
Veteran Member
Join Date: Mar 2009
Location: Germany
Old 01-30-2010 , 13:28   Re: Bandwidth Reducer & Server Optimizer
Reply With Quote #4

better host a good server and plugins like this are useless ... -.-

Last edited by sunx; 01-30-2010 at 13:31.
sunx is offline
endeffects
Senior Member
Join Date: Nov 2007
Old 01-30-2010 , 13:54   Re: Bandwidth Reducer & Server Optimizer
Reply With Quote #5

Quote:
Originally Posted by sunx View Post
better host a good server and plugins like this are useless ... -.-
thanks for enlighting us, and yeah - in a perfect world nobody overloads
his server with plugins or mods and is not limited to cheap shared host.
endeffects is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-30-2010 , 14:02   Re: Bandwidth Reducer & Server Optimizer
Reply With Quote #6

AWESOME, installing right now.

Please make setting through a config file so we don't need to compile each time we want to test another config.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
endeffects
Senior Member
Join Date: Nov 2007
Old 01-30-2010 , 14:28   Re: Bandwidth Reducer & Server Optimizer
Reply With Quote #7

you are right, i'm going to add pvars and dead body removal (required for one option).

also i'm thinking about to add some ent-removal support for breakable ents,
boxes, doors and ambient sounds.

Last edited by endeffects; 01-30-2010 at 14:32.
endeffects is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-30-2010 , 14:29   Re: Bandwidth Reducer & Server Optimizer
Reply With Quote #8

Quote:
Originally Posted by ConnorMcLeod View Post
AWESOME, installing right now.

Please make setting through a config file so we don't need to compile each time we want to test another config.
It can be even changed in runtime.
01101101 is offline
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-30-2010 , 14:39   Re: Bandwidth Reducer & Server Optimizer
Reply With Quote #9

This should work in runtime. It loads config each round.

PHP Code:
/*
*    -----------------------------
*    -*- Bandwidth Reducer 0.1 -*-
*    -----------------------------
*
*
* Set one or more of the following to 1 (enabled) to reduce bandwidth.
* Note: Each has its own side effect you should be aware of.
*
* Settting                    // Side effect when enabled
* --------                    // -------------------------*/
#define CD_DONT_SEND_STEPSOUND        A    // Players won't hear their own footstep sounds.
#define CD_DONT_SEND_PUNCHANGLE        B    // Players won't see the actual weapon's recoil if using cl_lw 1.
#define CD_DONT_SEND_NEXTATTACK        C    // Players may see weapons fire when they shouldn't if using cl_lw 1.
#define CD_DONT_SEND_VELOCITY        D    // Players may experience sloppy movements.
#define ES_DONT_SEND_ORIGIN_SELF    E     // None that I can see.
#define ES_DONT_SEND_ANGLES_SELF    F    // If using 3rd person view, players will see themselves looking at an odd direction.
#define ES_DONT_SEND_FRAME_SELF        G    // If using 3rd person view, players will see their own weapon animations incorrectly.
#define ES_DONT_SEND_ANIMTIME_SELF    H    // If using 3rd person view, players will see their own weapon animations incorrectly.
#define ES_DONT_SEND_BLENDING_SELF    I     // None that I can see.
#define ES_DONT_SEND_ANGLES_OTHERS    J    // Players will see others looking at an odd direction
#define ES_DONT_SEND_FRAME_OTHERS    K    // Players will see others' weapon animations incorrectly.
#define ES_DONT_SEND_ANIMTIME_OTHERS    L    // Players will see others skipping around.
#define ES_DONT_SEND_BLENDING_OTHERS    M     // None that I can see.


#include <amxmodx>
#include <fakemeta>

new cvar
new daflags
public plugin_init()
{
    
register_plugin("Bandwidth Reducer""0.1""MeRcyLeZZ")
    
register_forward(FM_UpdateClientData"fw_UpdateClientData"1)
    
register_forward(FM_AddToFullPack"fw_AddToFullPack"1)
    
register_event("HLTV""event_round_start""a""1=0""2=0")
    
cvar register_cvar("amx_bwreducer""aceghikm")
    
event_round_start()
}

public 
event_round_start()
{
    static 
buffer[20]; get_pcvar_string(cvarbuffer19)
    
daflags read_flags(buffer)
}

public 
fw_UpdateClientData(playersendweaponshandle)
{
    if(
daflags & (1<<0))
    
set_cd(handleCD_flTimeStepSound999 )
    
    if(
daflags & (1<<1))
    
set_cd(handleCD_PunchAngleFloat:{ 0.00.00.0 } )
    
    if(
daflags & (1<<2))
    
set_cd(handleCD_flNextAttack0.0 )
    
    if(
daflags & (1<<3))
    
set_cd(handleCD_VelocityFloat:{ 0.00.00.0 } )
}

public 
fw_AddToFullPack(handleeenthosthostflagsplayerpset)
{
    if (!
player) return;
    
    if (
host == ent)
    {
        if(
daflags & (1<<4))
        
set_es(handleES_OriginFloat:{ 0.00.00.0 })
        
        if(
daflags & (1<<5))
        
set_es(handleES_AnglesFloat:{ 0.00.00.0 })
        
        if(
daflags & (1<<6))
        
set_es(handleES_Frame1.0 )
        
        if(
daflags & (1<<7))
        
set_es(handleES_AnimTime1.0 )
        
        if(
daflags & (1<<8))
        
set_es(handleES_Blending, { 0000} )
    }
    else
    {
        if(
daflags & (1<<9))
        
set_es(handleES_AnglesFloat:{ 0.00.00.0 })
        
        if(
daflags & (1<<10))
        
set_es(handleES_Frame1.0 )
        
        if(
daflags & (1<<11))
        
set_es(handleES_AnimTime1.0 )
        
        if(
daflags & (1<<12))
        
set_es(handleES_Blending, { 0000} )
    }

01101101 is offline
sunx
Veteran Member
Join Date: Mar 2009
Location: Germany
Old 01-30-2010 , 14:48   Re: Bandwidth Reducer & Server Optimizer
Reply With Quote #10

Quote:
Originally Posted by endeffects View Post
thanks for enlighting us, and yeah - in a perfect world nobody overloads
his server with plugins or mods and is not limited to cheap shared host.
well ... we can choose settings in an interface / settings .... friends from other countrys told me, that its not basic for them.
sooo ... sry ... didnt know that, but here its standart.

i didnt want to critism you or your plugin ( your plugin is well done, GZ )
Its just .. in germany every hoster has basicly standarts for servers - you can customize everything as you want ( any settings ) .. so this plugin is never needed ( for us ) .

Anyway, you made a good job ... i just thought its standart for you, too

Last edited by sunx; 01-31-2010 at 01:16.
sunx 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 06:56.


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