Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_tracking_swords_manager_Other_10

(view raw script w/o annotations or w/e)
1
if (variant == 0)
2
{
3
    rate = 32;
4
    ratedecay = 4;
5
    rateminimum = 16;
6
    maxswords = 99;
7
    multiswordmax = 0;
8
}
9
if (variant == 1)
10
{
11
    rate = 50;
12
    ratedecay = 10;
13
    rateminimum = 6;
14
    maxswords = 5;
15
    multiswordmax = 0;
16
    rate = 24;
17
    ratedecay = 0;
18
    rateminimum = 24;
19
    maxswords = 99;
20
    multiswordmax = 0;
21
}
22
if (variant == 2)
23
{
24
    rate = 24;
25
    ratedecay = 0;
26
    rateminimum = 24;
27
    maxswords = 99;
28
    multiswordmax = 2;
29
    multiswordframes = 4;
30
    setdirection[1] = 0;
31
    setdirection[2] = 45;
32
    setdirection[3] = 90;
33
    setdirection[4] = 135;
34
    setdirection[5] = 180;
35
    setdirection[6] = 225;
36
    setdirection[7] = 270;
37
    setdirection[8] = 315;
38
    setdirection[9] = 0;
39
    setdirection[10] = 45;
40
}
41
if (variant == 3)
42
{
43
    rate = 20;
44
    ratedecay = 4;
45
    rateminimum = 13;
46
    maxswords = 99;
47
    multiswordmax = 0;
48
}
49
with (obj_dbulletcontroller)
50
{
51
    if (type == 104)
52
    {
53
        with (obj_tracking_swords_manager)
54
        {
55
            rate = 55;
56
            ratedecay = 0;
57
            rateminimum = 24;
58
            maxswords = 99;
59
            multiswordmax = 0;
60
            multiswordframes = 0;
61
        }
62
    }
63
    if (type == 154)
64
    {
65
        with (obj_tracking_swords_manager)
66
        {
67
            rate = 24;
68
            ratedecay = 4;
69
            rateminimum = 16;
70
            maxswords = 99;
71
            multiswordmax = 0;
72
        }
73
    }
74
}
75
timer = rate - 5;