Serious Sam's Bogus Detour

Serious Sam's Bogus Detour

Workshop
Create, share and play!
Learn More
Tussell 15 Jul, 2017 @ 7:45am
Game Mode Timers
I am looking to create timers similar to that of the existing team death match mode, but the existing documentation is lacking in terms of of how to create switches that actually do anything. From what I've seen it would take a fair bit of coding to create a switch so at this point I will settle more being able to control timers without options.

For a TeamDeathmatch game mode map how would I set the timer to something other than the default? I have tried inserting m_tmLimit = x everywhere I can think of and it always results in a 10 minute timer. Every time I've tried to create a new game mode I get many errors.
< >
Showing 1-2 of 2 comments
Melissa  [developer] 2 15 Jul, 2017 @ 1:38pm 
You would have to set it after Start(), eg:
void Start(uint8 peer, SValue@ save, StartMode sMode) override { TeamDeathmatch::Start(peer, save, sMode); m_tmLimit = ...; }
Note that is only if you are inheriting from the "TeamDeathmatch" class.
Last edited by Melissa; 15 Jul, 2017 @ 1:38pm
Mr Stillwell 1 15 Jul, 2017 @ 4:03pm 
I think it would make things a lot easier if the scripts were commented for dummies. I know that Myran is most likely used to program for only his eyes to see, so it's completely understandable that he is used to comment this way, but it would help me a lot if the scripts were fully commented.
< >
Showing 1-2 of 2 comments
Per page: 1530 50