Author
|
Message
|
Senior Member
|
11-04-2007
, 01:52
Mapchooser problem
|
#1
|
Hey. I have a customized mapchooser which is combined with a frag limit and rock the vote. -- Once a person has 45 kills, the map menu comes up and people vote for the next map. When a person gets 50 kills, the map will change to whatever the popular vote was.
However, the plugin runs from three different map.ini files: maps.ini , special.ini , empty,ini. -- The idea is for the greater maps to be listed in maps.ini, and the lesser but occasionally fun maps to be listed in special.ini.
When the server is empty or occupied with only bots, the next map will randomly change to whatever's in empty.ini. -- When there are people playing and a person gets 45 kills, the map menu that comes up has 4 different choices. The first three choices are randomly picked from maps.ini; and the fourth choice is randomly picked from special.ini
The problem is when people are voting for the next map. The #4 choice will be a random map from special.ini, but if you select it, then it will actually vote for a different map. And, the different map is ALWAYS the fourth map listed from special.ini.
_________
Example
maps in maps.ini
de_dust
de_dust2
de_inferno
cs_office
cs_assault
maps in special.ini
fy_snow
fy_cold
fy_iceworld
aim-ak_colt
A person gets 45 kills, and the vote menu comes
1. de_dust2
2. cs_office
3. de_dust
4. fy_cold
If I select fy_cold, then it will actually pick aim-ak_colt.
_________
I believe the problem is either between lines 260-278 OR 341-352
I've been trying all kinds of things for hours ... but had no luck. Any help would be appreciated.
__________________
|
|
|
|