Posts: 465
Threads: 34
Joined: Sep 2009
Reputation:
0
3 players, Mike Danny and Sonny.
Mike shoots Sonny and Danny - they take no damage
Danny or Sonny shoots Mike - Mike takes damge
Our team is 1, all 3 of us are in team 1.
Posts: 1,843
Threads: 8
Joined: Nov 2008
Reputation:
0
That bugs been there since...like forever...afaik
Posts: 71
Threads: 3
Joined: Mar 2010
Reputation:
0
Tried to code it , works sometimes , but the bug goes through few times.
Posts: 500
Threads: 15
Joined: May 2007
Reputation:
0
I threw up a quick DM mode and tried it out.
No timer, only SetPlayerTeam when they spawn (about 25/30 players)
Sometimes was able to team kill with a deagle, very rarely. People at spawn trying to kill each other, but failing. The odd team kill seen in deathbox.
Timer to update SetPlayerTeam every second (about 10/15 players)
Not one team kill that I know of.
Posts: 465
Threads: 34
Joined: Sep 2009
Reputation:
0
But GetPlayerTeam was returning 1 for all 3 of us?
Posts: 2,862
Threads: 11
Joined: Mar 2008
Reputation:
0
If you set team with AddClassEx or SetSpawnInfo, you will get proper team with GetPlayerTeam, but anti-team kill won't work. You need to re-apply team under OnPlayerSpawn. Also if you set team during gameplay and then die, you will stay in the same team, but anti-team kill won't be activated anymore after spawn.
Posts: 465
Threads: 34
Joined: Sep 2009
Reputation:
0
Team is set to 1 in both OnPlayerConnect and OnPlayerSpawn, still doesn't work. Should I use AddPlayerClassEx then?