The Legend of Bam Continues: Plug & Play Vote-Map Code

Bam wrote some vote-map that can be easily be added to the QuakeC source of any mod to give the mod map voting capability. The code itself is modeled by the vote-map method that is used in RuneQuake.
As most know, player map voting can make or break the popularity of any mod.
Most of the popular mods have some form of map voting, but the burden upon a QuakeC coder to implement a map voting system is high and usually a foreign and rather technical and painful process for someone who typically is writing a mod for fun and doesn't want to be bogged down with figuring out "administrative code".
And seems to work very well with both, so this can be applied to almost any mod where the QuakeC source is available.
The code has been tested/added to debugged Bam/IEEE progs 1.06 and to the original rocket arena and it worked fine. The structure of some mods may vary slightly.
The next post contains the instructions, which are very thorough just to make it clear what is being done, the actual changes themselves are some pretty mild stuff.

Bam wrote some vote-map that can be easily be added to the QuakeC source of any mod to give the mod map voting capability. The code itself is modeled by the vote-map method that is used in RuneQuake.
As most know, player map voting can make or break the popularity of any mod.
1. No one likes to be stuck on an inappropriate map
2. Players like to be in control on a server
3. Admins are never around
4. Giving someone an rcon password is dangerous, someone could change server settings
2. Players like to be in control on a server
3. Admins are never around
4. Giving someone an rcon password is dangerous, someone could change server settings
This code has been tested with:
ProQuake Server
DarkPlaces Server
ProQuake Server
DarkPlaces Server
Features
This code only uses a single impulse for voting.
Vote for a map by typing the name of the map in the console.
In theory, should support about 200 maps total.
This code only uses a single impulse for voting.
Vote for a map by typing the name of the map in the console.
In theory, should support about 200 maps total.
The next post contains the instructions, which are very thorough just to make it clear what is being done, the actual changes themselves are some pretty mild stuff.
Comment