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

Hitbox Expander #1004

Open
4 tasks done
mdenials opened this issue Jun 2, 2024 · 3 comments
Open
4 tasks done

Hitbox Expander #1004

mdenials opened this issue Jun 2, 2024 · 3 comments
Labels
status:unconfirmed New issue. Needs triage. type:enhancement New feature or request

Comments

@mdenials
Copy link
Contributor

mdenials commented Jun 2, 2024

Pre-suggestion checklist

  • I have searched existing issues and didn't find any previous issues with the same suggestion.
  • This is only one suggestion. I understand that GitHub issues don't work well with lists.
  • This feature doesn't already exist in the latest version of Wurst. I've made sure my installation is up to date.
  • I have looked at the code and am reasonably confident that this suggestion is possible to implement.

What type of improvement are you suggesting?

Adding a new hack.

What type of player would find this improvement useful?

Griefers, PVPers, Anarchy/faction players

Description

HitboxHack.txt

@mdenials mdenials added status:unconfirmed New issue. Needs triage. type:enhancement New feature or request labels Jun 2, 2024
@mdenials
Copy link
Contributor Author

mdenials commented Jun 2, 2024

EntityMixin code:
@Inject(at = @at("HEAD"), method = "Lnet/minecraft/entity/Entity;getBoundingBox", cancellable = true)
public final void onGetBoundingBox(CallbackInfoReturnable cir) {
HackList hax = WurstClient.INSTANCE.getHax();

if (WurstClient.INSTANCE.getHax().hitboxHack.shouldBeExpand((Entity)(Object)this))
{
cir.setReturnValue(new Box(
this.boundingBox.minX - hax.hitboxHack.sv.getValue()/2f,
this.boundingBox.minY - hax.hitboxHack.hv.getValue()/2f,
this.boundingBox.minZ - hax.hitboxHack.sv.getValue()/2f,
this.boundingBox.maxX + hax.hitboxHack.sv.getValue()/2f,
this.boundingBox.maxY + hax.hitboxHack.hv.getValue()/2f,
this.boundingBox.maxZ + hax.hitboxHack.sv.getValue()/2f));
}
}

@mdenials
Copy link
Contributor Author

mdenials commented Jun 2, 2024

@Alexander01998, i've sketched out the code of the function that was requested in the forum:
https://wurstforum.net/d/42-add-hitbox-hack
It works fine as in other cheats, but you need to filter the local client and items

@coolnoob78
Copy link

this is cool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:unconfirmed New issue. Needs triage. type:enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants