Revision Difference
DRIVE:CalcView#567740
<function name="CalcView" parent="DRIVE" type="hook">
<description>
Optionally alter the player's view if they are using this <page>drive</page> mode.
This hook is called from the default implementation of <page>GM:CalcView</page> which is [here](https://github.com/Facepunch/garrysmod/blob/master/garrysmod/gamemodes/base/gamemode/cl_init.lua#L387-L395). Therefore, it will not be called if any other hook added to `CalcView` returns any value, or if the current gamemode overrides the default hook and does not call <page>drive.CalcView</page>.
</description>
<realm>Client</realm>
<args>
<arg name="view_in" type="table{ViewData}">The view, see <page>Structures/ViewData</page>. Modify this table.</arg>
<arg name="view_in" type="table{CamData}">The view, see <page>Structures/CamData</page>. Modify this table.</arg>
</args>
</function>
Garry's Mod
Rust
Steamworks
Wiki Help