GoldenEye: Source Forums

  • December 22, 2024, 04:04:58 pm
  • Welcome, Guest
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: GetNumActiveTeamPlayers(): Doesn't always count observers  (Read 8189 times)

0 Members and 1 Guest are viewing this topic.

Joe

  • Secret Agent
  • **
  • Posts: 139
  • Reputation Power: 54
  • Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.Joe has an aura about them.
  • Offline Offline
GetNumActiveTeamPlayers(): Doesn't always count observers
« on: April 14, 2014, 04:35:27 pm »

Hi,

GetNumActiveTeamPlayers(team) doesn't correctly count the number of team observers in this use case scenario:

1. Player A is killed and can't respawn so they enter observer mode.
2. Player A becomes a spectator.
3. Player A then joins MI6/Janus and enters observer mode because they still can't spawn.

After step 3, Player A isn't counted by GetNumActiveTeamPlayers().
« Last Edit: April 14, 2014, 04:37:57 pm by Joe »
Logged
Free games:FPS + RTS: Renegade X & Battlezone 1.5,RTS: 7 Kingdoms & Open Red Alert, TBS:Hedgewars, playcatan.com & www.wesnoth.org

killermonkey

  • GES Programmer
  • Retired Lead Developer
  • GE:S Fanatic
  • *
  • Posts: 5,473
  • Reputation Power: 346
  • killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!killermonkey is awe-inspiring!
  • Offline Offline
    • DroidMonkey Apps
Re: GetNumActiveTeamPlayers(): Doesn't always count observers
« Reply #1 on: April 14, 2014, 08:55:54 pm »

There is a subtly here. An "Active" player is one that has participated in the round (i.e. has spawned into the round and been able to actually play). Someone who goes from spectator to team is not active until they spawn in. This is required because some game modes award points and other things based on the number of participating players and counting non-participating players in the active count could screw that up.
Logged
Pages: [1]   Go Up