• Register

A Free To Play FPS built with the Unity engine in which you can play Deathmatch or Team Deathmatch in Short Range Fights ( or Close Quarter Battles ). The game will be playable online

  • View media
  • View media
  • View media
  • View media
  • View media
  • View media
Report RSS The team system finally works !! :D (view original)
The team system finally works !! :D
embed
share
view previous next
Share Image
Share on Facebook Post Email a friend
Embed Image
Post a comment

Your comment will be anonymous unless you join the community. Or sign in with your social account:

Description

After 3 days of hard work, I finished my team system.

Each player is allocated to a team when he connects ( if there is more players on red team or equal players on both teams he is a blue player, else he is a red )

So when player connect after each other it gives: 1B-0R => 1B-1R => 2B-1R =>2B-2R ...

And if a player leaves a team and another one connects it balance the players automatically ( if a whole team leaves however it doesn't balance :/ )

The script is not well optimized ( I don't understand how the Masterclient can send a RPC only to the player who sent a RPC to him so he just send it to everyone )

Plus the team members don't have their team color yet :/ ( blue players will be blue as red players will be red )

But stay tuned ;)