Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_steam_blaster_Alarm_0

(view raw script w/o annotations or w/e)
1
steam_active = true
2
alarm[0] = steam_interval * 30
alarm[0]

steam_active = true alarm[0] = steam_interval * 30 alarm[1] = 20 alarm[3] = alarm[0] * 0.8 if point_in_rectangle(x, y, __view_get((0 << 0), 0), __view_get((1 << 0), 0), ((__view_get((0 << 0), 0)) + (__view_get((3 << 0), 0))), ((__view_get((1 << 0), 0)) + (__view_get((13 << 0), 0)))) { if (obj_steamworks_07_controller.steam_audio_noloop == false) { audio_play_sound(steam_sound, 1, 0) audio_sound_gain(steam_sound, 0.25, 0) audio_sound_pitch(steam_sound, 1.1) with (obj_steamworks_07_controller) { steam_audio_noloop = true if (!alarm[1]) alarm[1] = 1 } } }
3
alarm[1] = 20
alarm[1]

steam_active = false steam_sound_played = false draw_overlay = false
4
alarm[3] = alarm[0] * 0.8
alarm[3]

draw_overlay = true
5
if point_in_rectangle(x, y, __view_get((0 << 0), 0), __view_get((1 << 0), 0), ((__view_get((0 << 0), 0)) + (__view_get((3 << 0), 0))), ((__view_get((1 << 0), 0)) + (__view_get((13 << 0), 0))))
6
{
7
    if (obj_steamworks_07_controller.steam_audio_noloop == false)
8
    {
9
        audio_play_sound(steam_sound, 1, 0)
10
        audio_sound_gain(steam_sound, 0.25, 0)
11
        audio_sound_pitch(steam_sound, 1.1)
12
        with (obj_steamworks_07_controller)
13
        {
14
            steam_audio_noloop = true
15
            if (!alarm[1])
16
                alarm[1] = 1
alarm[1]

steam_active = false steam_sound_played = false draw_overlay = false
17
        }
18
    }
19
}