StrataSource / Portal-2-Community-Edition

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

Bug: Portal gun beam is curved when shooting through a world portal #1668

Open Badpoolinator opened 3 months ago

Badpoolinator commented 3 months ago

Describe the bug

When shooting a portal through a world portal, the beam will curve toward where the portal actually is on the map, instead of through the portal.

image

Issue Map

Any map with a world portal

To Reproduce

  1. Open a map with a world portal
  2. Shoot a portal through the world portal
  3. Observe portal gun beam

Operating System

No response

vrad-exe commented 2 months ago

This would be difficult to fix in a way that looks fully correct. It might work best to have the particle just stop at the worldportal.

pivotman319-owo commented 2 months ago

This would be difficult to fix in a way that looks fully correct. It might work best to have the particle just stop at the worldportal.

maybe just fire two tracebullets (one at the original player position and another through the actual worldportal, based on player's viewangles + position) and spawn two of the same portalgun trail particles? it might not look great, but it's still better than nothing