Browsing StarfallEx's section
โ† Back to ACE
Back to StarfallEx

SFEX.hook.CalcViewModelView

C๐Ÿท๏ธ Hooks

Part of StarfallEx namespace

๐Ÿ”— External
hook.add("CalcViewModelView", "name", function(wep, vm, oldPos, oldAng, pos, ang) end)
View on GitHub|lua/starfall/libs_cl/render.lua:440
๐Ÿ“‹ 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

NameTypeDescription
wepWeaponThe weapon entity
vmEntityThe viewmodel entity
oldPosVectorOriginal position (before viewmodel bobbing and swaying)
oldAngAngleOriginal angle (before viewmodel bobbing and swaying)
posVectorCurrent position
angAngleCurrent angle

Returns

TypeDescription
VectorNew position (you must return a value)
AngleNew angle (you must return a value)

Examples

No examples available.

Used In

No usages found in the codebase.