-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSword Thrower.wep.gml
More file actions
45 lines (43 loc) · 1.23 KB
/
Sword Thrower.wep.gml
File metadata and controls
45 lines (43 loc) · 1.23 KB
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
#define init
global.sprSwordThrower = sprite_add_weapon("sprites/weapons/sprSwordThrower.png", 4, 4)
#define weapon_name
return "SWORD THROWER"
#define weapon_type
return 3
#define weapon_cost
return 2
#define weapon_area
return 8
#define weapon_load
return 25
#define weapon_swap
return sndSwapBow
#define weapon_auto
return 0
#define weapon_melee
return 0
#define weapon_laser_sight
return 1
#define weapon_sprt
return global.sprSwordThrower
#define weapon_reloaded
#define nts_weapon_examine
return{
"d": "This gun is known to be the cause of a lot of accidental casualties. ",
}
#define weapon_text
return choose("SHARP AS ALL CAN BE", "@wSWORDS@s CAN HIT TWO THINGS AT ONCE")
#define weapon_fire
var _p = random_range(.8, 1.2)
sound_play_pitch(sndHeavyCrossbow, 2 * _p)
sound_play_pitchvol(sndHeavySlugger, 6 * _p, .7)
sound_play_pitch(sndSwapSword, 1.25 * _p)
sound_play_pitchvol(sndCrystalRicochet, 1.6 * _p, 1.5)
sound_play_pitchvol(sndSuperCrossbow, 1.4 * _p, .6)
weapon_post(7, -44, 10)
with mod_script_call_nc("mod", "defpack tools", "create_sword", x, y){
motion_set(other.gunangle, 20)
image_yscale = -other.right
projectile_init(other.team, other)
image_angle = direction
}