protron trig gun
This commit is contained in:
parent
95ea70baae
commit
2b51a3472b
@ -1054,8 +1054,6 @@ protron_e = mknew(bullet_base.new{
|
||||
y_off = 4,
|
||||
|
||||
damage = 1,
|
||||
dym = 0.5, -- gun sets dy;
|
||||
-- this is mult
|
||||
category = enemy_blt_cat,
|
||||
})
|
||||
|
||||
@ -1066,39 +1064,22 @@ protron_p = mknew(protron_e.new{
|
||||
category=player_blt_cat,
|
||||
})
|
||||
|
||||
protron_gun_e = mknew(gun_base.new{
|
||||
protron_gun_e = mknew(trig_gun.new{
|
||||
icon = 25,
|
||||
cooldown = 0x0.0040, -- frames between shots
|
||||
ammo = nil,
|
||||
maxammo = nil,
|
||||
munition = protron_e
|
||||
munition = protron_e,
|
||||
veloc = 2,
|
||||
shots = {{{-0.25}, {-0.165}, {-0.0825}, {0}, {0.0825}, {0.165}, {0.25}}}
|
||||
})
|
||||
|
||||
function protron_gun_e:actually_shoot(x, y)
|
||||
local m = self.munition.dym
|
||||
for i=1,3 do
|
||||
local b = self.munition.new{
|
||||
dx = i*m,
|
||||
dy = (4-i)*m,
|
||||
}
|
||||
b:spawn_at(x,y)
|
||||
local b2 = self.munition.new{
|
||||
dx = -i*m,
|
||||
dy = (4-i)*m,
|
||||
}
|
||||
b2:spawn_at(x,y)
|
||||
end
|
||||
local bup = self.munition.new{
|
||||
dx=0,
|
||||
dy=4*m,
|
||||
}
|
||||
bup:spawn_at(x,y)
|
||||
end
|
||||
|
||||
protron_gun_p = mknew(protron_gun_e.new{
|
||||
munition = protron_p,
|
||||
maxammo = 20,
|
||||
cooldown = 0x0.0018,
|
||||
veloc = 4,
|
||||
aim = -0.75,
|
||||
hdr = "pROTRON",
|
||||
body = [[---------GUN
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user