Subspace Hockey/Football Zone Forums

Please login or register.

Login with username, password and session length

Author Topic: Coalesce freqs  (Read 186 times)

IGGY

  • New Car
  • *
  • Posts: 57
Coalesce freqs
« on: February 03, 2017, 07:24:08 PM »

Think BlueGoku was describing wanting somthing like this:

You would have to create & pass the correct elements from ASSS into the class (arena etc..)

also *and* wouldn't work, you would need to use *range:*

Finally you would need to catch exceptions for if the target rink is already
justifiably in use.


Random Map Cords.
halfcourt = (526,211) / 1-3
mini  = (235,372) / 4-8
small = (782,723) / 9-10
large = (526,200) / 11-12

def check_population():
    #find how many players are in game
    freq01_total = 0
    freq45_total = 0
    freq67_total = 0
    freq89_total = 0

def sort_player():
    #half court
    if freq01_total <= 3:
       pass
       #do nothing
    #mini
    if freq45_total >=4 and <= 7:
        #move player to mini cords

    elif freq45_total == 8:
        #expansion
        SendArenaMessage."NextGoalWins."
        if #goal:
                #move players to small cords.
        except #catch exceptions i.e 5v5 full and 6v6 full
    #small   
    if freq67_total == 9:
        #move player to small cords.

    elif freq67_total == 10:
        #expansion
        SendArenaMessage."NextGoalWins."
        if #goal:
                #move players to large cords.
        except #catch exceptions i.e 6v6 full.
« Last Edit: February 03, 2017, 09:26:06 PM by IGGY »
Logged

IGGY

  • New Car
  • *
  • Posts: 57
Re: Coalesce freqs
« Reply #1 on: February 03, 2017, 07:42:54 PM »

Also you would need to expand/transfer players to mini upon the entry of the 4th player.
Logged

IGGY

  • New Car
  • *
  • Posts: 57
Re: Coalesce freqs
« Reply #2 on: February 03, 2017, 07:49:07 PM »

Players start in pub half vs line goalie until 3 players enter.

4th player enters pub, players 1-4 are transfered to mini rink. ->

5th player enters pub via esc 1
Module checks player count , if freq 4+5 total is <= 7 and >=3
 
move player 5 to mini rink. ->

#elif player count == 8, start expansion process. <->
 
6th player enters mini directly via =5 (no changes.)

7th player enters pub via esc 1
Module checks player count , if freq 4+5 total is <= 7 and >=3

move player 7 to mini rink. ->

8th player enters pub via esc 1
Module checks player count , if freq 4+5 total is <= 7 and >=3

move player 8 to mini rink. ->

9th player enters pub via esc 1
Module checks player count , if freq 4+5 total is <= 7 and >=3
Expansion process begins.  <->

sendArenaMessage  "Next Goal wins."
On Goal
players 1-9 are transfered to a larger 5v5 rink.

10th player enters pub via esc 1
Module checks player count , if freq 6+7 player total is == 9
move player 10 to 5v5 rink. ->
#elif player count == 10, start expansion process. <->

player 11 then jumps in to pub rink
Module checks player count , if freq 6+7 player total is == 10
Expansion process begins.  <->
sendArenaMessage  "Next Goal wins."
On Goal
players 1-10 are transfered to 6v6 rink.
Normal ?queue process begins.


TBH this is kinda overkill maybe just explain freqs in the splash or ?help
Logged

BlueGoku

  • Choke Artist
  • Ambassador
  • Out of Control
  • *****
  • Posts: 8229
    • Center Ice
Re: Coalesce freqs
« Reply #3 on: February 03, 2017, 08:28:53 PM »

Sick! Way to go, iggs.

One note - 4v4 can just happen in the smaller rink that we also utilize for 5v5. No need for the mini rink. So players are only teleported between the regular sized rink and the 5v5 rink regardless of how many players are in.
Logged
image

Leafy

  • BEND THE KNEE
  • My post count proves I'm better than you
  • *
  • Posts: 5064
Re: Coalesce freqs
« Reply #4 on: February 03, 2017, 09:48:23 PM »

Just skimmed this but the idea is that as players enter they are moved to bigger rinks so more people can play?

Only issue I see if that if there is a "Competitive Game" going on and then it's reset.

Is it possible to carry the current score over?

So if it's 2-1 in a mini game, and more people join, it keeps the same time, and score in the full court game?
Logged

-

-

-

IGGY

  • New Car
  • *
  • Posts: 57
Re: Coalesce freqs
« Reply #5 on: February 03, 2017, 10:07:20 PM »

Could add Doobies poll/voting system to see if players want to expand.

There is already a Golden Goal warning thou before you would be transferred.

And BG is probably right about only using two rinks.
Logged

IGGY

  • New Car
  • *
  • Posts: 57
Re: Coalesce freqs
« Reply #6 on: February 03, 2017, 10:32:37 PM »

Just skimmed this but the idea is that as players enter they are moved to bigger rinks so more people can play?

Only issue I see if that if there is a "Competitive Game" going on and then it's reset.

Is it possible to carry the current score over?

So if it's 2-1 in a mini game, and more people join, it keeps the same time, and score in the full court game?


Transferring and updating Time/Goals is a really good idea.
Logged
 

Page created in 0.056 seconds with 16 queries.