Welcome to Open Carnage

A resource for Halo 1 modding and tech, with unique means of rewarding individual content creation and support. Have a wander to see why we're worth the time! EST. 2012

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

Members of Open Carnage never see off-site ads.

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0
  • Recently Browsing   0 members

    No registered users viewing this page.