1 |
if (button3_h() && button2_h()) |
2 |
{ |
3 |
} |
4 |
else |
5 |
{ |
6 |
with (obj_mainchara) |
7 |
roomenterfreezeend = 1; |
8 |
} |
9 |
if (doorPreset > 0) |
10 |
{ |
11 |
if (doorPreset == 1) |
12 |
{ |
13 |
doorDelay = 14; |
14 |
doorPostDelay = 6; |
15 |
doorSound = snd_dooropen; |
16 |
doorSound2 = snd_doorclose; |
17 |
} |
18 |
else if (doorPreset == 2) |
19 |
{ |
20 |
doorDelay = 16; |
21 |
doorPostDelay = 6; |
22 |
doorSound = snd_escaped; |
23 |
} |
24 |
} |
25 |
if (doorFadeMusic) |
26 |
{ |
27 |
alarm[3] = doorFadeMusicTime; |
28 |
mus_volume(global.currentsong[1], 0, alarm[3]); |
29 |
if (doorDelay <= doorFadeMusicTime) |
30 |
doorDelay = doorFadeMusicTime + 1; |
31 |
} |
32 |
if (doorDelay > 0) |
33 |
alarm[2] |
34 |
if (doorSound != -1) |
35 |
snd_play(doorSound); |
36 |
if (i_ex(obj_fadeout)) |
37 |
{ |
38 |
var off = 0; |
39 |
if (os_type == os_macosx) |
40 |
off = 1; |
41 |
if (alarm[2] > 0) |
42 |
obj_fadeout.fadespeed = 1 / (alarm[2] - off); |
43 |
} |
44 |
with (obj_overworldbulletparent) |
45 |
active = 0; |