2 local w
= regweapon(t
.righthand
[1],t
.righthand
[2],
3 t
.lefthand
[1],t
.lefthand
[2],
6 regfirefunction(w
,t
.whenfire
)
7 for i
= 1, #t
.sprite
do
8 regspriteline(w
,t
.sprite
[i
][1],t
.sprite
[i
][2],t
.sprite
[i
][3],t
.sprite
[i
][4])
17 function default(t
,k
,v
)
24 default(t
,"gravity",0)
25 default(t
,"duration",3000)
27 local s
= createshot(t
.x
,t
.y
,t
.angle
,t
.duration
,t
.weapon
,t
.gravity
,t
.speed
)
28 for i
= 1, #t
.sprite
do
29 regspritelineshot(s
,t
.sprite
[i
][1],t
.sprite
[i
][2],t
.sprite
[i
][3],t
.sprite
[i
][4])