|
1
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
2
|
scr_setpartyscr_setparty
function scr_setparty(arg0, arg1, arg2)
{
var kris = obj_mainchara;
var slot = 0;
var __make = true;
if (!i_ex(kris))
__make = false;
scr_losechar();
safe_delete(obj_caterpillarchara);
if (arg0 == true)
{
scr_getchar(2);
if (__make)
{
with (scr_makecaterpillar(kris.x, kris.y, 2, slot))
{
halign = (global.darkzone == 0) ? 3 : 6;
valign = (global.darkzone == 0) ? 6 : 16;
x -= halign;
y -= valign;
}
}
slot++;
}
if (arg1 == true)
{
scr_getchar(3);
if (__make)
{
with (scr_makecaterpillar(kris.x, kris.y, 3, slot))
{
halign = 2;
valign = 12;
x -= halign;
y -= valign;
}
}
slot++;
}
if (arg2 == true)
{
scr_getchar(4);
if (__make)
{
with (scr_makecaterpillar(kris.x, kris.y, 4, slot))
{
halign = (global.darkzone == 0) ? 2 : 4;
valign = (global.darkzone == 0) ? 9 : 18;
x -= halign;
y -= valign;
}
}
slot++;
}
} (1, 1, 0);
|
|
3
|
timer = 0;
|
|
4
|
con = 0;
|
|
5
|
if (global.flag[1230 sneak_zapper_state] == 1)
|
|
6
|
global.flag[1230 sneak_zapper_state] = 2;
|
|
7
|
for (var i = 0; i < 4; i++)
|
|
8
|
instance_create(760 + (i * 1000), 0, obj_dw_teevie_tv_screens);
|
|
9
|
with (instance_create(4760, 0, obj_dw_teevie_tv_screens))
|
|
10
|
{
|
|
11
|
height = 4;
|
|
12
|
depth = 96920;
|
|
13
|
}
|
|
14
|
instance_create(x, y, obj_dw_teevie_bg);
|
|
15
|
scr_stealth_drawmarkersscr_stealth_drawmarkers
function scr_stealth_drawmarkers()
{
var footcolor = #412311;
var arrowcolor = #884823;
var thedepth = 1000050;
var aryoff = 0;
if (room == room_dw_teevie_stealth_d)
{
footcolor = #A20B0D;
arrowcolor = #FF946F;
aryoff = -6;
thedepth = 999999;
}
with (obj_b3bs_stealtharea)
{
mark[0] = scr_dark_marker(x - 4, ((10 + y) - 40) + aryoff, spr_dw_ch3_b3bs_stealth_downarrow);
mark[1] = scr_marker_ext(x + 4 + sprite_width + 4, ((10 + y) - 40) + aryoff, spr_dw_ch3_b3bs_stealth_downarrow, -2, 2);
for (var i = 0; i < ((sprite_width - 36) / 8); i++)
{
var xpos = 18 + (i * 8);
mark[i + 2] = scr_dark_marker(x + xpos, (y - 40) + 12 + aryoff, spr_pxwhite);
mark[i + 2].image_xscale = 8;
mark[i + 2].image_yscale = 4;
if ((xpos % 3) == 0)
mark[i + 2].y -= 2;
}
for (var i = 0; i < array_length(mark); i++)
{
mark[i].depth = thedepth;
mark[i].image_blend = arrowcolor;
}
for (var i = 0; i < (image_xscale / 40); i++)
{
var xpos = x + (i * 40);
if ((i % 3) == 0)
xpos += 4;
var ypos = y + 4;
if ((i % 2) == 0)
ypos += 6;
with (scr_dark_marker(xpos, ypos, spr_dw_ch3_b3bs_stealth_footprint))
{
depth = thedepth;
image_blend = footcolor;
}
}
}
} ();
|
|
16
|
nobacksies = 0;
|
|
17
|
stopfirstlight = 0;
|
|
18
|
var makelights = true;
|
|
19
|
if (global.flag[1230 sneak_zapper_state])
|
|
20
|
makelights = 0;
|
|
21
|
if (!makelights)
|
|
22
|
{
|
|
23
|
caught = -9999;
|
|
24
|
nobacksies = 99;
|
|
25
|
}
|
|
26
|
if (scr_ch3_violencecheckscr_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)
|
|
27
|
{
|
|
28
|
caught = 0;
|
|
29
|
makelights = true;
|
|
30
|
with (obj_trigger)
|
|
31
|
instance_destroy();
|
|
32
|
}
|
|
33
|
if (makelights)
|
|
34
|
{
|
|
35
|
var xx = 480;
|
|
36
|
var yy = 160;
|
|
37
|
var light = instance_create(xx, yy, obj_dw__backstagelight);
|
|
38
|
xx = 1120;
|
|
39
|
yy = 160;
|
|
40
|
light[0] = instance_create(xx + 0, 160, obj_dw__backstagelight);
|
|
41
|
light[1] = instance_create(xx + 200, 160, obj_dw__backstagelight);
|
|
42
|
light[2] = instance_create(xx + 400, 160, obj_dw__backstagelight);
|
|
43
|
light[0] = instance_create(xx + 1000, 160, obj_dw__backstagelight);
|
|
44
|
light[1] = instance_create(xx + 1200, 160, obj_dw__backstagelight);
|
|
45
|
light[2] = instance_create(xx + 1400, 160, obj_dw__backstagelight);
|
|
46
|
light[0] = instance_create(xx + 2000, 160, obj_dw__backstagelight);
|
|
47
|
light[1] = instance_create(xx + 2200, 160, obj_dw__backstagelight);
|
|
48
|
light[2] = instance_create(xx + 2400, 160, obj_dw__backstagelight);
|
|
49
|
light[0] = instance_create(xx + 3000, 160, obj_dw__backstagelight);
|
|
50
|
light[1] = instance_create(xx + 3200, 160, obj_dw__backstagelight);
|
|
51
|
light[2] = instance_create(xx + 3400, 160, obj_dw__backstagelight);
|
|
52
|
light[2].extflag = "replacementlight";
|
|
53
|
if (scr_ch3_violencecheckscr_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)
|
|
54
|
{
|
|
55
|
light[0] = instance_create(xx + 4000, 160, obj_dw__backstagelight);
|
|
56
|
light[1] = instance_create(xx + 4200, 160, obj_dw__backstagelight);
|
|
57
|
light[2] = instance_create(xx + 4400, 160, obj_dw__backstagelight);
|
|
58
|
}
|
|
59
|
with (obj_dw__backstagelight)
|
|
60
|
{
|
|
61
|
timer = -round(x / 30);
|
|
62
|
type = 1;
|
|
63
|
drawlamp = false;
|
|
64
|
image_blend = #FFCB3E;
|
|
65
|
movetype = 1;
|
|
66
|
mt1off -= 32;
|
|
67
|
movespeed = 120;
|
|
68
|
rate = 21.33;
|
|
69
|
wally = 320;
|
|
70
|
}
|
|
71
|
splight = instance_create(5240, yy, obj_dw__backstagelight);
|
|
72
|
with (splight)
|
|
73
|
{
|
|
74
|
timer = -round(x / 30);
|
|
75
|
type = 1;
|
|
76
|
drawlamp = false;
|
|
77
|
image_blend = #FFCB3E;
|
|
78
|
movetype = 1;
|
|
79
|
mt1off -= 32;
|
|
80
|
wally = 320;
|
|
81
|
special = 1;
|
|
82
|
rate = 2;
|
|
83
|
movespeed = 0;
|
|
84
|
}
|
|
85
|
if (scr_ch3_violencecheckscr_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)
|
|
86
|
{
|
|
87
|
safe_delete(splight);
|
|
88
|
splight = 0;
|
|
89
|
}
|
|
90
|
if (scr_debugscr_debug
function scr_debug()
{
if (global.debug == 1)
return 1;
} ())
|
|
91
|
{
|
|
92
|
with (obj_dw__backstagelight)
|
|
93
|
{
|
|
94
|
}
|
|
95
|
}
|
|
96
|
}
|
|
97
|
sontrig = 0;
|
|
98
|
var makeson = global.flag[1229 last_sneak_times_found];
|
|
99
|
if (global.flag[1230 sneak_zapper_state] == 2)
|
|
100
|
makeson = false;
|
|
101
|
son = 0;
|
|
102
|
if (makeson)
|
|
103
|
{
|
|
104
|
son = scr_marker_extscr_marker_ext
function scr_marker_ext(arg0, arg1, arg2, arg3 = 1, arg4 = 1, arg5 = 0, arg6 = 0, arg7 = 16777215, arg8 = depth, arg9 = false, arg10 = -1, arg11 = 1)
{
var thismarker = instance_create(arg0, arg1, obj_marker);
with (thismarker)
{
depth = arg8;
sprite_index = arg2;
image_speed = arg5;
image_xscale = arg3;
image_yscale = arg4;
image_index = arg6;
image_blend = arg7;
image_alpha = arg11;
if (arg9)
scr_depth();
}
if (arg10 > 0)
scr_doom(thismarker, arg10);
return thismarker;
} (106, 202, spr_dw_ch3_gouldenson, 2, 2, undefined, undefined, undefined, undefined, 1);
|
|
105
|
block = instance_create(134, 244, obj_solidblocksized);
|
|
106
|
with (block)
|
|
107
|
{
|
|
108
|
sprite_index = spr_pxwhite;
|
|
109
|
scr_sizescr_size
function scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{
with (arg2)
{
image_xscale = arg0;
image_yscale = arg1;
}
} (52, 4);
|
|
110
|
}
|
|
111
|
sontrig = instance_create(106, 218, obj_trigger_interact);
|
|
112
|
with (sontrig)
|
|
113
|
{
|
|
114
|
strict = true;
|
|
115
|
face3allowed = false;
|
|
116
|
scr_delay_var("face3allowed", true, 30);
|
|
117
|
scr_sizescr_size
function scr_size(arg0 = image_xscale, arg1 = image_yscale, arg2 = id)
{
with (arg2)
{
image_xscale = arg0;
image_yscale = arg1;
}
} (1.5, 1.75);
|
|
118
|
}
|
|
119
|
}
|
|
120
|
zapper = 0;
|
|
121
|
caught = 0;
|
|
122
|
caughttimer = 0;
|
|
123
|
visible = true;
|
|
124
|
if (obj_mainchara.x == 142 && obj_mainchara.y == 166)
|
|
125
|
{
|
|
126
|
global.facing = 0;
|
|
127
|
with (obj_caterpillarchara)
|
|
128
|
{
|
|
129
|
if (name == "susie")
|
|
130
|
x -= 16;
|
|
131
|
if (name == "ralsei")
|
|
132
|
x += 14;
|
|
133
|
scr_caterpillar_interpolatescr_caterpillar_interpolate
function scr_caterpillar_interpolate()
{
_newfacing = scr_facing_letter_to_number(scr_get_cardinal_direction(point_direction(x, y, obj_mainchara.x, obj_mainchara.y)));
remx[0] = obj_mainchara.x;
remy[0] = obj_mainchara.y;
facing[0] = _newfacing;
for (_iaia = target; _iaia > 0; _iaia -= 1)
{
remx[_iaia] = lerp(obj_mainchara.x, x, _iaia / target);
if (global.darkzone == 1)
remy[_iaia] = lerp(obj_mainchara.y, y + 16, _iaia / target);
else
remy[_iaia] = lerp(obj_mainchara.y, y + 6, _iaia / target);
facing[_iaia] = _newfacing;
}
} ();
|
|
134
|
facing[target] = 0;
|
|
135
|
}
|
|
136
|
}
|
|
137
|
make = "none";
|
|
138
|
noleft = 0;
|
|
139
|
leavecount = 0;
|
|
140
|
success = 0;
|
|
141
|
suctimer = 0;
|
|
142
|
if (global.flag[1230 sneak_zapper_state] == 2)
|
|
143
|
{
|
|
144
|
with (instance_create(210, 190, obj_teevie_spring))
|
|
145
|
name = "left";
|
|
146
|
with (instance_create(6060, 230, obj_teevie_spring))
|
|
147
|
name = "right";
|
|
148
|
}
|