| 1 |
if (dx < 120) |
| 2 |
doomtime += 1; |
| 3 |
if (dx < 90) |
| 4 |
doomtime += 0.3; |
| 5 |
if (dx > 100) |
| 6 |
doomtime -= 0.3; |
| 7 |
if (dx > 110) |
| 8 |
doomtime -= 0.5; |
| 9 |
if (dx >= 120 && instance_exists(obj_battlebomb)) |
| 10 |
{ |
| 11 |
if (obj_battlebomb.defuse == 0 && obj_battlebomb.mypart1.got == 0 && dr == 0) |
| 12 |
{ |
| 13 |
dr = 1; |
| 14 |
global.flag[288 failed_defusing] = 1; |
| 15 |
obj_battlebomb_body.type = 99; |
| 16 |
obj_battlebomb_body.bombtype = 99; |
| 17 |
obj_battlebomb_body.speed = 0; |
| 18 |
obj_battlebomb.failure = 1; |
| 19 |
obj_battlebomb.con = 1001; |
| 20 |
} |
| 21 |
} |
| 22 |
if (dx >= 120 && global.inbattle == 0 && global.interact == 0) |
| 23 |
{ |
| 24 |
finaltimer += 1; |
| 25 |
if (finaltimer > 5) |
| 26 |
{ |
| 27 |
with (obj_mettnewsevent) |
| 28 |
failure = 1; |
| 29 |
with (obj_mettnewsevent) |
| 30 |
con = 160; |
| 31 |
instance_destroy(); |
| 32 |
} |
| 33 |
} |
| 34 |
if (view_yview[0] <= 0) |
| 35 |
view_yview[0] = 0; |