redeclipse / base

Base environment for Red Eclipse and associated source files.
https://redeclipse.net/
431 stars 88 forks source link

Allow triggers that must be shot to execute #1378

Open MirceaKitsune opened 1 year ago

MirceaKitsune commented 1 year ago

It would be useful if trigger entities had the option to execute upon being shot, in which case they respond to proximity toward projectiles rather than players. Currently a trigger can only be set to run when the player touches it: Having triggers the player must shoot at would allow fun features like UT style traps where shooting trap doors or levers opens them.

Optionally there could even be a way to filter by different weapon types so triggers only respond to specific guns. In the entity menu this should probably be done like the buttons for filtering via game mode or mutators, where any combinations can be ticked on or off. This could especially be useful for making bonus areas or in single player maps later on, so certain doors can only be opened by obtaining a specific weapon and shooting something like a plate on the wall with it.