Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_spearshot_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
image_speed = 0;
3
fakespeed = 2;
4
len = 100;
5
grav = 0;
6
hp = 2;
7
maxhp = 2;
8
destroyonhit = 1;
9
special = 0;
10
giant = 0;
11
after = -1;
12
swingaround = false;
13
redhammer = 0;
14
redhammersiner = 0;
15
spearblockerx = 0;
16
spearblockery = 0;
17
redhammerfakeout = 0;
18
redhammersign = 0;
19
introlen = 50;
20
introdirection = 50;
21
timer = 0;
22
siner = 0;
23
testtimer = 0;
24
testcon = 0;
25
init = 0;
26
x1 = x;
27
y1 = y;
28
x2 = x;
29
y2 = y;
30
x3 = 0;
31
y3 = 0;
32
len2 = len;
33
dir2 = direction + 120;
34
savedir = 0;
35
fadespear = 0;
36
fadespeartimer = 0;
37
fadespeartimermax = 0;
38
fadespeardist = 80;
39
fadespeed = 8;
40
fadewaitmax = 10;
41
flashalpha = 0;
42
extra_angle = 0;
43
savedir = 0;
44
savex = x;
45
savey = y;
46
type = 0;
47
bouncespear = 0;
48
bouncespeartimer = 0;
49
bouncespearcon = 0;
50
bouncespeardir = 0;
51
frozentimer = 0;
52
hitstopbounce = 0;
53
fastbounce = 0;
54
slowbounce = 0;
55
shakeduration = 0;
56
shakeintensity = 2;
57
pink1 = make_color_rgb(255, 127, 184);
58
pink2 = make_color_rgb(255, 178, 212);
59
pink3 = make_color_rgb(255, 204, 226);
60
spinindex = 3;
61
longspear = 0;
62
longnotebeingheld = false;
63
longnotepieces = 30;
64
longnoteindex = 0;
65
pitchcount = 30;
66
breakshield = 0;
67
leadinsfx = 0;
68
willhitnextframe = false;
69
if (i_ex(obj_gerson_darkness_overlay))
70
    depth = obj_gerson_darkness_overlay.depth + 1;
71
hurtsquish = false;
72
gigashell = false;