News:

Come Chat with us live! Learn how HERE!

Main Menu

Custom Commands!

Started by infestor1, January 23, 2009, 04:18:23 AM

infestor1

How can I make custom commands?

For example, if I typed /base, then I would return to my team's base?

Or if I typed !base.

That sort of thing...

Please let me know!

Paradox


∧OMG ENTROPY∧

gimhael

Or if you are a beginner you could edit the source code and recompile instead of editing the qvm directly.

Lakitu7

In fact, outside of being a genius at hex editing, that would be the only way.

infestor1


David

Download the source.  Poke around in game/g_admin.c, and then compile.
Dump the new game.qvm over the one your server currently uses.
There are guides on compiling on windows around here.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

Paradox

Open the QVM in a hex editor, pick the line you like, and replace everything with F. If you do so correctly, and are the luckiest person in the world, you may just have a usable qvm.

∧OMG ENTROPY∧

David

If you switch strings for strings of equal length, then you can get away with it.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.