Does PlayerCount() count spectators?
Does PlayerCount() count spectators?
Does PlayerCount count all clients (including specs), or just ingame players?
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

-
Theshooter7
- Forum Regular
- Posts: 262
- Joined: Wed Jun 06, 2012 2:15 am
RE: Does PlayerCount() count spectators?
Just ingame players.Ænima wrote: Does PlayerCount count all clients (including specs), or just ingame players?
RE: Does PlayerCount() count spectators?
Thanks. That's what I need.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)

-
Catastrophe
- Retired Staff / Community Team Member
- Posts: 2569
- Joined: Sat Jun 02, 2012 2:44 am
RE: Does PlayerCount() count spectators?
you might wanna keep in mind that in LMS it will return 2 even if you've won.
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
RE: Does PlayerCount() count spectators?
This is because a player is not turned into a dead spectator immediately after dying, but only when the player tries to respawn. So in the moment you win, there actually are still two non-spectators left (one of them dead though without chance to respawn).Catastrophe wrote: you might wanna keep in mind that in LMS it will return 2 even if you've won.
RE: Does PlayerCount() count spectators?
I think it can be worked around by using "Instant respawn" flag.
