63 lines
1.2 KiB
Lua

local radiationSoundEffects = {
type = "play-sound",
sound =
{
aggregation =
{
max_count = 1,
count_already_playing = true,
progress_threshold = 1.0,
remove = true
},
variations =
{
{
filename = "__True-Nukes__/MushroomCloudInBuilt/sound/radiation_ticking.ogg",
volume = 3
}
}
}
}
data:extend({
{
type = "smoke-with-trigger",
name = "radiation-cloud",
flags = {"not-on-map"},
show_when_smoke_off = true,
animation =
{
filename = "__True-Nukes__/MushroomCloudInBuilt/graphics/dummy.png",
priority = "low",
width = 32,
height = 32,
frame_count = 1,
line_length = 1,
animation_speed = 1
},
slow_down_factor = 0,
affected_by_wind = false,
cyclic = true,
duration = 60 * 120,
fade_away_duration = 20 * 60,
spread_duration = 10,
color = { r = 0.9, g = 0.9, b = 0.9, a = 0.1 },
action =
{
type = "direct",
action_delivery =
{
type = "instant",
target_effects = {radiationSoundEffects}
}
},
action_cooldown = 37
},
{
type = "sound",
name = "nuclear-detonation-radiation-ticking",
filename = "__True-Nukes__/MushroomCloudInBuilt/sound/radiation_ticking.ogg",
volume = 3
}
})