Deltarune script viewer

← back to main script listing

gml_Object_obj_bq_baseball_final_Collision_o_boxingcontroller_fist_hitbox

(view raw script w/o annotations or w/e)
1
if (hit != 1)
2
{
3
    snd_free(global.batmusic[0]);
4
    state = 2;
5
    instance_create(x, y + 91, o_bq_screen_flash);
6
    if (arcade)
7
        snd_play(snd_punchheavythunder_bc);
8
    else
9
        snd_play(snd_punchheavythunder);
10
    hit = 1;
11
    baseball_combo_timer = 2;
12
    o_boxingcontroller.hit_baseball += 1;
13
    o_boxingcontroller.hit_baseball_check = 1;
14
    y = o_boxingcontroller.y - 184;
15
    obj_3d_bg_effect.slow_down = 1;
16
    vspeed = 0;
17
    if (other.image_xscale == 2)
18
        hit_direction = -1;
19
    else
20
        hit_direction = 1;
21
    with (o_bq_whitefade)
22
        instance_destroy();
23
    if (o_boxingcontroller.swordactive == 1)
24
alarm[0]
25
    var speedlines = instance_create(x, o_boxingcontroller.y - 120, obj_fx_speedlines);
26
    speedlines.offsety = true;
27
    speedlines.depth = 4;
28
    with (o_boxingcontroller)
29
    {
30
        if (duckactive == 1)
31
        {
32
            snd_pitch(snd_squeaky, 0.75 + random(0.5));
33
            snd_play(snd_squeaky);
34
            color_fade_alpha = 1;
35
            global.hp[1] += 4;
36
            if (global.hp[1] > global.maxhp[1])
37
                global.hp[1] = global.maxhp[1];
38
        }
39
        if (laseractive == 1)
40
            laserpunchfadetimer = 10;
41
    }
42
}