Hi guys!
I was making a server and I wanted to implement FFA skins. How should I make them so they can kill each other? I tried -1 team
SetFriendlyFire will help maybe.
onPlayerSpawn, if the player selects a FFA skin, set his color to white and player.Team to ( 100 + player.ID )
This means everyone in that skin would be in a unique team.
Quote from: aXXo on Mar 16, 2016, 04:40 PMonPlayerSpawn, if the player selects a FFA skin, set his color to white and player.Team to ( 100 + player.ID )
This means everyone in that skin would be in a unique team.
player.Team = -1; or player.Team = 255; works for me though
Quote from: KAKAN on Mar 19, 2016, 02:28 AMQuote from: aXXo on Mar 16, 2016, 04:40 PMonPlayerSpawn, if the player selects a FFA skin, set his color to white and player.Team to ( 100 + player.ID )
This means everyone in that skin would be in a unique team.
player.Team = -1; or player.Team = 255; works for me though
Yeah, team 255 is reserved for free-for-all. I would recommend explicitly specifying it rather than using -1 though.
Sorry forgot to update this.
I resolved the issue that same day by reversing team and skin (I was using doomplay and I made a mistake on the class loading so team and skin were swapped, team 166 skin -1).
Notice to all doomplay users: in Classes>Load swap team and skin