Deltarune script viewer

← back to main script listing

gml_Object_obj_sneo_heartattack_Collision_obj_yheart_shot

(view raw script w/o annotations or w/e)
1
if (con == 3)
2
    exit;
3
if (visible == false)
4
    exit;
5
shakex = 6;
6
shakey = 6;
7
heart_health -= other.damage;
8
if (other.damage > 2)
9
    global.turntimer -= obj_spamton_neo_enemy.heart_hurt_timer_reduction_bigshot;
10
else
11
    global.turntimer -= obj_spamton_neo_enemy.heart_hurt_timer_reduction;
12
snd_play(snd_damage);
13
with (other)
14
    event_user(0);
15
if (heart_health < 1)
16
{
17
    con = 3;
18
    shootcon = 0;
19
    speed = 0;
20
    obj_spamton_neo_enemy.partmode = 1;
21
    bustertimer = 999;
22
    if (global.turntimer > 2)
23
        global.turntimer = 37;
24
    with (obj_sneo_guymaker)
25
        instance_destroy();
26
    with (obj_sneo_lilguy)
27
        instance_destroy();
28
    with (obj_sneo_heatattack_bullet)
29
        instance_destroy();
30
    with (obj_spamtonshot)
31
        instance_destroy();
32
    with (obj_sneo_biglaser)
33
        instance_destroy();
34
    with (obj_rouxls_power_up_orb)
35
        instance_destroy();
36
}
37
if (global.turntimer < 51)
38
{
39
    global.turntimer = 50;
40
    attackcount = 0;
41
}