Wurst7 icon indicating copy to clipboard operation
Wurst7 copied to clipboard

Hitbox Expander

Open mdenials opened this issue 1 year ago • 3 comments

Pre-suggestion checklist

  • [X] I have searched existing issues and didn't find any previous issues with the same suggestion.
  • [X] This is only one suggestion. I understand that GitHub issues don't work well with lists.
  • [X] This feature doesn't already exist in the latest version of Wurst. I've made sure my installation is up to date.
  • [X] 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 avatar Jun 02 '24 11:06 mdenials

EntityMixin code: @Inject(at = @At("HEAD"), method = "Lnet/minecraft/entity/Entity;getBoundingBox", cancellable = true) public final void onGetBoundingBox(CallbackInfoReturnable<Box> 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 avatar Jun 02 '24 11:06 mdenials

@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

mdenials avatar Jun 02 '24 17:06 mdenials

this is cool

coolnoob78 avatar Jul 30 '24 18:07 coolnoob78

This issue has been open for a while with no recent activity. If this issue is still important to you, please add a comment within the next 7 days to keep it open. Otherwise, the issue will be automatically closed to free up time for other tasks.

Issues should be closed if:

  • They are duplicates of other issues
  • There is not enough demand
  • They are no longer relevant
  • There are not enough details

github-actions[bot] avatar Sep 30 '24 02:09 github-actions[bot]