Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

[Modding] Using Rope Sourcepull as/with a Creature breaks the colliders on said creature

Open nessinby opened this issue 3 years ago • 2 comments

Disclaimers

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

What happened?

Title.

Using the Rope's sourcepullforce var on a creature causes it's colliders to break. The creature's main collider fall to the floor, unable to stand back up. It also affects it's ability to ragdoll, mainly causing it to no longer ragdoll and the last played animation to continue on ragdoll attempt, movement and all.

Mod tick is just because it's mod related. I haven't modified the base game or used any other custom assets which would affect the creature's collisions or rope's functions.

Reproduction steps

  1. Create a creature which can walk on land, with inventory and the ability to use weapons
  2. Ensure that it's ragdoll has the ColliderHeightFromFloor to a number
  3. Create a weapon with the Rope Component and a sticking projectile (ie, a modified Harpoon Gun)
  4. Set the Rope Component to have a high sourcepullforce var
  5. Launch the game
  6. Load into a round
  7. Control the creature
  8. Give it the Weapon with the Rope Component
  9. Fire the weapon so it attaches to a wall, and the sourcepullforce var takes affect

Bug prevalence

Happens every time I play

Version

0.18.15.0

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No response

nessinby avatar Aug 15 '22 12:08 nessinby

I think we'd have to confirm whether or not this is still issue after the latest changes to the rope.

itchyOwl avatar Apr 29 '24 08:04 itchyOwl

I apologize, I won't be much help with confirming this atm.

While I should still have some of the files related to this issue (at least the weapon), my computer is currently unreachable.

Edit: For reference, in the end the creature half of this bug report went on to being published afterwards, so it functioned. It just didn't like being pulled by sources like that, so we never included that weapon.

nessinby avatar Apr 30 '24 07:04 nessinby

Attempted to reproduce:

Using a creature with access to inventory, ability to use weapons and walk on land and a numeric ColliderHeightFromFloor as described in the ticket, I used a harpoon gun with ammo that can stick, with its rope component sourcepullforce modified as high as 30000 (tested adding the modified rope component to both the ammo and the weapon itself, and tested also lower values such as 3000 and 900).

Could not reproduce the issue - this might have been fixed by later changes to the rope.

If the issue still occurs, providing the character and weapon would be helpful

michael-fakefish avatar Dec 17 '25 04:12 michael-fakefish