Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_gerson_growtangle_telegraph_new_Create_0

(view raw script w/o annotations or w/e)
1
scr_bullet_init
scr_bullet_init

function
scr_bullet_init()
{ grazed = 0; grazetimer = 0; destroyonhit = 1; target = 0; inv = 60; damage = 10; element = 0; grazepoints = 1; timepoints = 1; active = 1; updateimageangle = 0; }
();
2
con = 0;
3
special = 0;
4
destroyonhit = false;
5
active = 0;
6
activetimer = 0;
7
longtelegraph = false;
8
image_alpha = 0;
9
var a = (global.hp[2] - 30) / 250;
10
if (a < 0)
11
    a = 0;
12
damage = lerp(12, 90, a);
13
if (i_ex(obj_sound_of_justice_enemy))
14
{
15
    target = 4;
16
    if (obj_sound_of_justice_enemy.phase == 1)
17
        damage = 38;
18
    else
19
        damage = 58;
20
}
21
if (i_ex(obj_hammer_of_justice_enemy) && obj_hammer_of_justice_enemy.attackpattern == 19)
22
{
23
    image_xscale = 1;
24
    sprite_index = spr_gerson_swing_down_telegraph3;
25
}
26
else if (i_ex(obj_hammer_of_justice_enemy) && obj_hammer_of_justice_enemy.reachedendphase == 1)
27
{
28
    longtelegraph = true;
29
    image_xscale = 1;
30
    sprite_index = spr_gerson_swing_down_telegraph2;
31
}