Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique skin for each player? #1

Open
stevefan1999-personal opened this issue Mar 28, 2024 · 0 comments
Open

Unique skin for each player? #1

stevefan1999-personal opened this issue Mar 28, 2024 · 0 comments

Comments

@stevefan1999-personal
Copy link

I have a pool of custom player models that are large enough (40+ player models) and I want to have them uniquely assigned.

My idea: have a pool of available player model and another pool of assigned model (exhausted pool), and for each player, pick a random model on the available player model pool, assign it to the player, and pop the model from available player model, then put it into the exhausted pool.

Because all skins are unique, there shouldn't be any problem regarding random distribution.

If the available player model pool is exhausted (say like we have only 32 player models available but we have 64 players), then we simply swap the exhausted pool back to available player model pool. This way, we will have duplicates, but I think it is necessary imo in this case. Another choice is to get another pool of "fallback" player models and do random assignment based on uniform distribution. For example, I would like to use random Blue Archive mob chans as player models if unique character models are not available anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant