What happened to OC? - CLOSED Carnage?!
Sign in to follow this  
Followers 0
cally

Different timelimit for each gametype

Hello,

How do you set up varying timelimits for different gametypes?

For example, the type could be "ctfshot" for 20 minutes and another one be "ctfsniper" 30 minutes. I'd like to use the different gametypes on one server but depending on the map, type, etc have a different timelimit for each.

Share this post


Link to post
Share on other sites

Tiddy-bits:

1 hour ago, DSalimander said:

These are standard custom gametype settings available in the base game. You don't need SAPP for this.

Thanks for the reply but that wasn't what I was asking. I already know how to create custom gametypes.

My question is about changing the timelimit. For example, if I place sv_timelimit 20 in my init.txt the game will be 20 minutes. Regardless of the timelimit I have set for the custom gametype.

Like if I have 3 different gametypes in a mapcycle, they will all be 20 minutes.

 

Is there a way to change the timelimit for each gametype in a mapcycle?  

Share this post


Link to post
Share on other sites

I don't remember exactly how SAPP events work, but something like this should work?

 

event_start $map=mapname $mode=gamemode 'sv_timelimit #'

Share this post


Link to post
Share on other sites

Ok this what I put:

event_start $map:bloodgulch $mode:sniperctf  'sv_timelimit 0'

event_start $mode:kingsnipe 'sv_timelimit 30'

event_start $mode:snipectf  'sv_timelimit 30'

 

When creating the gametype for sniperctf I set it to no time limit.

I even removed sv_timelimit from init.txt but the time still reads 30 minutes with other maps that have 30 minutes.

Am I doing something wrong?

THanks

Share this post


Link to post
Share on other sites
13 minutes ago, cally said:

Ok this what I put:

event_start $map:bloodgulch $mode:sniperctf  'sv_timelimit 0'

event_start $mode:kingsnipe 'sv_timelimit 30'

event_start $mode:snipectf  'sv_timelimit 30'

 

When creating the gametype for sniperctf I set it to no time limit.

I even removed sv_timelimit from init.txt but the time still reads 30 minutes with other maps that have 30 minutes.

Am I doing something wrong?

THanks

 

$mode:gamemode should be $mode=gamemode

Share this post


Link to post
Share on other sites
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.