StrataSource / Portal-2-Community-Edition

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

Feature: Color Detection #793

Open ErinRoseWebs69 opened 2 years ago

ErinRoseWebs69 commented 2 years ago

Which component should be improved?

Entity

Describe your suggestion

Add ability to detect bridge/laser/other objects color via vscript/cscript and a new filter class: -filter_activator_color -trigger_color_detector (can be supplemented with a trigger_multiple with a script

if the activator's color value matches up with the requested color value, activate. else, deactivate. inverting it will do the obvious. while the normal laser detector entity would work, it would only apply to laser, not light bridges or funnels. Having the filter and/or trigger will help a shit ton with this, especially so that people dont have to make different scripts for different things, i.e. wanting a certain color (purple, for example) to activate one thing at one point, and another thing at a different point.

Expected result

Get appropriate color from the activator entity. Can elaborate more if needed.

NotaGames commented 2 years ago

As said in previous issue: This would be beneficial for my mod as this is the whole premise of my mod, as my mod is based around bridges and using different light bridges in creative ways to solve puzzles. :)

ozxybox commented 1 month ago

Related to #764