Advertisement
ev88

config.cs

Jul 11th, 2015
292
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 11.29 KB | None | 0 0
  1. /**
  2.  * Admin Levels: Every superior admin level can do everything
  3.  * the level below can do.
  4.  *
  5.  * Level 1: Pug Admin
  6.  *  - Can set the server password so people can join pugs
  7.  *  - Can force players to switch teams
  8.  *  - Can change maps
  9.  * Level 2: Moderator
  10.  *  - Can kick and ban people
  11.  * Level 3: Admin
  12.  *  - Slash commands
  13.  * Level 4: Super Admin
  14.  *  - Has Eval access
  15.  * Level 5: Owner
  16.  *  - God
  17.  */
  18.  
  19. // This level can't do anything
  20. $Host::Admins::Name[0] = "Player";
  21. $Host::Admins::Level[0] = 0;
  22. $Host::Admins::Password[0] = "";
  23.  
  24. $Host::Admins::Name[1] = "PUG";
  25. $Host::Admins::Level[1] = 1;
  26. $Host::Admins::Password[1] = "change_me1";
  27.  
  28. $Host::Admins::Name[2] = "Moderator";
  29. $Host::Admins::Level[2] = 2;
  30. $Host::Admins::Password[2] = "change_me2";
  31.  
  32. $Host::Admins::Name[3] = "Admin";
  33. $Host::Admins::Level[3] = 3;
  34. $Host::Admins::Password[3] = "change_me3";
  35.  
  36. $Host::Admins::Name[4] = "Super Admin";
  37. $Host::Admins::Level[4] = 4;
  38. $Host::Admins::Password[4] = "change_me4";
  39.  
  40. $Host::Admins::Name[5] = "Owner";
  41. $Host::Admins::Level[5] = 5;
  42. $Host::Admins::Password[5] = "change_me5";
  43.  
  44. $Host::AutoResetPassword = false;
  45. $Host::AutoResetPasswordTime = 600000; // Default of 600,000 milliseconds = 10 minutes after all players have left
  46. $Host::DefaultPassword = "";
  47.  
  48. // A lot of these will be overrided by Server::create() in server.cs
  49. // if the options are selected using the GUI page gameMenu.cs
  50. $Host::Name = "A Dedicated Server";
  51. $Host::GameType = "CTF";
  52. $Host::MaxPlayers = 32;
  53. $Host::MaxObservers = 10;
  54. $Host::Type = "Multiplayer Web";
  55. $Host::MinimumStartPlayers = 1;
  56. $Host::BroadcastMaster = false;
  57.  
  58. // The mission path, $MissionPath, can be found in legions/scripts/legionsCore.cs
  59. // The default for $MissionPath is "legions/data/missions/"
  60.  
  61. $Host::GameTypeWeight["CTF"] = 1;
  62. $Host::GameTypeWeight["TDM"] = 0;
  63. $Host::GameTypeWeight["Rabbit"] = 0;
  64. $Host::GameTypeWeight["Hunters"] = 0;
  65. $Host::GameTypeWeight["TeamRabbit"] = 0;
  66. $Host::GameTypeWeight["ChallengeMap"] = 0;
  67.  
  68. // Below, each should have the same name as the mission - ie. Frostbyte, not [FCNC]_Frostbyte
  69.  
  70. // CTF
  71. $Host::Mission["CTF", "BladeRun"] = 0;
  72. $Host::Mission["CTF", "ZenithCauldron"] = 1;
  73. $Host::Mission["CTF", "Elegiac"] = 2;
  74. $Host::Mission["CTF", "Fallout"] = 3;
  75. $Host::Mission["CTF", "Forgotten"] = 4;
  76. $Host::Mission["CTF", "Gorge"] = 5;
  77. $Host::Mission["CTF", "Moonshine"] = 6;
  78. $Host::Mission["CTF", "Mirage"] = 7;
  79. $Host::Mission["CTF", "Sleepwalker"] = 8;
  80. $Host::Mission["CTF", "Nivosus"] = 9;
  81. $Host::Mission["CTF", "Frostbyte"] = 10;
  82. $Host::Mission["CTF", "Stygian"] = 11;
  83. $Host::Mission["CTF", "TheCore"] = 12;
  84. $Host::Mission["CTF", "Genesis"] = 13;
  85. $Host::Mission["CTF", "Reactor"] = 14;
  86. $Host::Mission["CTF", "OTtN"] = 15;
  87. $Host::Mission["CTF", "Grassy"] = 16;
  88. $Host::Mission["CTF", "Whiteout"] = 17;
  89. $Host::Mission["CTF", "AlderannCatwalks"] = 18;
  90. $Host::Mission["CTF", "Outcast"] = 19;
  91. $Host::Mission["CTF", "WinterMelt"] = 20;
  92. $Host::Mission["CTF", "Qualm"] = 21;
  93. $Host::Mission["CTF", "Shoreline"] = 22;
  94. $Host::Mission["CTF", "Ravine"] = 23;
  95. $Host::Mission["CTF", "FrostbytePUG"] = 24;
  96. $Host::Mission["CTF", "Diabolus"] = 25;
  97.  
  98.  
  99.  
  100. // CNC
  101.  
  102. // TDM
  103. $Host::Mission["TDM", "Frostbyte"] = 26;
  104. $Host::Mission["TDM", "Nebula_Station"] = 27;
  105. $Host::Mission["TDM", "AlderannCatwalks"] = 28;
  106. $Host::Mission["TDM", "SandBox"] = 29;
  107.  
  108. //Rabbit
  109.  
  110. $Host::Mission["Rabbit", "Frostbyte"] = 30;
  111. $Host::Mission["Rabbit", "ZenithCauldron"] = 31;
  112. $Host::Mission["Rabbit", "Elegiac"] = 32;
  113. $Host::Mission["Rabbit", "Fallout"] = 33;
  114. $Host::Mission["Rabbit", "Genesis"] = 34;
  115. $Host::Mission["Rabbit", "Reactor"] = 35;
  116. $Host::Mission["Rabbit", "Diabolus"] = 36;
  117.  
  118. // Hunters
  119. $Host::Mission["Hunters", "Frostbyte"] = 37;
  120. $Host::Mission["Hunters", "AlderannCatwalks"] = 38;
  121.  
  122. // TeamRabbit
  123. $Host::Mission["TeamRabbit", "Fallout"] = 39;
  124. $Host::Mission["TeamRabbit", "Elegiac"] = 40;
  125. $Host::Mission["TeamRabbit", "Genesis"] = 41;
  126. $Host::Mission["TeamRabbit", "Diabolus"] = 42;
  127.  
  128.  
  129. $Host::Mission["ChallengeMap", "pipeChallenge"] = 43;
  130.  
  131. //DM
  132.  
  133. //=================================================================================
  134.  
  135. // CTF
  136. $Host::Maps::MissionFile[0] = $MissionPath @ "BladeRun.mis";
  137. $Host::Maps::Weight[0] = 0.0;
  138. $Host::Maps::MinPlayers[0] = 15;
  139. $Host::Maps::MaxPlayers[0] = 24;
  140.  
  141. $Host::Maps::MissionFile[1] = $MissionPath @ "ZenithCauldron.mis";
  142. $Host::Maps::Weight[1] = 0.8;
  143. $Host::Maps::MinPlayers[1] = 16;
  144. $Host::Maps::MaxPlayers[1] = 24;
  145.  
  146. $Host::Maps::MissionFile[2] = $MissionPath @ "Elegiac.mis";
  147. $Host::Maps::Weight[2] = 0.8;
  148. $Host::Maps::MinPlayers[2] = 0;
  149. $Host::Maps::MaxPlayers[2] = 24;
  150.  
  151. $Host::Maps::MissionFile[3] = $MissionPath @ "Fallout.mis";
  152. $Host::Maps::Weight[3] = 0.7;
  153. $Host::Maps::MinPlayers[3] = 14;
  154. $Host::Maps::MaxPlayers[3] = 24;
  155.  
  156. $Host::Maps::MissionFile[4] = $MissionPath @ "Forgotten.mis";
  157. $Host::Maps::Weight[4] = 0.6;
  158. $Host::Maps::MinPlayers[4] = 12;
  159. $Host::Maps::MaxPlayers[4] = 24;
  160.  
  161. $Host::Maps::MissionFile[5] = $MissionPath @ "Gorge.mis";
  162. $Host::Maps::Weight[5] = 0.0;
  163. $Host::Maps::MinPlayers[5] = 12;
  164. $Host::Maps::MaxPlayers[5] = 24;
  165.  
  166. $Host::Maps::MissionFile[6] = $MissionPath @ "Moonshine.mis";
  167. $Host::Maps::Weight[6] = 0.5;
  168. $Host::Maps::MinPlayers[6] = 0;
  169. $Host::Maps::MaxPlayers[6] = 12;
  170.  
  171. $Host::Maps::MissionFile[7] = $MissionPath @ "Mirage.mis";
  172. $Host::Maps::Weight[7] = 0.0;
  173. $Host::Maps::MinPlayers[7] = 15;
  174. $Host::Maps::MaxPlayers[7] = 24;
  175.  
  176. $Host::Maps::MissionFile[8] = $MissionPath @ "Sleepwalker.mis";
  177. $Host::Maps::Weight[8] = 0.0;
  178. $Host::Maps::MinPlayers[8] = 0;
  179. $Host::Maps::MaxPlayers[8] = 24;
  180.  
  181. $Host::Maps::MissionFile[9] = $MissionPath @ "Nivosus.mis";
  182. $Host::Maps::Weight[9] = 0.8;
  183. $Host::Maps::MinPlayers[9] = 0;
  184. $Host::Maps::MaxPlayers[9] = 12;
  185.  
  186. $Host::Maps::MissionFile[10] = $MissionPath @ "Frostbyte.mis";
  187. $Host::Maps::Weight[10] = 0.8;
  188. $Host::Maps::MinPlayers[10] = 0;
  189. $Host::Maps::MaxPlayers[10] = 24;
  190.  
  191. $Host::Maps::MissionFile[11] = $MissionPath @ "Stygian.mis";
  192. $Host::Maps::Weight[11] = 0.5;
  193. $Host::Maps::MinPlayers[11] = 0;
  194. $Host::Maps::MaxPlayers[11] = 12;
  195.  
  196. $Host::Maps::MissionFile[12] = $MissionPath @ "TheCore.mis";
  197. $Host::Maps::Weight[12] = 0.0;
  198. $Host::Maps::MinPlayers[12] = 15;
  199. $Host::Maps::MaxPlayers[12] = 24;
  200.  
  201. $Host::Maps::MissionFile[13] = $MissionPath @ "Genesis.mis";
  202. $Host::Maps::Weight[13] = 0.0;
  203. $Host::Maps::MinPlayers[13] = 0;
  204. $Host::Maps::MaxPlayers[13] = 24;
  205.  
  206. $Host::Maps::MissionFile[14] = $MissionPath @ "Reactor.mis";
  207. $Host::Maps::Weight[14] = 0.6;
  208. $Host::Maps::MinPlayers[14] = 0;
  209. $Host::Maps::MaxPlayers[14] = 16;
  210.  
  211. $Host::Maps::MissionFile[15] = $MissionPath @ "OTtN.mis";
  212. $Host::Maps::Weight[15] = 0.5;
  213. $Host::Maps::MinPlayers[15] = 12;
  214. $Host::Maps::MaxPlayers[15] = 24;
  215.  
  216. $Host::Maps::MissionFile[16] = $MissionPath @ "Grassy.mis";
  217. $Host::Maps::Weight[16] = 0.0;
  218. $Host::Maps::MinPlayers[16] = 0;
  219. $Host::Maps::MaxPlayers[16] = 24;
  220.  
  221. $Host::Maps::MissionFile[17] = $MissionPath @ "Whiteout.mis";
  222. $Host::Maps::Weight[17] = 0.0;
  223. $Host::Maps::MinPlayers[17] = 0;
  224. $Host::Maps::MaxPlayers[17] = 24;
  225.  
  226. $Host::Maps::MissionFile[18] = $MissionPath @ "AlderannCatwalks.mis";
  227. $Host::Maps::Weight[18] = 0.0;
  228. $Host::Maps::MinPlayers[18] = 0;
  229. $Host::Maps::MaxPlayers[18] = 24;
  230.  
  231. $Host::Maps::MissionFile[19] = $MissionPath @ "Outcast.mis";
  232. $Host::Maps::Weight[19] = 0.0;
  233. $Host::Maps::MinPlayers[19] = 0;
  234. $Host::Maps::MaxPlayers[19] = 24;
  235.  
  236. $Host::Maps::MissionFile[20] = $MissionPath @ "WinterMelt.mis";
  237. $Host::Maps::Weight[20] = 0.0;
  238. $Host::Maps::MinPlayers[20] = 0;
  239. $Host::Maps::MaxPlayers[20] = 24;
  240.  
  241. $Host::Maps::MissionFile[21] = $MissionPath @ "Qualm.mis";
  242. $Host::Maps::Weight[21] = 0.0;
  243. $Host::Maps::MinPlayers[21] = 0;
  244. $Host::Maps::MaxPlayers[21] = 24;
  245.  
  246. $Host::Maps::MissionFile[22] = $MissionPath @ "Shoreline.mis";
  247. $Host::Maps::Weight[22] = 0.0;
  248. $Host::Maps::MinPlayers[22] = 0;
  249. $Host::Maps::MaxPlayers[22] = 24;
  250.  
  251. $Host::Maps::MissionFile[23] = $MissionPath @ "Ravine.mis";
  252. $Host::Maps::Weight[23] = 0.0;
  253. $Host::Maps::MinPlayers[23] = 0;
  254. $Host::Maps::MaxPlayers[23] = 24;
  255.  
  256. $Host::Maps::MissionFile[24] = $MissionPath @ "FrostBytePUG.mis";
  257. $Host::Maps::Weight[24] = 0.0;
  258. $Host::Maps::MinPlayers[24] = 0;
  259. $Host::Maps::MaxPlayers[24] = 24;
  260.  
  261. $Host::Maps::MissionFile[25] = $MissionPath @ "Diabolus.mis";
  262. $Host::Maps::Weight[25] = 0.0;
  263. $Host::Maps::MinPlayers[25] = 0;
  264. $Host::Maps::MaxPlayers[25] = 24;
  265.  
  266.  
  267.  
  268. // TDM
  269. $Host::Maps::MissionFile[26] = $MissionPath @ "Frostbyte.mis";
  270. $Host::Maps::Weight[26] = 0.0;
  271. $Host::Maps::MinPlayers[26] = 0;
  272. $Host::Maps::MaxPlayers[26] = 24;
  273.  
  274.  
  275. $Host::Maps::MissionFile[27] = $MissionPath @ "Nebula_Station.mis";
  276. $Host::Maps::Weight[27] = 0.0;
  277. $Host::Maps::MinPlayers[27] = 0;
  278. $Host::Maps::MaxPlayers[27] = 24;
  279.  
  280. $Host::Maps::MissionFile[28] = $MissionPath @ "AlderannCatwalks.mis";
  281. $Host::Maps::Weight[28] = 0.0;
  282. $Host::Maps::MinPlayers[28] = 0;
  283. $Host::Maps::MaxPlayers[28] = 24;
  284.  
  285. $Host::Maps::MissionFile[29] = $MissionPath @ "SandBox.mis";
  286. $Host::Maps::Weight[29] = 0.0;
  287. $Host::Maps::MinPlayers[29] = 0;
  288. $Host::Maps::MaxPlayers[29] = 24;
  289. //RABBIT
  290.  
  291. $Host::Maps::MissionFile[30] = $MissionPath @ "Frostbyte.mis";
  292. $Host::Maps::Weight[30] = 0.0;
  293. $Host::Maps::MinPlayers[30] = 0;
  294. $Host::Maps::MaxPlayers[30] = 24;
  295.  
  296.  
  297. $Host::Maps::MissionFile[31] = $MissionPath @ "ZenithCauldron.mis";
  298. $Host::Maps::Weight[31] = 0.0;
  299. $Host::Maps::MinPlayers[31] = 15;
  300. $Host::Maps::MaxPlayers[31] = 24;
  301.  
  302. $Host::Maps::MissionFile[32] = $MissionPath @ "Elegiac.mis";
  303. $Host::Maps::Weight[32] = 0.0;
  304. $Host::Maps::MinPlayers[32] = 0;
  305. $Host::Maps::MaxPlayers[32] = 24;
  306.  
  307. $Host::Maps::MissionFile[33] = $MissionPath @ "Fallout.mis";
  308. $Host::Maps::Weight[33] = 0.0;
  309. $Host::Maps::MinPlayers[33] = 0;
  310. $Host::Maps::MaxPlayers[33] = 24;
  311.  
  312. $Host::Maps::MissionFile[34] = $MissionPath @ "Genesis.mis";
  313. $Host::Maps::Weight[34] = 0.0;
  314. $Host::Maps::MinPlayers[34] = 0;
  315. $Host::Maps::MaxPlayers[34] = 24;
  316.  
  317. $Host::Maps::MissionFile[35] = $MissionPath @ "Reactor.mis";
  318. $Host::Maps::Weight[35] = 0.0;
  319. $Host::Maps::MinPlayers[35] = 0;
  320. $Host::Maps::MaxPlayers[35] = 24;
  321.  
  322. $Host::Maps::MissionFile[36] = $MissionPath @ "Diabolus.mis";
  323. $Host::Maps::Weight[36] = 0.0;
  324. $Host::Maps::MinPlayers[36] = 0;
  325. $Host::Maps::MaxPlayers[36] = 24;
  326.  
  327. // Hunters
  328. $Host::Maps::MissionFile[37] = $MissionPath @ "Frostbyte.mis";
  329. $Host::Maps::Weight[37] = 0.0;
  330. $Host::Maps::MinPlayers[37] = 0;
  331. $Host::Maps::MaxPlayers[37] = 24;
  332.  
  333. $Host::Maps::MissionFile[38] = $MissionPath @ "AlderannCatwalks.mis";
  334. $Host::Maps::Weight[38] = 0.0;
  335. $Host::Maps::MinPlayers[38] = 0;
  336. $Host::Maps::MaxPlayers[38] = 24;
  337.  
  338. // TeamRabbit
  339. $Host::Maps::MissionFile[39] = $MissionPath @ "Fallout.mis";
  340. $Host::Maps::Weight[39] = 0.0;
  341. $Host::Maps::MinPlayers[39] = 0;
  342. $Host::Maps::MaxPlayers[39] = 24;
  343.  
  344. $Host::Maps::MissionFile[40] = $MissionPath @ "Elegiac.mis";
  345. $Host::Maps::Weight[40] = 0.0;
  346. $Host::Maps::MinPlayers[40] = 0;
  347. $Host::Maps::MaxPlayers[40] = 24;
  348.  
  349. $Host::Maps::MissionFile[41] = $MissionPath @ "Genesis.mis";
  350. $Host::Maps::Weight[41] = 0.0;
  351. $Host::Maps::MinPlayers[41] = 0;
  352. $Host::Maps::MaxPlayers[41] = 24;
  353.  
  354. $Host::Maps::MissionFile[42] = $MissionPath @ "Diabolus.mis";
  355. $Host::Maps::Weight[42] = 0.0;
  356. $Host::Maps::MinPlayers[42] = 0;
  357. $Host::Maps::MaxPlayers[42] = 24;
  358.  
  359. $Host::Maps::MissionFile[43] = $MissionPath @ "pipeChallenge.mis";
  360. $Host::Maps::Weight[43] = 0.0;
  361. $Host::Maps::MinPlayers[43] = 0;
  362. $Host::Maps::MaxPlayers[43] = 24;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement