Jump to content

Home

Adding new gametype


KevinCoyle

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...