November 28, 2021, 09:16:42 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1]

Author Topic: Add setup timer to remaining gamemodes  (Read 1530 times)

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 597
  • Sometimes a dev. Only sometimes
Add setup timer to remaining gamemodes
« on: April 06, 2019, 04:48:40 am »

Looking for a bit at the source, it looks like we only have a setup timer for cp, and a lot of servers use the freezetime plugin. Since it's so widespread, why not add a small 10 sec setup timer to all gamemodes except arena? Especially for smaller teams, CTF often becomes "who can click faster on scout and rush" without freezetime
Logged

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: Add setup timer to remaining gamemodes
« Reply #1 on: April 06, 2019, 07:08:42 pm »

already accepted but thanks for the reminder

https://www.ganggarrison.com/forums/index.php?topic=31029.0

you can put further discussion about this in either thread
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 597
  • Sometimes a dev. Only sometimes
Re: Add setup timer to remaining gamemodes
« Reply #2 on: April 08, 2019, 03:54:51 pm »

Sorry for bringing up an old request, I found the first kinda painful piece of code
Code: (BasicRoomSetup) [Select]
if(instance_exists(IntelligenceBase) or instance_exists(Intelligence))
{
    if (instance_exists(ControlPointSetupGate))
        instance_create(0, 0, InvasionHUD);
    else
        instance_create(0, 0, CTFHUD);
}
Also since ControlPointSetupGate is a completely different entity, it should be added in every map for it to work. Support should be added nonetheless. GB already lets you place CPSGates in ctf mode, so that's already done
Logged

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 597
  • Sometimes a dev. Only sometimes
Re: Add setup timer to remaining gamemodes
« Reply #3 on: April 09, 2019, 03:20:22 am »

We should be able to make the check work by checking if both Intellingences exist -> CTF, otherwise -> Invasion
What do you think?
Logged

Spazz

  • Seasoned Member
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 1933
  • Almost too much seasoning.
Re: Add setup timer to remaining gamemodes
« Reply #4 on: April 09, 2019, 04:50:50 pm »

Freezetime uses TeamDoor though. Can understand the use of the Gate but that would mean someone would, once again, have to go through and update maps to add this functionality. It's not like we haven't received new maps (however old now) from those still using ancient standalone map builders.
Logged

<3 Bustatunez

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 597
  • Sometimes a dev. Only sometimes
Re: Add setup timer to remaining gamemodes
« Reply #5 on: April 09, 2019, 04:53:51 pm »

Freezetime uses TeamDoor though. Can understand the use of the Gate but that would mean someone would, once again, have to go through and update maps to add this functionality. It's not like we haven't received new maps (however old now) from those still using ancient standalone map builders.
I just remembered a map which uses different places for spawns and controlpointgates, yes we should hopefully be able to just use teamgates as setup collision for other gamemodes
Logged

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 597
  • Sometimes a dev. Only sometimes
Re: Add setup timer to remaining gamemodes
« Reply #6 on: April 12, 2019, 08:05:46 am »

I have the first prototype ready for CTF, but:
- It's based on 2.9.1b1 because I forgot to update the source
- Assumes every gamemode has a setup timer, even when Koth etc. still don't. This was done because testing

The networking side should be already done, I just added 2 lines of code in User 12 & 13 of CTFHUD too sync setup timers, like Invasion does
Logged

PrOF

  • Full Member
  • ***
  • Karma: 43
  • Offline Offline
  • Posts: 597
  • Sometimes a dev. Only sometimes
Re: Add setup timer to remaining gamemodes
« Reply #7 on: April 18, 2019, 08:34:37 am »

Here's the pr to add this, we'll need to test it
https://github.com/Gang-Garrison-2/Gang-Garrison-2/pull/239
Logged
Pages: [1]
 

Page created in 0.031 seconds with 36 queries.