FFA skins

Started by EK.IceFlake, Mar 16, 2016, 02:56 PM

Previous topic - Next topic

EK.IceFlake

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

Xmair

SetFriendlyFire will help maybe.

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD

aXXo

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.

KAKAN

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
oh no

Stormeus

Quote from: KAKAN on Mar 19, 2016, 02:28 AM
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

Yeah, team 255 is reserved for free-for-all. I would recommend explicitly specifying it rather than using -1 though.

EK.IceFlake

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