StrataSource / Portal-2-Community-Edition

Task tracker for Portal 2: Community Edition
https://www.portal2communityedition.com
151 stars 3 forks source link

Bug: `trigger_portal_cleanser` actives default bodygroups when cleansing an object #1721

Open MyGamepedia opened 2 months ago

MyGamepedia commented 2 months ago

Describe the bug

Any cleansable entity (not only prop_physics) that has an alternate body group active will have it reset to the default one when fizzled by trigger_portal_cleanser.

Showcase with doors.

https://github.com/user-attachments/assets/52064ed6-1d91-4f41-8523-8556c87595a4

This is also why issue https://github.com/StrataSource/Portal-2-Community-Edition/issues/1529 exists.

Available in all games where this entity is included.

This doesn't happen with trigger_physics_trap, so, I think you can take some code from there to fix this issue.

Showcase with doors.

https://github.com/user-attachments/assets/2f62922e-5c99-4cd1-9606-0134fe4159ec

Issue Map

You can test it here maps.zip (or open any P2 map and spawn zombie).

To Reproduce

  1. Open devtest_cleansetandbodygroups.
  2. Use trigger_portal_cleanser to remove door 1 or 2.
  3. Note note that the door handle disappearing at this moment.

Operating System

Any.

TeamSpen210 commented 2 months ago

Does this affect frankenturrets? Those use bodygroups for randomising the turret shells.

MyGamepedia commented 2 months ago

Does this affect frankenturrets? Those use bodygroups for randomising the turret shells.

Yeah.

https://github.com/user-attachments/assets/421347ae-b637-488c-9d86-ceee880d6f9d