Difference between revisions of "Func op4mortarcontroller"

From Sven Co-op
Jump to navigation Jump to search
(Import of converted entguide pages from Sven Manor.)
 
m (Formatting, typos, links etc.)
 
Line 4: Line 4:
 
}}
 
}}
  
A button to control an op4mortar with the 'Can control'-flag set. Holding your 'Use'-key on this button makes the target op4mortar  
+
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.
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 ==
 
== Keyvalues ==
  
 
{{Entity_keyvalue|Target|target|Name of an op4mortar entity to control. If bad value specified, the game crashes.}}
 
{{Entity_keyvalue|Target|target|Name of an op4mortar entity to control. If bad value specified, the game crashes.}}
{{Entity_keyvalue|Axis|mortar_axis|Set which axis of the targeted op4mortar to control. 'Vertical' axis refers to Yaw (left and right).  
+
{{Entity_keyvalue|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).}}
'Horizontal' refers to Pitch (up and down).}}
 
  
 
{{entity_title}}
 
{{entity_title}}

Latest revision as of 03:51, 28 January 2019

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).