Delay setting watching HUD until set camera
This commit is contained in:
parent
9a4c3550b1
commit
0a9ba9c210
@ -228,6 +228,7 @@ local function camdummy(player, data, dtime)
|
||||
|
||||
dimhuds(player, data, config.dummydark, config.dummyvig)
|
||||
setcamera(player, dpos, tpos)
|
||||
data.targethud = nil
|
||||
data.dummycam = config.cycletime
|
||||
end
|
||||
|
||||
@ -238,8 +239,7 @@ local function camcheck(player, dtime)
|
||||
player:set_fov(config.camfov)
|
||||
end
|
||||
|
||||
local text = ""
|
||||
if data.target then text = "Watching: " .. data.target end
|
||||
local text = data.targethud or ""
|
||||
if data.tiptext ~= text then data.tiptime = 0 end
|
||||
data.tiptext = text
|
||||
if data.tiptime > config.hudtime then text = "" end
|
||||
@ -339,6 +339,7 @@ local function camcheck(player, dtime)
|
||||
dimhuds(player, data, config.actdark, config.actvig)
|
||||
setcamera(player, trypos, tpos)
|
||||
|
||||
data.targethud = "Watching: " .. data.target
|
||||
data.moved = 0
|
||||
data.locked = config.camlocktime
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user