Hooks
Hooks provided by the View Bob module for managing view bobbing effects.
Overview
The View Bob module adds camera bobbing while moving, adjustable intensity, hooks to modify view punch, and configuration for bobbing frequency.. It provides comprehensive hook integration for customizing managing view bobbing effects and extending functionality.
PostViewPunch
đ Purpose
Called after a view punch is applied.
â° When Called
After ViewPunch is called on the player.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
client |
Player | The local player |
angleX |
number | The X angle punch |
angleY |
number | The Y angle punch |
angleZ |
number | The Z angle punch |
âŠī¸ Returns
nil
đ Realm
Client
Overview
The View Bob module adds camera bobbing while moving, adjustable intensity, hooks to modify view punch, and configuration for bobbing frequency.. It provides comprehensive hook integration for customizing managing view bobbing effects and extending functionality.
PreViewPunch
đ Purpose
Called before a view punch is applied.
â° When Called
Before ViewPunch is called on the player.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
client |
Player | The local player |
angleX |
number | The X angle punch to apply |
angleY |
number | The Y angle punch to apply |
angleZ |
number | The Z angle punch to apply |
âŠī¸ Returns
nil
đ Realm
Client
Overview
The View Bob module adds camera bobbing while moving, adjustable intensity, hooks to modify view punch, and configuration for bobbing frequency.. It provides comprehensive hook integration for customizing managing view bobbing effects and extending functionality.
ViewBobPunch
đ Purpose
Called when a view bob punch is triggered.
â° When Called
During the punch application, before ViewPunch is called.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
client |
Player | The local player |
angleX |
number | The X angle punch |
angleY |
number | The Y angle punch |
angleZ |
number | The Z angle punch |
âŠī¸ Returns
nil
đ Realm
Client
Overview
The View Bob module adds camera bobbing while moving, adjustable intensity, hooks to modify view punch, and configuration for bobbing frequency.. It provides comprehensive hook integration for customizing managing view bobbing effects and extending functionality.
ViewBobStep
đ Purpose
Called when a view bob step value is calculated.
â° When Called
During footstep processing, when step value alternates.
âī¸ Parameters
| Parameter | Type | Description |
|---|---|---|
client |
Player | The local player |
stepvalue |
number | The current step value (1 or -1) |
âŠī¸ Returns
number - Return a number to override the step value, nil for default
đ Realm
Client