Sven Co-op: Map cycle fix, needs work
Firstly an overview of the problem...
Sven Co-op has map "series", by which I mean one map is played (example: projectg1) and child maps after. When players complete this map, the next map in the series is loaded and played continuously until the series is over (example: projectg2, projectg3....projectg9, end). At the end map, the next map in the mapcycle file should be played. Maps have always had 3 ways to call their next map, that is if they are part of a series:
However, method 1 causes a problem with the AMXX nextmap plugin. Here is an example map cycle:
To fix both method 1, the nextmap plugin needs to take these rules into account:
On top of that to fix method 2, the nextmap plugin should not increment the cycle position if the time hasn't run out. That will prevent the next parts being played due to players not completing the current part. I don't care about method 3 being screwed, because there is only 1 map series (2 maps long) that I've seen using it. Coding time This is what I've come up with to fix method 1 (and partly method 2). I need some help to see/test if it works correctly, and makes logical sense. The stuff in plugin_init to fix method 1 works completely fine. Code:
new g_currentMap[32] // For Sven Co-op fix |
Re: Sven Co-op: Map cycle fix, needs work
hello
nice script :) add name script ? (map_cycle_fix) add link http://www.amxmodx.org/compiler.php?...hor=&go=search thanks |
Re: Sven Co-op: Map cycle fix, needs work
It doesn't entirely work yet. I've fixed method 1 up, I just need to fix method 2. To do this the "nextmap" cvar needs to be changed to an AMXX command. This is fine, but it won't pass the "contents" as a parameter correctly. Instead it passes the AMXX version ...
I've modified the first post with the new code. |
Re: Sven Co-op: Map cycle fix, needs work
|
Re: Sven Co-op: Map cycle fix, needs work
Quote:
|
Re: Sven Co-op: Map cycle fix, needs work
hello
please, Or is the file nextmap.txt thanks |
Re: Sven Co-op: Map cycle fix, needs work
What?
|
Re: Sven Co-op: Map cycle fix, needs work
Quote:
Quote:
Code:
HLServer\SvenCoop\addons\amxmodx\data\lang\nextmap.txt |
Re: Sven Co-op: Map cycle fix, needs work
|
| All times are GMT -4. The time now is 11:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.