Alliedassault

Alliedassault (alliedassault.us/index.php)
-   MoH General Discussion (alliedassault.us/forumdisplay.php?f=7)
-   -   Objective/TOW bug in my Mixed GameType mod. (alliedassault.us/showthread.php?t=12945)

Mr_nStuff 11-19-2002 07:54 PM

Objective/TOW bug in my Mixed GameType mod.
 
I'm trying to find out if anyone has found a work around for the problem where Objective and Tug-o-War maps, after the second round, bumps everyone to spectator when your running a mixed gametype rotation mod..

Here's what I've added to the appropriate SCR files in my mod..


// Mr_nStuff gametype Death-Match
setcvar "g_gametype" "2"
setcvar "sv_team_spawn_interval" "5"
setcvar "roundlimit" "0"

// Mr_nStuff gametype Objective
setcvar "g_gametype" "4"
setcvar "sv_team_spawn_interval" "0"
setcvar "roundlimit" "5"

// Mr_nStuff gametype Tug-o-War
setcvar "g_gametype" "5"
setcvar "sv_team_spawn_interval" "12"
setcvar "roundlimit" "0"

Anyone fix this in there MOD? Thanks..

defenseless old man 11-20-2002 10:21 PM

*bump*

I'd like to know the same thing.

Elvite 11-21-2002 12:44 PM

There's no way around this "bug", using the method you're using. The same exact thing happens when you do this in Allied Assault. In fact, read my old post from about 9 months ago, [url:49227]http://www.alliedassault.com/ubb/Forum1/HTML/004754-3.html[/url:49227]. My entry is 6th from the top.

Unfortunately you just have to live with it. There is currently no better way to get mixed gametype rotations than the way you're doing.

One suggestion, the bug only occurs on maps for which the previous map was a different gametype. In other words, if you just played a Round-based map and the next map is an Objective map, then the bug will occur on that Objective map. However, if you're playing an Objective map and the next map is also a Objective map, then the bug will not happen on that 2nd Objective map. So, if you try to group the maps together in your rotation list so that you play all of one gametype, then all of another gametype, etc, (like this DM, DM, DM, OBJ, OBJ, OBJ, TDM, TDM, TOW, TOW, TOW), you'll minimize the amount of times that this bug occurs.

There is another thing you can do. As soon as a map comes up that has switched gametypes, type RCON RESTART in your console, (provided you have RCON access to your server). Better yet, bind a key to the command. For instance, if you typed this in console, BIND END RCON RESTART, then the END key on your keyboard would automatically perform that command. (You could map a different key, if you want). Doing RCON RESTART at the very beginning of round 1 prevents the bug from wiping out your scores after the first round. We do that on our server and it has helped us not be annoyed by it.

However, you do get used to it. It's a pretty minor bug.

Finally, there is a better way for mixed gametype rotations, that has not yet been implemented into MoH AA or SH. Read about it here, [url:49227]http://www.alliedassault.com/phpBB2/viewtopic.php?p=296997#296997[/url:49227]. This involves creating variable strings in your Server.cfg file. It doesn't currently work in MoH, but it is supposed to and, according to a developer from EA, it is supposed to be patched into the game soon. This will eliminate the need for modifying the SCR files altogether.

Mr_nStuff 11-23-2002 07:53 AM

Yeah.. I know..

I'm pretty sure there's another way around it.. No one has broke the ice yet.. But it's possible.. I would much rather see the VSTR command working though..

But I think there's a way to mod the map scr files to load the next gametype at the end of each map.. Just no one has figured it out yet..

I mean.. The screen goes black at the end of each map.. And the ambient sounds fade out.. Right here is a golden opportunity to change the gametype for the following map.. Unfortunately I cannot find any scripts in MOHAA or MOHSH that are directly involved with the Multiplayer End Map sequence..I guess it's hard coded or something.. Seems alittle weird. I can mod all sorts of stuff now... But I still can't seem to find the only one i've been looking for..


Lets say you have a Team-Match map loaded, your gametype is 2, and you know the next map is a TOW map... You could add a line like this to the end of the current maps scr file. So that when it's timlimit expires, It automatically sets the gametype before loading the next map..

[code:dd47f]thread setnext

setnext:

level.limit_time = int( getcvar( timelimit ) )
while (level.time < level.limit_time)
{
wait .1
}
setcvar "g_gametype" "5"
setcvar "g_gametypestring" "Tug-of-War"
setcvar "sv_team_spawn_interval" "15"
setcvar "roundlimit" "0"
self remove

end[/code:dd47f]

If I had the rights to play with this all day, a little trial and error time, I could probably get something like this working no problem.. But right now no luck.. Because I only get to test one script every couple of days because I-Lan doesn't allow multiple administrators.. Bummer.


All times are GMT -6. The time now is 08:28 PM.

Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.