func_commandredirect is a brush entity available in (HL2) Half-Life 2 with any version of Mapbase.

A brush entity that redirects the player’s squad commands. Also functions as a limited trigger for the player AND their squad members.



KeyValues

- Target (target) <target_destination>
Redirects command goals to this entity's origin. If blank, doesn't affect the goal. If -1, cancels the command entirely.
- Squad Representative Only (reponly) <choices>
If enabled, only fires OutAlly for the player's squad's representative.

Outputs

- OnCommandGoal <vector>
Fires when a player's command goal falls within this brush. Passes the goal's position.
- OutAlly <ehandle>
Fires for each ally in the player's squad whenever this brush detects a command goal. Fires before the actual order is sent. Useful for adding a response context to TLK_COMMANDED.
- OnStartTouch <void>
Fired when a player or a member of the player's squad starts touching this brush.
- OnStartTouchAll <void>
Fired when a player or a member of the player's squad starts touching this brush, and no other member is touching it.
- OnEndTouch <void>
Fired when a player or a member of the player's squad stops touching this trigger.
- OnEndTouchAll <void>
Fires when a player or a member of the player's squad stops touching this trigger, and no other members are touching it.