zoom
Definition
-- @/lua/ge/extensions/gameplay/garageMode.lua:147
local function zoom(value)
if not active then return end
if value ~= 0 then
local zoomVal = -zoomSpeed * value
if zoomDirectionLastFrame ~= (value > 0) then
stopZooming = 0
end
stopZooming = stopZooming + 0.05
core_camera.cameraZoom(zoomVal * stopZooming)
zoomDirectionLastFrame = value > 0
end
end
Callers
@/lua/ge/extensions/freeroam/bigMapMode.lua
local function zoom(value)
local camMode = core_camera.getGlobalCameras().bigMap
if camMode then
camMode:zoom(value)
end
@/ui/ui-vue/mockdata/inputBindings.js
"tags": ["tags.camera.fov_short", "tags.camera.fov_long"],
"onChange": "if gameplay_garageMode then gameplay_garageMode.zoom(VALUE) end",
"title": "garageMode.action.zoom.title",
"title": "bigMap.action.zoom.title",
"onChange": "if freeroam_bigMapMode then freeroam_bigMapMode.zoom(VALUE) end",
"isCentered": true,
@/lua/ge/extensions/core/cameraModes/bigMap.lua
local zoomDirectionLastFrame = 0
function C:zoom(value)
if value ~= 0 then