StrataSource / Portal-2-Community-Edition

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

Feature: Timed laser catchers and laser relays #1545

Open HugoBDesigner opened 1 year ago

HugoBDesigner commented 1 year ago

Which component should be improved?

Gameplay

Describe your suggestion

It would be really useful, both from a puzzle design standpoint and from an anti-cheats one, to have keyvalues in laser catchers and laser relays to control how they output based on timers.

More specifically, they should contain an Active For keyvalue which defines, in seconds, how long the entity has to be powered (continuously) for before it fires its OnPowered outputs; and an Active After keyvalue which defines, in seconds, how long it'll take for the entity to "cooldown" before it outputs its OnUnPowered outputs.

The Active For keyvalue would be useful for situations in which the mapper wants to ensure that a catcher is properly targeted with a laser before triggering, so it can't be accidentally or unintentionally triggered from a quick flicker. It would also allow for puzzles in the style of The Talos Principle, which uses timed laser receptors.

The Active After keyvalue would be primarily useful for situations in which a catcher or relay is connected to a cube spawner, and the player might accidentally trigger it multiple times while trying to settle down the laser aiming (which, incidentally, would cause newly spawned cubes to fizzle moments after spawning, which is a very frustrating recurring issue in the Portal 2 workshop).