StrataSource / Portal-2-Community-Edition

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

Fit prop_portal particles #46

Open darvil82 opened 4 years ago

darvil82 commented 4 years ago

Make the surrounding particles to fit the portal automatically when resizing it.

vrad-exe commented 4 years ago

There are size keyvalues on prop_portal, do those not work? I've never actually tried using them.

darvil82 commented 4 years ago

Maybe I don't remember it, probably these are added by TeamSpem's add-ons? Since the keyvalues don't appear in VDC.

vrad-exe commented 4 years ago

Can confirm that those keyvalues work. The particles don't scale properly though, not sure how hard that would be to fix. image

vrad-exe commented 4 years ago

The borders not resizing would be caused by r_portal_fastpath 1, which you should probably turn off anyway if you have a PC made in the last 10 years.

darvil82 commented 4 years ago

Fixed the post :)

StefanH-AT commented 4 years ago

Not sure how useful this would be since this is pretty silly

ghost commented 4 years ago

It may or may not be possible to achieve this, for this to be achieved a custom KeyValue would need to be accepted into the particle, which I'm not sure if it's possible, the KeyValue can then be set in the code so the particle can take into account the scale of the portal.

vrad-exe commented 4 years ago

If this is too difficult to fix, another option would be to just disable the particles entirely for portals of a non-standard size. It wouldn't look as good, but would at least be better than the current behavior.