Page 1 of 1

[help] Rounds restart after 9 minutes on DM server. [SOLVED]

PostPosted: Sat Mar 12, 2011 9:19 am
by H4v0k
I've set up a GG, DM, Turbo server. everything works, people are respawning, turbo leveling is fine, but i had a couple of problems.

First of all no-one was getting a knife so the rounds couldn't be completed, this was solved though after i found a script that someone posted to fix the issue.

My only other problem with the server is that the rounds restart which is annoying for a DM server, they will restart if everyone on a team dies, or after 9 minutes (maximum round limit in CSS.)

Surely there must be a way to turn this off? i've searched everywhere but no one else seems to even be having the same problem.

PostPosted: Sat Mar 12, 2011 4:19 pm
by wtfaatp
If any i would try this....
http://addons.eventscripts.com/addons/view/dmendround

How ever if you have Source Mod on your server I know of a great mod that just disables the round end all together.

PostPosted: Sun Mar 13, 2011 2:29 am
by satoon101
You can try using the cvar mp_ignore_round_win_conditions .

If that doesn't work, you can use es_forcevalue to set mp_roundtime to a very high number (higher than what the 'max' is supposed to be). Though, I believe the first cvar I mentioned works to fix this.

Satoon

Re:

PostPosted: Mon Mar 14, 2011 7:33 pm
by H4v0k
satoon101 wrote:You can try using the cvar mp_ignore_round_win_conditions .


That worked perfectly.

Thanks Satoon

PostPosted: Mon Mar 14, 2011 8:19 pm
by satoon101
*Edit: it seems you removed your other request, but here is my reply to that:


You can do that 'multiple' ways. Without going into a whole lot of detail (though I'm thinking of making a tutorial about this), you can use Map Config files, a Scripts Manager (like J3ff's Scripts Manager), or use the following script (note the path in the first line in-case you're not sure what to save it as):
# ../addons/eventscripts/no_rounds/no_rounds.py

from es import ServerVar

# place any map prefixes that should 'always' have rounds
# you can remove the examples, but use the same syntax when adding prefixes
PREFIXES_TO_HAVE_ROUNDS = (
    'gg_glass_',
    'glass_',
)

# place all map names that should have rounds
# if a map's prefix is already in PREFIXES_TO_HAVE_ROUNDS, there is no need to add that map here
# again, remove the examples, but use the same syntax when adding new maps
MAPS_TO_HAVE_ROUNDS = [
    'gg_somemap1',
    'gg_somemap2',
]

# Set to the number of minutes to set mp_roundtime to on maps with rounds
ROUND_TIME = 3


###############################
# DO NOT EDIT BELOW THIS LINE #
###############################
current_map = ServerVar('eventscripts_currentmap')
no_rounds = ServerVar('mp_ignore_round_win_conditions')
round_time = ServerVar('mp_roundtime')

def load():
    checkMap()

def es_map_start(ev):
    checkMap()

def checkMap():
    mapname = str(current_map)
    if mapname.startswith(PREFIXES_TO_HAVE_ROUNDS) or mapname in MAPS_TO_HAVE_ROUNDS:
        no_rounds.set(0)
        round_time.set(ROUND_TIME)
    else:
        no_rounds.set(1)
        round_time.set(0)
This is untested, but I believe should work.

Satoon