mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-01 10:48:55 +00:00
FIX - slow payphone hangup animation
This commit is contained in:
@@ -65,7 +65,7 @@ Config.Payphones = {
|
||||
Dictionary = "anim@scripted@payphone_hits@male@",
|
||||
PedClip = "FXFR_PAV_1_INTRO_MALE",
|
||||
PropClip = "FXFR_PAV_1_INTRO_PHONE",
|
||||
HangupDurationMs = 1200,
|
||||
HangupDurationMs = 2000,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@@ -195,7 +195,7 @@ local function play_hangup_visuals()
|
||||
visuals_ending = true
|
||||
local scene = animation_scene
|
||||
local starting_phase = math.max(0.0, math.min(1.0, GetSynchronizedScenePhase(scene)))
|
||||
local duration_ms = math.max(250, math.floor(tonumber(Config.Payphones.Animation.HangupDurationMs) or 1200))
|
||||
local duration_ms = math.max(250, math.floor(tonumber(Config.Payphones.Animation.HangupDurationMs) or 2000))
|
||||
local started_at = GetGameTimer()
|
||||
SetSynchronizedSceneRate(scene, 0.0)
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@ local function finish_call(call, status)
|
||||
if call.payphone then
|
||||
local hangup_duration = math.max(
|
||||
250,
|
||||
math.floor(tonumber(Config.Payphones.Animation.HangupDurationMs) or 1200)
|
||||
math.floor(tonumber(Config.Payphones.Animation.HangupDurationMs) or 2000)
|
||||
)
|
||||
send_payphone_visual(call, "stop", hangup_duration)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user