SlashCo Wiki

HeadBob

 table HeadBob( Player pl, Vector pos, Angle ang, number fov )

Description

CalcView hook callback that adds a camera bobbing effect for Survivors while they walk, based on their velocity and movement keys.
Has no effect for other teams, while sliding, or while the slashco_cl_disable_headbob convar is enabled.

Arguments

1Player pl

The local player

2Vector pos

The view position

3Angle ang

The view angles

4number fov

The view FOV

Returns

1table view

The resulting view data, forwarded to GAMEMODE:CalcView