February 05, 2023, 05:32:53 pm

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: [REQUEST] :: auto-assign teams, disable spectators (server obviously)  (Read 862 times)

bullets (obviously)

  • Seasoned Member
  • *****
  • Karma: 40
  • Offline Offline
  • Posts: 1962

Purpose
Prevent:
-constant teamstacks
-afk spectators filling slots
-Spectating at match start/after autobalance to teamstack
basically the team-related issues caused by & found in pubs.

Features
Randomly assigns teams at match beginning (Possibly sorted by points in previous match?)
Instantly assigns team upon player join (Same as above?)
Disables switching back to spectator

I'll try to work on this plugin if nobody else does, but I don't have time this weekend. Looks like only a few lines of code.
Logged

Nova

  • Seasoned Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 1740
  • Personal Text
Re: [REQUEST] :: auto-assign teams, disable spectators (server obviously)
« Reply #1 on: April 21, 2013, 06:20:56 am »

1. What would happen with afk-hosts? (Who are just there so the server runs)
2. Would afks now be useless in a spawnroom instead of in spec?
Logged

maciej01

  • Fool
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 373
  • hhhehehe
Re: [REQUEST] :: auto-assign teams, disable spectators (server obviously)
« Reply #2 on: April 21, 2013, 07:59:29 am »

1. What would happen with afk-hosts? (Who are just there so the server runs)
2. Would afks now be useless in a spawnroom instead of in spec?

it's server side plugin.
you can just do something in lines of:

with (Character) {
    <code>
    if global.myself.object.id != id {
        <more code>
    }
    <code>
}
« Last Edit: April 21, 2013, 07:59:45 am by maciej01 »
Logged


bullets (obviously)

  • Seasoned Member
  • *****
  • Karma: 40
  • Offline Offline
  • Posts: 1962
Re: [REQUEST] :: auto-assign teams, disable spectators (server obviously)
« Reply #3 on: April 23, 2013, 01:54:27 am »

Obviously host is the only one who can join spectator.
Afks get kicked rather than relocated to spectator.
Logged
Pages: [1]
 

Page created in 0.036 seconds with 36 queries.