I tested the
player.is_fake_client() a little more, and figured that it's false for bots only when they join the server, after that it works fine. So when the player_spawn triggers before bot is even in on any team, that's when
player.is_fake_client() is unreliable. So probably not SP related either.
L'In20Cible wrote:Player.is_fake_client, is a wrapper around
PlayerInfo.is_fake_client which simply check if the FL_FAKECLIENT flag is set on the player. However, since anyone (plugins, scripts, etc.) can change players' flags, that method is not 100% accurate - and yes, checking against the SteamID is probably the best way to go. PlayerInfo.is_dead is also returning false results on multiplayer games, this is some old checks from HL2 which return True/False based on player being in spectator team.
Thanks for all the info, I'll be using the steamID check from now on.
Ayuto wrote:Does that always happen or only if you are using your EasyPlayer.paralyse funtion? I noticed that it's not implemented properly. Instead of this[PYTHON]self.flags %= ~PlayerStates.FROZEN[/PYTHON]it should look like this:[PYTHON]self.flags &= ~PlayerStates.FROZEN[/PYTHON]
I wasn't using EasyPlayer at all so it was completely unrelated, but thanks anyways, I've updated the issue!