From b001ce7b36b27bebf40a16b7baff74a95456473a Mon Sep 17 00:00:00 2001 From: Aaron Suen Date: Wed, 20 Apr 2022 07:33:31 -0400 Subject: [PATCH] Standardize target cycling time --- szutil_cinecam/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/szutil_cinecam/init.lua b/szutil_cinecam/init.lua index afcc2f5..7cee25b 100644 --- a/szutil_cinecam/init.lua +++ b/szutil_cinecam/init.lua @@ -5,6 +5,8 @@ local math_atan2, math_cos, math_pi, math_random, math_sin, math_sqrt = math.atan2, math.cos, math.pi, math.random, math.sin, math.sqrt -- LUALOCALS > --------------------------------------------------------- +local cycletime = 20 + local modname = minetest.get_current_modname() minetest.register_privilege(modname, { @@ -95,7 +97,7 @@ local function camdummy(player, data, dtime) if sightblocked(dpos, tpos) then return end setcamera(player, dpos, tpos) - data.dummycam = 10 + data.dummycam = cycletime end local function camcheck(player, dtime) @@ -158,7 +160,7 @@ local function camcheck(player, dtime) end data.target = data.queue[#data.queue] data.queue[#data.queue] = nil - data.tracktime = 15 + data.tracktime = cycletime target = minetest.get_player_by_name(data.target) if not target then return camdummy(player, data, dtime) end