Deltarune script viewer

← back to main script listing

gml_Object_obj_bq_baseball_Create_0

(view raw script w/o annotations or w/e)
1
if (room == room_dw_cyber_queen_boxing)
2
    arcade = 1;
3
else
4
    arcade = 0;
5
f = 2;
6
c = 250;
7
depth = o_boxingqueen.depth - 1;
8
image_angle = irandom(359);
9
vspeed = 12 / f;
10
if (o_boxingcontroller.wireframe_boxing == 1)
11
    vspeed = 12 / f;
12
hit = 0;
13
hit_timer = 0;
14
prev_room_speed = room_speed;
15
xbase = x;
16
ybase = y;
17
hit_direction = -1;
18
baseball_combo_timer = 0;
19
reticletimer = 0;
20
image_xscale = 1.75;
21
image_yscale = 1.75;
22
reticletimer = -10;
23
baseball_hitbox = instance_create(x, y, o_boxing_hitbox);
24
with (baseball_hitbox)
25
{
26
    baseball = 1;
27
    hit_jumping = 0;
28
    give_hurt = 22 / f;
29
    timer = 400 / f;
30
    damage = 25;
31
    grazed = 1;
32
    maker_id = id;
33
    image_yscale = 2;
34
    image_xscale = 4;
35
}
36
wheel_hitbox_graze = instance_create(x, y, o_boxing_hitbox);
37
with (wheel_hitbox_graze)
38
{
39
    baseball = 1;
40
    hit_jumping = 0;
41
    timer = 400 / f;
42
    graze_only = 1;
43
    maker_id = id;
44
    image_yscale = 2;
45
    image_xscale = 8;
46
}