Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

Shrapnels spawned by falk bolt will ignore collisions with the user

Open zhu-rengong opened this issue 1 year ago • 1 comments

Disclaimers

  • [X] I have searched the issue tracker to check if the issue has already been reported.
  • [ ] My issue happened while using mods.

What happened?

I checked the source code and found the reason, no matter what, they always ignore user: https://github.com/FakeFishGames/Barotrauma/blob/bff194d1abfd8f1662eecf3aab1d4e37e5cc79e4/Barotrauma/BarotraumaShared/SharedSource/StatusEffects/StatusEffect.cs#L2143-L2144

Test video: https://github.com/FakeFishGames/Barotrauma/assets/73634685/41f77859-8f3f-4e9f-b073-1045e43d1e89 I fired the flak bolt at myself, the spawned shrapnels passed me and hit the human behind me Then I fired the flak bolt at a human, but the spawned shrapnels did not pass the human.

Reproduction steps

  1. control flak cannon and shoot a flak bolt at yourself

Bug prevalence

Happens every now and then

Single player or multiplayer?

Single player

-

No response

Version

v1.2.8.0 (Winter Update hotfix 2)

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No response

zhu-rengong avatar Feb 25 '24 16:02 zhu-rengong

Fixed in https://github.com/FakeFishGames/Barotrauma-development/commit/84e87b4b755b7185a3355f6eaea6589b03dddd7b

Regalis11 avatar Feb 26 '24 15:02 Regalis11

Tested in: https://github.com/FakeFishGames/Barotrauma-development/pull/5008/commits/f9ee60c17f77ba10622263e45bb66efd86a96449

Made a sub with flak cannon and a firing range. Shot at crawler near the user and other humans, everybody was damaged. Tested that other things like walls still take damage. Tested DamageUser="false" and removing it. Removing it defaults the damage to true.

No issues found Closing ticket as completed

Jasontti avatar May 28 '24 10:05 Jasontti