-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPerpetrator.wep.gml
49 lines (37 loc) · 1.06 KB
/
Perpetrator.wep.gml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#define init
global.sprPerpetrator = sprite_add_weapon("sprites/weapons/sprPerpetrator.png", 5, 2);
#define weapon_name
return "PERPETRATOR";
#define weapon_sprt
return global.sprPerpetrator;
#define weapon_type
return 1;
#define weapon_auto
return true;
#define weapon_load
return 9;
#define weapon_cost
return 5;
#define weapon_swap
return sndSwapMachinegun;
#define weapon_area
return 20;
#define weapon_text
return choose("READY FOR ACTION","THE LAST STANCE","DELETE THEM");
#define weapon_fire
sound_play_pitch(sndHyperLauncher,random_range(.3,.38))
repeat(2)
{
sound_play_pitch(sndHyperSlugger,random_range(.7,.8))
sound_play_pitch(sndHeavySlugger,.8)
mod_script_call("mod","defpack tools", "shell_yeah", 100, 25, random_range(4,6), c_black)
with mod_script_call("mod", "defpack tools", "create_dark_bullet",x+lengthdir_x(2,gunangle),y+lengthdir_y(2,gunangle)){
creator = other
team = other.team
motion_set(other.gunangle+random_range(-2,2)*other.accuracy,14)
image_angle = direction
}
weapon_post(5,-8,24)
wait(3)
if (!instance_exists(self)) break;
}