Raised This Month: $ Target: $400
 0% 

Changing weapons models = very high bandwidth usage?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Speed!
BANNED
Join Date: Jan 2009
Old 03-09-2009 , 13:57   Changing weapons models = very high bandwidth usage?
Reply With Quote #1

im using this code, and i think its really laging my server

PHP Code:
public message_cur_weapon(msg_idmsg_destmsg_entity)
{
//...
replace_models(msg_entity)

PHP Code:
// Set Custom Weapon Models
public replace_models(id)
{
    
// Not alive
    
if (!is_user_alive(id))
        return;
    
    switch (
g_currentweapon[id])
    {
        case 
CSW_M3:
        {
            
set_pev(idpev_viewmodel2model_vmm3_survivor)
            
set_pev(idpev_weaponmodel2model_pmm3_survivor)
        }
        
// loootss more of switches.....

    
}

is this really lagin' my server? what alternative i have?

PD: This has nothin' to do with ppl downloadin' models

Last edited by Speed!; 03-09-2009 at 14:00.
Speed! is offline
 



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 08:58.


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