Dows anyone know what the "restart" command is in scripting? as in the equivalent of restart in rcon?
I have a small problem i'm trying to solve.... Scores don't reset after each map for all players, so say, if stadt ends and destroyed village starts, some players start with 30 frags! a quick restart solves this, but i'd like to automate it to restart in the first few seconds of each map and reset the scores! I'm using vstr nextmap aliasing to do a mixmap rotation, and think this is what may be causing it.
Secondly, it would help give time to load all the ambient sounds in grabstatte, which don't start until the second round, and from what i've read on boards, this may be a precache thing with the map not loading everything before the map has begun. I'm not a scripter i'm afraid.... so i'm at a loss here.
A friend suggested i do the following:
add "exec maprestart.scr" to the end of the dmprecache.scr and create the following .scr to tell the game to restart the map after a few seconds:
main:
if (level.dmzdt_run != 1)
{
level waittill spawn
thread dmzdtinit
end
}
end
dmzdtinit:
if (level.dmzdt_run != 1)
{
level.dmzdt_run = 1
}
else
end
thread dmzdtbeta
end
dmzdtbeta:
wait 20.0
THIS is where i need a map restart command, assuming the time is right for the wait command.
end
Any help would be appreciated! (It may be much simpler, but i've not found any evidence of anyone else experiencing this, and so no other solutions.... i'm really grabbing at straws here!!)


