The PDE Gamers Association
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Class Max At One Time.

Go down

Class Max At One Time. Empty Class Max At One Time.

Post by tater2sacks Tue Jul 03, 2012 3:01 am

STOCK:
Code:
MaxLoop()
{
   while(1)
   {
      if( level.ingameplayers <= 12 )
      {
         level.MGSmax = 1;
         level.piromax = 1;
         level.sharpshootersmax = 2;
         level.commandermax = 1;
         level.doctormax = 1;
         level.buildermax = 1;
         level.pioneermax = 2;
         level.supportmax = 1;
      }
      
      if( level.ingameplayers <= 24 && level.ingameplayers > 12 )
      {
         level.MGSmax = 2;
         level.piromax = 2;
         level.sharpshootersmax = 2;
         level.commandermax = 1;
         level.doctormax = 2;
         level.buildermax = 1;
         level.pioneermax = 2;
         level.supportmax = 2;
      }
      
      if( level.ingameplayers >= 25 && level.ingameplayers <= 48 )
      {
         level.MGSmax = 3;
         level.piromax = 2;
         level.sharpshootersmax = 3;
         level.commandermax = 1;
         level.doctormax = 3;
         level.buildermax = 2;
         level.pioneermax = 3;
         level.supportmax = 3;
      }
      
      if( level.ingameplayers >= 49 )
      {
         level.MGSmax = 4;
         level.piromax = 4;
         level.sharpshootersmax = 4;
         level.commandermax = 2;
         level.doctormax = 4;
         level.buildermax = 3;
         level.pioneermax = 4;
         level.supportmax = 4;
      }
      
      wait 0.05;
   }
}

NEW EDIT FOR SMALL SERVERS:
Code:
MaxLoop()
{
   while(1)
   {
      if( level.ingameplayers <= 4 )
      //if( level.ingameplayers <= 12 )
      {
         level.MGSmax = 1;
         level.piromax = 1;
         level.sharpshootersmax = 2;
         level.commandermax = 1;
         level.doctormax = 2;
         level.buildermax = 1;
         level.pioneermax = 2;
         level.supportmax = 1;
      }
      if( level.ingameplayers <= 8 && level.ingameplayers > 4 )
      //if( level.ingameplayers <= 24 && level.ingameplayers > 12 )
      {
         level.MGSmax = 2;
         level.piromax = 2;
         level.sharpshootersmax = 2;
         level.commandermax = 1;
         level.doctormax = 2;
         level.buildermax = 2;
         level.pioneermax = 2;
         level.supportmax = 2;
      }
      
      if( level.ingameplayers >= 25 && level.ingameplayers <= 48 )
      {
         level.MGSmax = 3;
         level.piromax = 2;
         level.sharpshootersmax = 3;
         level.commandermax = 1;
         level.doctormax = 3;
         level.buildermax = 2;
         level.pioneermax = 3;
         level.supportmax = 3;
      }
      
      if( level.ingameplayers >= 49 )
      {
         level.MGSmax = 4;
         level.piromax = 4;
         level.sharpshootersmax = 4;
         level.commandermax = 2;
         level.doctormax = 4;
         level.buildermax = 3;
         level.pioneermax = 4;
         level.supportmax = 4;
      }
      
      wait 0.05;
   }
I did this as a test to make it so when a medic class get locked up and no one can be a medic after they drop out of game.
Thought it would be terr to have 2 medic's slots to try to find the issue.
http://therising-mod.com/showthread.php?t=1084
tater2sacks
tater2sacks
Beginner
Beginner

Posts : 6
Join date : 2012-07-01
Location : NY
Gender : Male

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum