PDA

View Full Version : Adding new gametype


KevinCoyle
03-12-2003, 05:17 PM
Are there any coding tutorials out their for adding new multiplayer gametypes? I've posted an idea for a duel tournament gametype mod on the editing request page, but have been considering making this mod myself If no one takes it up. would anyone be interested in helping me with it either directly or at least give me some pointers or help?

I've looked through the Jk2 MP code and it's very extensive and contains little in the way of comments. I know a fair amount of c/c++ but it takes more than knowing the language to successfully make a complicated mod like this. I was hoping someone would be interested it helping out.

KevinCoyle
03-12-2003, 09:57 PM
I have an idea of how this could be done without too much trouble. Basically all that is required would be to copy the duel code and add a new variable for players that would keep track of which players won the duel they played and who lost. the variable would contain values of either 0=hasn't played yet, 1=winner, 2=loser. At the end of a duel, the winner will be moved to spectator mode and his "win" variable will be set to 1, the loser will be moved to spectator mode with his win variable set to 2. before a new duel begins, the game will check the players win variable and will allow those with win variables of 1 or 0 to continue and those will win variables set to 2 will remain a spectator until the tournament is over. This would be a fairly simple way to make a championship style duel tournament.

lilJedi
03-12-2003, 10:44 PM
hey Kevin, how is Invasion coming along?

Rebel_Spy
03-13-2003, 03:17 PM
I like the idea Kevin, it would be interesting