Revision Difference
Structures/CamData#517033
<cat>struct</cat>
<structure>
<description>Table structure used <page>GM:CalcView</page> and <page>GM:CalcVehicleView</page> hook.</description>
<fields>{{StructureField|Vector|origin|The camera's position</fields>⤶
<fields>⤶
<item name="origin" type="Vector">The camera's position</item>⤶
<item name="angles" type="Angle">The camera's angles</item>⤶
<item name="fov" type="number">The camera's FOV</item>⤶
<item name="znear" type="number">Distance to near clipping plane</item>⤶
<item name="zfar" type="number">Distance to far clipping plane</item>⤶
{{StructureField|boolean|drawviewer|Set true to draw local players player model.|false⤶
</fields>⤶
</structure>
{{StructureField|Angle|angles|The camera's angles}}{{StructureField|number|fov|The camera's FOV}}{{StructureField|number|znear|Distance to near clipping plane}}{{StructureField|number|zfar|Distance to far clipping plane}}{{StructureField|boolean|drawviewer|Set true to draw local players player model.|false}}{{StructureField|table|ortho|If set, enables orthographic mode. The table has following arguments:
{{StructureField|table|ortho|If set, enables orthographic mode. The table has following arguments:
* <page>number</page> left
* <page>number</page> right
* <page>number</page> top
* <page>number</page> bottom|nil
}}
}}