implemented vacuum and bell sound

This commit is contained in:
Chr1Z93 2023-04-03 23:54:44 +02:00
parent ff06985fbc
commit 3879c8ed27
3 changed files with 18 additions and 1 deletions

View File

@ -12,7 +12,7 @@
},
"CustomAssetbundle": {
"AssetbundleSecondaryURL": "",
"AssetbundleURL": "http://cloud-3.steamusercontent.com/ugc/2037356539985116869/074BA1008AF1BF68A54B7DD269F50733C050BF45/",
"AssetbundleURL": "http://cloud-3.steamusercontent.com/ugc/2037356539985233174/FB2785745105BDFB2903346BEA6D090B7A4609AC/",
"LoopingEffectIndex": 0,
"MaterialIndex": 2,
"TypeIndex": 0
@ -35,6 +35,9 @@
"Nickname": "SoundCube",
"Snap": true,
"Sticky": true,
"Tags": [
"SoundCube"
],
"Tooltip": true,
"Transform": {
"posX": 78,

View File

@ -165,6 +165,7 @@ function cleanUp(_, color)
printToAll("Clean up started!", "Orange")
printToAll("Resetting counters...", "White")
triggerSoundCube()
ignoreCustomDataHelper()
getTrauma()
updateCounters(DAMAGE_HORROR_GUIDS, RESET_VALUES, "Damage / Horror")
@ -185,6 +186,13 @@ end
-- modular functions, called by other functions
---------------------------------------------------------
function triggerSoundCube()
local soundCube = getObjectsWithTag("SoundCube")[1]
if soundCube then
soundCube.AssetBundle.playTriggerEffect(0)
end
end
function updateCounters(tableOfGUIDs, tableOfNewValues, info)
if tonumber(tableOfNewValues) then
local value = tableOfNewValues

View File

@ -1020,5 +1020,11 @@ function titleSplash(scenarioName)
UI.hide('title_splash')
hideTitleSplashWaitFunctionId = nil
end, 4)
-- play bell sound from soundCube
local soundCube = getObjectsWithTag("SoundCube")[1]
if soundCube then
soundCube.AssetBundle.playTriggerEffect(1)
end
end
end