Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_dw_teevie_cameras_cheer_Create_0

(view raw script w/o annotations or w/e)
1
siner = 0;
2
siner_speed = 0;
3
anim = 0;
4
anim_speed = 0.2;
5
y_base_pos = 0;
6
y_target_pos = 0;
7
8
init_crowd = function()
9
{
10
    y_base_pos = y + 500;
11
};
12
13
show_crowd = function()
14
{
15
    anim_speed = 0.2;
16
    siner_speed = 0.4;
17
    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y_base_pos", y + 500, y + 280, 15, -1, "out");
18
};
19
20
hide_crowd = function()
21
{
22
    anim_speed = 0;
23
    siner_speed = 0;
24
    
scr_lerpvar
scr_lerpvar

function
scr_lerpvar()
{ if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar; } function scr_lerpvar_respect() { if (argument_count < 6) ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3]);
else ___lerpvar =
scr_lerpvar_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
___lerpvar.respectglobalinteract = true; return ___lerpvar; }
("y_base_pos", y + 280, y + 500, 15);
25
};
26
27
init = 0;
28
type = 0;
29
active = false;
30
wasactive = false;
31
if (room == room_dw_teevie_audiencepits || room == room_dw_teevie_lightmaze || room == room_dw_teevie_shuttahmaze)
32
    type = 1;
33
if (type == 1)
34
{
35
    y -= 220;
36
    depth = 100000 - ((y + 280 + 40) * 10);
37
}
38
if (
scr_ch3_violencecheck
scr_ch3_violencecheck

function
scr_ch3_violencecheck()
{ var __violence = 0; if (global.flag[580] == 1) __violence++; if (global.flag[581] == 1) __violence++; if (global.flag[582] == 1) __violence++; if (global.flag[583] == 1) __violence++; if (global.flag[584] == 1) __violence++; if (global.flag[586 encount_zapper_shuttah] == 1) __violence++; if (global.flag[587 encount_first_watercooler] == 1) __violence++; if (global.flag[588] == 1) __violence++; if (global.flag[589 encount_first_zapper] == 1) __violence++; if (global.flag[590 encount_first_shadowguy] == 1) __violence++; if (global.flag[591 encount_first_ribbick] == 1) __violence++; if (global.flag[592 encount_second_watercooler] == 1) __violence++; if (global.flag[593 encount_second_ribbick] == 1) __violence++; debug_message("
scr_ch3_violencecheck() - Violence count: " + string(__violence));
return __violence; }
() >= 5)
39
{
40
    disable = true;
41
    type = 999;
42
}