Skip to content

Add Lua-accessible zoom inertia factor - #671

Open
NotifyDeadCushion wants to merge 1 commit into
themrdemonized:all-in-one-vs2022-wpofrom
NotifyDeadCushion:add-zoom-inertion-factor
Open

NotifyDeadCushion wants to merge 1 commit into
themrdemonized:all-in-one-vs2022-wpofrom
NotifyDeadCushion:add-zoom-inertion-factor

Conversation

@NotifyDeadCushion

Copy link
Copy Markdown

Adds a Lua-accessible method for changing the zoom inertia factor at runtime.

The new CScriptGameObject method:
SetZoomInertionFactor(float factor)

passes the value to CEffectorZoomInertion::SetUserFactor() and clamps it between 0.0 and 2.0.

This allows Lua scripts to dynamically control zoom inertia without modifying the existing zoom inertia implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant