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

Random impostor assignment #4

Closed
byeze opened this issue Sep 23, 2020 · 5 comments
Closed

Random impostor assignment #4

byeze opened this issue Sep 23, 2020 · 5 comments

Comments

@byeze
Copy link

byeze commented Sep 23, 2020

Hi! Where's the code that selects a random player as the impostor for the game?

@Koupah
Copy link

Koupah commented Sep 23, 2020

I'm pretty sure the Host client chooses who the impostor/s are, I could be wrong though.

@byeze
Copy link
Author

byeze commented Sep 23, 2020

@Koupah I also think that, I din't find any references to any impostor choosing function. But let's wait for the developer.

@sombraSoft
Copy link
Contributor

@Koupah @byeze That is correct. This server implementation is for a 'local region server' and not for the actual rooms. With the server on, you can create multiple rooms which are in fact inside the game itself.

@AeonLucid
Copy link
Collaborator

The host of the room decides all logic and shares it with the other players through GameData packets. Currently the server just copies and forwards them without reading the contents.

It might be possible to intercept and modify these packets. But I'm afraid the host will not accept it, this is something I'd have to test out though.

@byeze
Copy link
Author

byeze commented Sep 23, 2020

Thank you! I'll investigate more and If I try to modify the packets, I will share the pr. 👍😉

@byeze byeze closed this as completed Sep 23, 2020
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

4 participants