implemented vacuum and bell sound
This commit is contained in:
parent
ff06985fbc
commit
3879c8ed27
@ -12,7 +12,7 @@
|
|||||||
},
|
},
|
||||||
"CustomAssetbundle": {
|
"CustomAssetbundle": {
|
||||||
"AssetbundleSecondaryURL": "",
|
"AssetbundleSecondaryURL": "",
|
||||||
"AssetbundleURL": "http://cloud-3.steamusercontent.com/ugc/2037356539985116869/074BA1008AF1BF68A54B7DD269F50733C050BF45/",
|
"AssetbundleURL": "http://cloud-3.steamusercontent.com/ugc/2037356539985233174/FB2785745105BDFB2903346BEA6D090B7A4609AC/",
|
||||||
"LoopingEffectIndex": 0,
|
"LoopingEffectIndex": 0,
|
||||||
"MaterialIndex": 2,
|
"MaterialIndex": 2,
|
||||||
"TypeIndex": 0
|
"TypeIndex": 0
|
||||||
@ -35,6 +35,9 @@
|
|||||||
"Nickname": "SoundCube",
|
"Nickname": "SoundCube",
|
||||||
"Snap": true,
|
"Snap": true,
|
||||||
"Sticky": true,
|
"Sticky": true,
|
||||||
|
"Tags": [
|
||||||
|
"SoundCube"
|
||||||
|
],
|
||||||
"Tooltip": true,
|
"Tooltip": true,
|
||||||
"Transform": {
|
"Transform": {
|
||||||
"posX": 78,
|
"posX": 78,
|
||||||
|
@ -165,6 +165,7 @@ function cleanUp(_, color)
|
|||||||
printToAll("Clean up started!", "Orange")
|
printToAll("Clean up started!", "Orange")
|
||||||
printToAll("Resetting counters...", "White")
|
printToAll("Resetting counters...", "White")
|
||||||
|
|
||||||
|
triggerSoundCube()
|
||||||
ignoreCustomDataHelper()
|
ignoreCustomDataHelper()
|
||||||
getTrauma()
|
getTrauma()
|
||||||
updateCounters(DAMAGE_HORROR_GUIDS, RESET_VALUES, "Damage / Horror")
|
updateCounters(DAMAGE_HORROR_GUIDS, RESET_VALUES, "Damage / Horror")
|
||||||
@ -185,6 +186,13 @@ end
|
|||||||
-- modular functions, called by other functions
|
-- 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)
|
function updateCounters(tableOfGUIDs, tableOfNewValues, info)
|
||||||
if tonumber(tableOfNewValues) then
|
if tonumber(tableOfNewValues) then
|
||||||
local value = tableOfNewValues
|
local value = tableOfNewValues
|
||||||
|
@ -1020,5 +1020,11 @@ function titleSplash(scenarioName)
|
|||||||
UI.hide('title_splash')
|
UI.hide('title_splash')
|
||||||
hideTitleSplashWaitFunctionId = nil
|
hideTitleSplashWaitFunctionId = nil
|
||||||
end, 4)
|
end, 4)
|
||||||
|
|
||||||
|
-- play bell sound from soundCube
|
||||||
|
local soundCube = getObjectsWithTag("SoundCube")[1]
|
||||||
|
if soundCube then
|
||||||
|
soundCube.AssetBundle.playTriggerEffect(1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user