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

Remove useless kicks #3061

Merged
merged 13 commits into from May 6, 2024
Merged

Remove useless kicks #3061

merged 13 commits into from May 6, 2024

Conversation

tiCkuhAr
Copy link
Contributor

@tiCkuhAr tiCkuhAr commented May 6, 2024

Similar to #3056, however, I disagree with how they wanted to do it; removing all the other kicks would make Multi kick unable to kick the session host. It would not even be able to kick a normal player with host, let alone a modder, which would completely break auto kick host. Also, the other kicks still work on some menus, like modest. I removed the two most blocked kicks. I don't even know if bail kick even worked anymore. The last time I tried it, nothing happened. I did not even find a reference to it in the code  other than for Lua.

@tiCkuhAr
Copy link
Contributor Author

tiCkuhAr commented May 6, 2024

I left NF Kick for people that want to use it in their Lua scripts, as it still works and seems to be the only other kick that supports kick all.

@rkwapisz
Copy link
Contributor

rkwapisz commented May 6, 2024

Regardless of my own position on kicks, there's definitely no sense in keeping non-working features in the code. If it's plain broken, get rid of it.

@lonelybud
Copy link
Contributor

lonelybud commented May 6, 2024

Regardless of my own position on kicks, there's definitely no sense in keeping non-working features in the code. If it's plain broken, get rid of it.

just keep that sweet oom & desync kick and remove the rest?

@tiCkuhAr
Copy link
Contributor Author

tiCkuhAr commented May 6, 2024

That's what I was thinking about doing.

@tiCkuhAr tiCkuhAr marked this pull request as ready for review May 6, 2024 01:54
@maybegreat48
Copy link
Contributor

Don't have a strong opinion on this, but I guess null function can go

@tiCkuhAr
Copy link
Contributor Author

tiCkuhAr commented May 6, 2024

Alright, I removed it. I only left it because it's the only kick that supports kick all for people making lua scripts.

@maybegreat48
Copy link
Contributor

maybegreat48 commented May 6, 2024

You can definitely add an end kick all option by modifying the net array hook. Just be sure to disable it after 10 seconds or so to avoid kicking joining players

@tiCkuhAr
Copy link
Contributor Author

tiCkuhAr commented May 6, 2024

It's not a big deal. I was just saying that since null function kick was already part of the menu and supported kick all for Lua, I was going to leave it for the Lua devs.

Anyway, this should be ready to be merged, unless you want something changed.

@CringeArab
Copy link
Contributor

CringeArab commented May 6, 2024

Can you add a check that if the player is the host, then kick him with an oom kick? Thus, if the player is not the host, then we can kick him without triggering his reaction and he will not understand who kicked him. I hope you understood what I meant. Something like this:
if (player && player->is_host() && player->is_valid()) { dynamic_cast<player_command*>(command::get("oomkick"_J))->call(player, {}); script::get_current()->yield(700ms); }

@tiCkuhAr
Copy link
Contributor Author

tiCkuhAr commented May 6, 2024

Due to the fact that it sometimes backfires, I would like it to just be there as a last resort. However, if one of the YimMenu maintainers thinks it should be the only kick for people that are not host, then I will change it to that.

@Rxann
Copy link
Contributor

Rxann commented May 6, 2024

Due to the fact that it sometimes backfires, I would like it to just be there as a last resort. However, if one of the YimMenu maintainers thinks it should be the only kick for people that are not host, then I will change it to that.

Ever since maybegreat48 improved the oom, i don't think it really backfires anymore. Not in my experience atleast and i use it a LOT

@rkwapisz
Copy link
Contributor

rkwapisz commented May 6, 2024

Due to the fact that it sometimes backfires, I would like it to just be there as a last resort. However, if one of the YimMenu maintainers thinks it should be the only kick for people that are not host, then I will change it to that.

Maybe we should clarify a bit more when we want to use a particular kick? Admit I'm starting to lose track. Though this logic primarily affects multi-kick, we should still add a host check for desync so users don't flag themselves trying to desync a host (it'll never work).

  • Host kick: default and first kick option when YOU are the host, so if you're host, multikick == host kick only
  • OOM kick: default and first kick option when ANOTHER PLAYER is the host, so if they're host, multikick == OOM kick only
  • desync kick: default and first kick option when NEITHER YOU NOR THE PLAYER are the host, so multikick == desync + OOM

Make sense?

@CringeArab
Copy link
Contributor

Due to the fact that it sometimes backfires, I would like it to just be there as a last resort. However, if one of the YimMenu maintainers thinks it should be the only kick for people that are not host, then I will change it to that.

Maybe we should clarify a bit more when we want to use a particular kick? Admit I'm starting to lose track. Though this logic primarily affects multi-kick, we should still add a host check for desync so users don't flag themselves trying to desync a host (it'll never work).

  • Host kick: default and first kick option when YOU are the host, so if you're host, multikick == host kick only
  • OOM kick: default and first kick option when ANOTHER PLAYER is the host, so if they're host, multikick == OOM kick only
  • desync kick: default and first kick option when NEITHER YOU NOR THE PLAYER are the host, so multikick == desync + OOM

Make sense?

For a player who is not a host, a desync kick will be enough to avoid triggering his reaction. oom leave exclusively against hosts

Copy link

github-actions bot commented May 6, 2024

Download the artifacts for this pull request:

@Yimura Yimura merged commit dfca5c7 into YimMenu:master May 6, 2024
1 check passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants