Ambitious Jack

A mimic of IaMP Sakuya's "Ambitious Jack"

```
playerAddSubWeapon("Ambitious Jack","fireC")
fire3Count=9
function fireC1_OnStart()
addMover(60,0,MOVER_VANISH)
setPower(0.5)
end
function fireC1_OnStep()
local cnt = getv(0)
if (math.mod(cnt, 10)==0) and (cnt>19) then
local angle = aim(iMaster()) + 100 + math.random(0, 160)
addMover(0,1,MOVER_SETANGLE,angle)
end
setv(0, cnt + 1)
end
function fireC1_OnVanish()
fire3Count=fire3Count+1
end
function fireC_OnStart(level)
if fire3Count<9 then
release()
else
fire_interval=0
for i = 0 , 8 , 1 do
local angle = (getAngle() - 20) + (5*i)
createBullet( -135 , angle , 3.5 , 0 ,"fireC1")
end
fire3Count=fire3Count-9
playSound(1)
end
end
function fireC_OnStep()
fire_interval=fire_interval+1
if fire_interval==30 then
release()
end
end
```

page revision: 7, last edited: 27 Apr 2007 22:55