StrataSource / Portal-2-Community-Edition

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

Feature: trigger_laser brush entity #764

Open TheEnderek0 opened 2 years ago

TheEnderek0 commented 2 years ago

Which component should be improved?

Entity

Describe your suggestion

trigger_laser - a trigger that detects if a laser is running through it. It would be useful for custom catchers, emitters and much more.

It would have a color filter, that would cause it to only activate when a specific colored laser is present.

Optionally it could modify the passing laser, for example it's color, lethality, collision.

Expected result

trigger_laser would detect if a laser is running through it, similar to point_laser_target. It would have several outputs like other triggers:

OnStartTouch - activates when laser touches OnEndTouch - activates when laser no longer is in the trigger OnEndTouchAll - ^ but for all lasers

vrad-exe commented 2 years ago

Could probably turn this into a generic trigger_beam, which can detect lasers, bridges, funnels...maybe even paint blobs? It'd have flags to select which things it detects, like normal triggers.

koerismo commented 2 years ago

This could also be added as a filter entity (e.g. filter_beam), which would make it possible to be used with trigger_once and trigger_multiple.

ozxybox commented 1 month ago

Potential duplicate of #42, but the description here is clearer but not as broad.