Advertisement
Guest User

214swedasd

a guest
Nov 20th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.74 KB | None | 0 0
  1. // in AGR defs:
  2. // BGM STUFF (globals)
  3.  
  4. // crash happens when this is 1!!!:
  5. const float enable_bgm = 0;     // for the StandbyList/AGR Alarm/BGM:   FORK MODE
  6.  
  7. const float post_current_playerlist_to_bgm = 0;
  8.  
  9.  
  10.  
  11.  
  12.  
  13. // in worldspawn
  14. .
  15. .
  16. .
  17.  
  18.     // this sends a uri request for the standby list every 60 seconds
  19.     if (enable_bgm) // the ONLY place this global exists!
  20.     {
  21.         if( fork())
  22.         {
  23.        
  24.             while(1) // do this forever
  25.             {
  26.                
  27.                 if(agr_server & IS_TEST_SERVER )
  28.                     sleep(10);
  29.                 else
  30.                     sleep(70);
  31.                
  32.                 // sends list of all connected players to the BGM
  33.                 if(post_current_playerlist_to_bgm) // post_current_playerlist_to_bgm is '0', so:
  34.                     BGMSendPlayerList();            // <- this doesnt even run!!
  35.                
  36.            
  37.             }
  38.         }
  39.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement