Part of StarfallEx namespace
๐ External
hook.add("CalcViewModelView", "name", function(wep, vm, oldPos, oldAng, pos, ang) end)๐ Has LDoc๐๏ธ 0 viewsUpdated 2 months ago
Description
Called when the engine wants to calculate the viewmodel position and angle (only works if connected to Starfall HUD)
Parameters
| Name | Type | Description |
|---|---|---|
wep | Weapon | The weapon entity |
vm | Entity | The viewmodel entity |
oldPos | Vector | Original position (before viewmodel bobbing and swaying) |
oldAng | Angle | Original angle (before viewmodel bobbing and swaying) |
pos | Vector | Current position |
ang | Angle | Current angle |
Returns
| Type | Description |
|---|---|
Vector | New position (you must return a value) |
Angle | New angle (you must return a value) |
Examples
No examples available.
Used In
No usages found in the codebase.