Skip to content

[added] Arrows will have special collision effect with filled bucket#2446

Open
mugg91 wants to merge 1 commit intotranshumandesign:masterfrom
mugg91:mugg91-arrow-special-collision-with-bucket
Open

[added] Arrows will have special collision effect with filled bucket#2446
mugg91 wants to merge 1 commit intotranshumandesign:masterfrom
mugg91:mugg91-arrow-special-collision-with-bucket

Conversation

@mugg91
Copy link
Contributor

@mugg91 mugg91 commented Nov 2, 2025

Description

This adds logic to Arrow.as in doesCollideWithBlob() in case an Arrow is about to collide with a filled bucket.
If so, it checks some conditions.

The conditions:

  • arrow is of the type normal or fire
  • arrow is descending from above with at least 2.0f y velocity
  • the arrow's tip y position from the previous tick is above the bucket's y position
  • the bucket isn't underwater

If the conditions are met, it makes a splash, extinguishes fire arrow and ignores the collision with the bucket (no damage from enemy arrow).

Tested in offline Sandbox, should work the same in online.

ArrowBucketSplash.mp4

Fixes #2445

I removed the doesCollideWithBlob() call from onCollision() because otherwise the code in doesCollideWithBlob() runs twice. I have not found issues after removing it.

Change Requests

Let me know what you think and if there are requests for changes.
For example, I can make it so enemy arrows will still hit the bucket to deal damage.

Steps to Test or Reproduce

Be archer and shoot at a filled bucket (from your team or enemy team).
Notice it will splash if arrow collides from above.

@Vam-Jam Vam-Jam added the kind: Feature A pitch for a new feature or mechanic label Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: Feature A pitch for a new feature or mechanic

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Arrow.as calls doesCollideWithBlob() unnecessarily

2 participants