func_op4mortarcontroller
func_op4mortarcontroller | |
---|---|
Type |
brush |
Status |
supported |
A button to control an op4mortar with the 'Can control'-flag set. Holding your 'Use'-key on this button makes the target op4mortar either rotate on its horizontal or vertical axis (depending on your setup) in a direction at 40 degrees per second and change the rotation direction when the rotation limit for that direction has been reached. (Pitch always ranges from 0 to 90 degrees). Using this controller consecutively gives more control over the op4mortar's angle as it will rotate slower. When not using the controller for a half second, the direction into which it will make the op4mortar turn the next time you use the func_op4mortarcontroller is reversed for convenience, so players don't have to turn the op4mortar all the way to its rotation limit in order to adjust into the other direction.
Keyvalues
Target : target
Name of an op4mortar entity to control. If bad value specified, the game crashes.
Axis : mortar_axis
Set which axis of the targeted op4mortar to control. 'Vertical' axis refers to Yaw (left and right). 'Horizontal' refers to Pitch (up and down).