Advertisement
Guest User

Untitled

a guest
Aug 4th, 2011
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.01 KB | None | 0 0
  1. [b][size=20pt]Orpheon's Hosting Utilities[/size][/b]
  2.  
  3. [b][size=12pt]Description:[/size][/b]
  4. I've noticed that there is no server-mod anymore, because both Vindicator and Ajf (and Artemis) decided to discontinue their mods.
  5. This is not a very good thing, since there are several features that are easy to code and very useful for hosting yet do not exist in the standard gg2 for various reasons (like kicking).
  6.  
  7. That's why I've decided to make my own.
  8.  
  9. It features kicking, banning, classlimits, plugin support, map changing, chat, rcon and the newest version of the Tempest Bot.
  10.  
  11.  
  12. [b][size=12pt]Command List and the Console:[/size][/b]
  13.  
  14. The console is in the bottom-left of your screen. You can activate/desactivate it pressing Enter.
  15. When you type a command, add arguments like this:
  16. [code]myCommand -arg1 -arg2 -arg3[/code]
  17.  
  18. Rcon commands must simply be preceded with "rcon ", like this:
  19. [code]rcon addBot -red -pyro[/code]
  20.  
  21. You can make some commands execute automatically once you host/join a server. To do this, create a text file called "autoexec.txt" inside your OHU Directory.
  22. Then, inside, mark your commands with the following syntax:
  23. [code]addBot -red -pyro|chat|Hello, I'm your host|/exit[/code]
  24. (This is an example, of course)
  25.  
  26.  
  27. -The current Command List-
  28. [spoiler]
  29. [i]addBot -team -class[/i]
  30. team can be: -red, -blue or -blu
  31. class can be: -scout, -runner, -soldier, -rocketman, etc...
  32. This adds a bot to the game of the given team and class, obviously.
  33. Warning: It will not work in Dynamic Mode, this is intended.
  34.  
  35. [i]removeBot[/i]
  36. Removes the last bot created.
  37.  
  38. [i]kick -playerName[/i]
  39. Kicks the player with that name.
  40.  
  41. [i]ban -playerName[/i]
  42. Writes the IP of that player to a file called "banlist.txt" and kicks the player.
  43. When a player joins, the game first checks whether that IP was banned, if yes it refuses the connection and sends a small message to the console.
  44.  
  45. [i]showIP -playerName[/i]
  46. Writes the players IP to the console.
  47.  
  48. [i]nextMap[/i]
  49. Ends the game with a Stalemate and goes to the next map.
  50.  
  51. [i]changeMap -mapName[/i]
  52. Ends the game with a Stalemate and goes to the map of your choice. After that map is finished the game will continue where it left off in your rotation.
  53.  
  54. [i]chat[/i]
  55. Starts Chat mode. Details below.
  56.  
  57. [i]help[/i]
  58. Shows a list of all the available commands, including plugins.
  59. Was mostly included as a test.
  60.  
  61. [i]setCrossTeamChat -on/off[/i]
  62. What it says; it lets different teams all chat together.
  63.  
  64. [i]setRconPass -password[/i]
  65. Sets the rcon password.
  66. [b]This must imperatively be done at the start of the match![/b]
  67.  
  68. [i]rconPass -password[/i]
  69. This is how the client tries to become a rcon, by typing this.[/spoiler]
  70.  
  71.  
  72. [b][size=12pt]Plugins, how to use and how to make them:[/size][/b]
  73.  
  74. I used the .spy extension on wish of a few members, but the plugins are still a normal text.
  75. To use plugins, just put the plugin into the folder "Plugins" and it should get automatically loaded.
  76.  
  77. To make plugins, just write the code in GMK, paste it into Notepad/Gedit/whathaveyou and give it the extension .spy
  78.  
  79. I defined two commands that are useful for the making of plugins: print(string), which displays a message to the console; and addCommand(name, command), which adds a command to the list.
  80.  
  81.  
  82. [b][size=12pt]Plugin List:[/size][/b]
  83.  
  84. [b]Warning: I do not guarantee that any of these plugins work or do not break OHU.[/b]
  85. [url=http://www.ganggarrison.com/forums/index.php?action=dlattach;topic=28839.0;attach=10776]Damage Indicator[/url]
  86. [url=http://www.ganggarrison.com/forums/index.php?action=dlattach;topic=28839.0;attach=10779]Taunt-heal[/url]
  87. [url=http://www.ganggarrison.com/forums/index.php?action=dlattach;topic=28839.0;attach=10774]Bullet Coloration[/url]
  88. [url=http://www.ganggarrison.com/forums/index.php?action=dlattach;topic=28839.0;attach=10777]FPS Indicator[/url]
  89. [url=http://www.ganggarrison.com/forums/index.php?action=dlattach;topic=28839.0;attach=10778]Sprite Loader[/url]+[url=http://www.ganggarrison.com/forums/index.php?action=dlattach;topic=28839.0;attach=10775]The default sprites[/url]
  90. [url=http://www.ganggarrison.com/forums/index.php?action=dlattach;topic=28839.0;attach=10810]Hat Loader[/url]+[url=http://www.ganggarrison.com/forums/index.php?action=dlattach;topic=28839.0;attach=10809]Hap Sprites[/url]
  91.  
  92.  
  93. [b][size=12pt]Rcon and you:[/size][/b]
  94.  
  95. The first thing a hoster should do is define a rcon password. This is done by typing
  96. [code]setRconPass -my_very_secret_password[/code]
  97.  
  98. Clients can then connect using
  99. [code]rconPass -the_secret_password[/code]
  100.  
  101. A rcon client can do everything the host can.
  102. Beware: Error messages will appear on the hosts console, because I haven't made a system to convey them back yet.
  103. Be careful to type your commands correctly.
  104.  
  105. A rcon will have a light-blue colored chat text.
  106.  
  107.  
  108. [b][size=12pt]The Chat:[/size][/b]
  109.  
  110. You can activate the chat mode by typing "chat" inside the console.
  111.  
  112. By pressing "u" everything you type will be for your team only, and by pressing "y" you'll let everyone know.
  113.  
  114. Default is private chat.
  115.  
  116. The host will always have a yellow text color for everyone, and rcons light-blue text.
  117. Else simply the team color, with green for Spectators.
  118.  
  119. If the host wants to kick someone from the chat, type in chat mode "/kick -playerName".
  120.  
  121. NOTE: It's possible, if you do a bit of research in the source, for a client to send text in about every color.
  122. You don't even need to modify anything. So don't be surprised if suddenly the chat gets colorful.
  123.  
  124.  
  125. [b][size=12pt]Credits:[/size][/b]
  126.  
  127. -I ripped several parts from TTS, most notably the console itself, as well as a few algorithms. Credit to ajf.
  128. -I ripped a bit of the design concept from the Artemis chat into my own. I'm talking about the chat background. I made it myself, but I ...inspired myself from Artemis.
  129.  
  130. [b]Also Huge thanks to:
  131. [list]
  132. [li]Derp(new)
  133. [/li][li]Goodness and Light[/li]
  134. [li]Jazzi
  135. [/li][li]Gangsterman
  136. [/li][li]CrazNoDooder
  137. [/li][li]ViP3R
  138. [/li][li]Muse
  139. [/li][li]rolfcake
  140. [/li][li]Trog (also known as gorT)
  141. [/list]
  142.  
  143. for bug-testing and various small helps.
  144.  
  145.  
  146. [b][size=12pt]Download:[/size][/b]
  147. [url=http://www.mediafire.com/?42ycf8ya5o4749u]The exe[/url]
  148. [url=http://www.mediafire.com/?69y2cg945ek78cy]The zip (for people with oversensitive Anti-virus)[/url]
  149. [url=http://www.mediafire.com/?rvphn5p2kaqghfg]The source (as gmk)[/url]
  150. [url=http://git://github.com/Orpheon/Gang-Garrison-2.git]The source (at GitHub)[/url]
  151.  
  152.  
  153. [b][size=12pt]A hilarious example of the Tempest Bot, provided by rolfcake:[/size][/b]
  154. [spoiler][flash=640,480]http://www.youtube.com/watch?v=X_niZgRAqCk&feature=player_detailpage[/flash][/spoiler]
  155. And yeah, you can do this with Scouts, Pyros, Soldiers, Heavies, Medics, Engineers, Snipers and any combination of those!
  156. More information on the Tempest Bot can be found [url=http://www.ganggarrison.com/forums/index.php?topic=25580.0]here[/url].
  157.  
  158.  
  159. [b]This is a WIP, I can still use help.[/b]
  160. Plugins, Questions, Requests, Bug Reports and Ideas are very appreciated
  161.  
  162.  
  163. PS: Moved because Haxxy ended.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement