WEAPON:CalcView

From Garry's Mod
Jump to: navigation, search
 WEAPON:CalcView( )

Contents

Description

Allows you to adjust player view while this weapon in use.

This hook is called from the default implementation of GM:CalcView ([1]). 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 the SWEP function.

Arguments

Player ply

The owner of weapon

Arguments

Vector pos

Current position of players view

Arguments

Angle ang

Current angles of players view

Arguments

number fov

Current FOV of players view

Returns

Vector

New position of players view

Returns

Angle

New angle of players view

Returns

number

New FOV of players view
Personal tools
Navigation