Advertisement
Guest User

Untitled

a guest
Jun 6th, 2012
457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.92 KB | None | 0 0
  1. // autostart on dedicated server launch
  2.  
  3.  
  4. //set autostartswitch to:
  5. // 0 for CTF
  6. // 1 for TDM
  7. // 2 for Sandbox
  8. // 3 for Zombies
  9. // 4 for RTDM
  10. // 5 for WAR
  11. // 6 for FULL CTF
  12. // 10 for TEST
  13.  
  14. global autostartswitch = 6;
  15.  
  16. newWorld( "" );
  17. switchGameState(0);
  18.  
  19. startServer();
  20.  
  21. if (autostartswitch == 0) //ctf
  22. {
  23. LoadRules("Rules/CTF/gamemode.cfg");
  24. LoadMapCycle( "Scripts/mapcycle.cfg" );
  25. LoadMap( "" );
  26. print(`Loaded CTF default config`);
  27. }
  28. else if (autostartswitch == 1) //tdm
  29. {
  30. LoadRules("Rules/TDM/gamemode.cfg");
  31. LoadMapCycle( "Scripts/mapcycle.cfg" );
  32. LoadMap( "" );
  33. print(`Loaded TDM default config`);
  34. }
  35. else if (autostartswitch == 2) //sandbox
  36. {
  37. LoadRules("Rules/Sandbox/gamemode.cfg");
  38. LoadMapCycle( "Scripts/mapcycle.cfg" );
  39. LoadMap( "" );
  40. print(`Loaded TDM default config`);
  41. }
  42. else if (autostartswitch == 3) //zombies (GOLD ONLY - SET sv_gold_only = 1; in dedicated_autoconfig.gm)
  43. {
  44. LoadRules("Rules/Zombie_Survival/gamemode.cfg");
  45. LoadMapCycle( "Rules/Zombie_Survival/ZombieMapCycle.cfg" );
  46. LoadMap( "" );
  47.  
  48. print(`Loaded zombies default config`);
  49. } else if (autostartswitch == 4) //rtdm
  50. {
  51. LoadRules("Rules/RTDM/gamemode.cfg");
  52. LoadMapCycle( "Rules/RTDM/RTDMMapCycle.cfg" );
  53. LoadMap( "" );
  54. print(`Loaded RTDM default config`);
  55. } else if (autostartswitch == 5) //WAR
  56. {
  57. LoadRules("Rules/WAR/gamemode.cfg");
  58. LoadMapCycle( "Rules/WAR/WarMapCycle.cfg" );
  59. LoadMap( "" );
  60. print(`Loaded RTDM default config`);
  61. }
  62. else if (autostartswitch == 6) //FULL CTF
  63. {
  64. LoadRules("Rules/FullCTF/gamemode.cfg");
  65. LoadMapCycle( "Rules/FullCTF/mapcycle.cfg" );
  66. LoadMap( "" );
  67. print(`Loaded FULL CTF default config`);
  68. }else
  69. if (autostartswitch == 10) //test
  70. {
  71. LoadRules("Rules/TEST/gamemode.cfg");
  72. LoadMapCycle( "Scripts/mapcycle.cfg" );
  73. LoadMap( "" );
  74. print(`Loaded TEST default config`);
  75. }
  76.  
  77. print(`Config finished loading from Scripts/Server/dedicated_autostart.gm`);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement