View Single Post
Author Message
CheesyPeteza
Senior Member
Join Date: Feb 2004
Location: UK
Old 02-23-2004 , 06:02   nextmap/mapchooser in Natural-Selection
Reply With Quote #1

The nextmap plugin uses SVC_INTERMISSION to detect when the map is about to change so it can change the map to the one in the cvar amx_nextmap. This message isn't sent in NS. This breaks nextmap and the mapchooser.

I have fixed this by using a module which detects the engine function *pfnchangelevel and overrides it.

Perhaps that would be a solution for all mods assuming the other mods use it too.

2nd problem is reading the mapcycle.txt. An NS mapcycle has lines like this:
ns_agora\minplayers\10\maxplayers\20

This is simply fixed by using the parse command after reading the line.

A non ns related problem with nextmap is that mp_chattime is not accounted for. It just sets a task to change the map in 2.5 seconds I think. Perhaps increase mp_chattime and set the task to change map with the original mp_chattime value. This isn't an issue with the above changelevel solution.
__________________
YO|Cheesy Peteza

[email protected]

CheesyPeteza is offline