Jump to content

System de grup folosind SetPlayerTeam


CritteR

Recommended Posts

Asa cum spune si titlul, ma gandeam la un sistem de grup (playeri in aceeasi echipa, sa nu se omoare, sa faca job-uri impreuna probabil) folosind SetPlayerTeam. Intrebarea e, care pot fi problemele cu aceasta functie, pe langa limitarea la 508 playeri(asta in conditiile care fiecare 2 playeri creeaza o echipa in acelasi timp)?

Link to comment
Share on other sites

Team-urile din start sunt fara friendly-fire.

Daca sunt 2 playeri in aceasi echipa nu isi pot da damage.

Si chestia cu job impreuna e posibil doar ca trebuie sa lucrezi putin la sistem.

Limita e de 256 de team-uri. (0-255)

Link to comment
Share on other sites

1 minute ago, Kingsley said:

E mai usor sa folosesti OnPlayerGiveDamage pentru un anti friendly-fire.

M-am gandit si la asta, doar ca vreau ca sistemul sa poata fi folosit pentru mai mult decat un friendly-fire, din moment ce vreau sa fac un gm gen The Division , si nu vreau sa fac un sistem de la 0 din moment ce grupurile nu trebuie salvate la disconnect / restart.

16 minutes ago, Banditul said:

Limita e de 256 de team-uri. (0-255)

Mi se pare ca 255 este NO_TEAM, deci nu poate fi folosit ca un id valid pentru team.

Alte chestii de care ar trebui sa tin cont? :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.