View Single Post
Author Message
cpsap2
New Member
Join Date: Oct 2020
Old 07-26-2021 , 14:46   [l4d2] Server lag problem
Reply With Quote #1

Generating a large number of special infections at one time will cause the server to lag, how to optimize

Similar code
PHP Code:
for (new 016i++)
{
    switch(
GetRandomInt(05))
    {
        case 
0:
            
FakeClientCommand(client"z_spawn_old smoker auto");
        case 
1:
            
FakeClientCommand(client"z_spawn_old boomer auto");
        case 
2:
            
FakeClientCommand(client"z_spawn_old hunter auto");
        case 
3:
            
FakeClientCommand(client"z_spawn_old spitter auto");
        case 
4:
            
FakeClientCommand(client"z_spawn_old jockey auto");
        case 
5:
            
FakeClientCommand(client"z_spawn_old charger auto");    
    }

-google translate
-my English is not good
cpsap2 is offline