-
Notifications
You must be signed in to change notification settings - Fork 25
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
toggleable name hider #120
Comments
I don't understand. You mean you don't want your name to be shown in chat? |
basically, and also my nametag |
yk, the name that shows over your head? |
Sure, I'll take a look to see if it's possible. |
alright keep me updated |
@AverageVirusTotalEnjoyer be aware, if you don't have a proper name, some hosts will start saying "who the fuck are you" and kicking you, I speak from experience from having my name set to |
I am not even sure if it's possible to change your username in runtime via RPCs. They have a method that is called when you join a lobby but the method only accepts the Steam ID, and your username is resolved on their client private void SendNewPlayerValuesServerRpc(ulong newPlayerSteamId) |
@armorfid each time hosts try to kick me it never works for some reason |
what happens then? do they start raging? 😆 |
anti kick ? is it possible? |
@armorfid sometimes, or they just restart the lobby |
Could you spoof the userid? |
Hypothetically speaking |
very good question... 😈 |
Maybe @armorfid can try? 👉👈 |
I dunno if it will prevent kicking, but looking at the code, it seems as it might possibly permit rejoining? 😆 will test! |
So if you spoof your Steam ID to a random value, the game will kick you on join due to this:
However, if you cancel out |
The host keeps tracks of all players that it kicks. if (StartOfRound.Instance.KickedClientIds.Contains(newPlayerSteamId))
{
NetworkManager.Singleton.DisconnectClient(this.actualClientId);
return;
} If we randomise our steam ID every time we join, we can rejoin a lobby we've been kicked from. |
|
Yes but in
I tried that, like I said, it doesn't work due to the reason in my previous comment, you simply get instakicked on join. |
You're right. Let me test. |
Looks like they can't kick me LOL |
Okay, so our names don't show up on their lobby. They can't kick me. They can only restart the server. |
with |
Yeap. |
Problem now is how do we make this a feature. I am sure not everybody wants to play without a name. |
Replace |
Feels bad but I might actually have to introduce a GUI :( |
No, I refuse. I will make it a keybind instead. |
Alright, I've pushed. You can toggle on |
Oh, and 100% thanks to @armorfid. |
I do feel like we may have opened a Pandora's box with this, but only time will tell |
I don't think your |
Names are mangled either way. With this, at least locally, you can see your own name. |
ah you're right, I got mixed up, with the anti-kick we don't receive any names until someone else connects either way |
please make a feature where we can toggle on and off our nametag when looked at and in chat
The text was updated successfully, but these errors were encountered: