Orpheon [ONE]Orpheon's Hosting UtilitiesDescription:I've noticed that there is no server-mod anymore, because both Vindicator and Ajf (and Artemis) decided to discontinue their mods.
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).
That's why I've decided to make my own.
It features kicking, banning, classlimits, plugin support, map changing, chat and the newest version of the Tempest Bot.
Command List and the Console:The console is in the bottom-left of your screen. You can activate it by clicking on it, and return to the game by clicking away.
You can also activate/disactivate it by pressing enter.
When you type a command, add arguments like this:
myCommand -arg1 -arg2 -arg3
If you type too few arguments, the server will crash. If this happens, you can press "Ignore" a few times and the game will continue running.
Too many arguments are simply ignored.
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.
Then, inside, mark your commands with the following syntax:
addBot -red -pyro|chat|Hello, I'm your host|/exit
(This is an example, of course)
-The current Command List-
addBot -team -class
team can be: -red, -blue or -blu
class can be: -scout, -runner, -soldier, -rocketman, etc...
This adds a bot to the game of the given team and class, obviously.
Warning: It will not work in Dynamic Mode, this is intended.
removeBot
Removes the last bot created.
kick -playerName
Kicks the player with that name.
ban -playerName
Writes the IP of that player to a file called "banlist.txt" and kicks the player.
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.
showIP -playerName
Writes the players IP to the console.
nextMap
Ends the game with a Stalemate and goes to the next map.
changeMap -mapName
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.
chat
Starts Chat mode. Details below.
help
Shows a list of all the available commands, including plugins.
Was mostly included as a test.
setCrossTeamChat -on/off
What it says; it lets different teams all chat together.
Plugins, how to use and how to make them:I used the .spy extension on wish of a few members, but the plugins are still a normal text.
To use plugins, just put the plugin into the folder "Plugins" and it should get automatically loaded.
To make plugins, just write the code in GMK, paste it into Notepad/Gedit/whathaveyou and give it the extension .spy
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.
Plugin List:Damage IndicatorGib EveryoneTaunt-healKill ExtensionName ChangerBullet ColorationFPS IndicatorQwerly Special DeathThe Chat:You can activate the chat mode by typing "chat" inside the console.
By pressing "u" everything you type will be for your team only, and by pressing "y" you'll let everyone know.
Default is private chat.
The host will always have a yellow text color for everyone.
If the host wants to kick someone from the chat, type in chat mode "/kick -playerName".
NOTE: It's possible, if you do a bit of research in the source, for a client to send text in about every color.
You don't even need to modify anything. So don't be surprised if suddenly the chat gets colorful.
Credits (Judges, read this.): -I ripped several parts from TTS, most notably the console itself, as well as a few algorithms. Credit to ajf.
-The Tempest Bot was mostly made by me (with the help of a few testers, Derp, and numerous other people listed on the other thread), but it was started somewhere around last Christmas and still contains code from there.
-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.
Apart from that everything has been made during the haxxy contest and by me alone.
Keep also in mind that I was travelling from the 17th to the 25th, and again from the 28th to the 2nd August.
I didn't have that much time.
Also Huge thanks to:
- Derp(new)
- Goodness and Light
- Jazzi
- Gangsterman
- CrazNoDooder
- rolfcake
for bug-testing and various small helps.
Download:The exeThe source (as gmk)The source (at GitHub)A hilarious example of the Tempest Bot, provided by rolfcake:And yeah, you can do this with Scouts, Pyros, Soldiers, Heavies, Engineers, Snipers and any combination of those!
More information on the Tempest Bot can be found
here.
This is a WIP, I can still use help.Plugins, Questions, Requests, Bug Reports and Ideas are very appreciated