Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

I want to make custom damage system for player(each part have own hitbox).

So...

How to resize/remove default hitbox (BoundingBox)?

How to add new BBs?

Thanks ;)

Edited by DrViruss

I have already implemented a system like this in 1.14.4, and am working on porting it to 1.15.2. From your post and your account age, my impression is that you don't understand much of what is necessary to do this. Here is an example of what it ended up looking like for me when I tried. It required a lot of coremodding, including rewriting the raytracing methods to account for rotated AABBs. I would like to further mention that "AABB" stands for axis-aligned bounding box, and there was a lot of vector math required to get things to trace these oxymorons. I would not recommend to new people to try adding this feature.

To actually answer your question, you would need to do these things:

  1. Coremod the GameRenderer (if I remember right) to enable custom client tracing logic.
  2. Create some sort of RotatedAABB (I used a wrapped AABB that rotated the input and output tracing vectors)
  3. Rotate these correctly to the relevant entities during the trace call.
  4. If you want custom behavior based on where the attack hits, you need to send that information either before the vanilla attack packet, or in place of the vanilla attack packet.
  5. Profit

Have you ever want the new operator to return a type that you didn't ask for? Well, now you can!

  • DrViruss changed the title to [SOLVED] [1.15.2] Resize/Remove Hitbox

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.