name		CannonBall
type		enemy
speed		40
gfxshadow	1
lifespan  	1
nolife          1
remove		0
candamage	player npc obstacle


anim idle
drawmethod 190 190
	loop	1
	followcond 1
	followanim 1
	hitfx 	data/sfx/explode.wav
	delay	 7
	offset  20  20
	attack	0  0  39  39  30 1 1 0 20
	dropv	2 5 0
	frame	data/chars/misc/arrow/can1.gif
	frame	data/chars/misc/arrow/can2.gif

anim follow1
@script
    void self = getlocalvar("self");

    if (frame == 1){
      changeentityproperty(self, "velocity", 0, 0, 0);
    }
@end_script
	delay	5
	offset	20 20
	spawnframe 1 0 0 0 0
	custentity Xplos
	frame	data/chars/misc/empty.gif
	frame	data/chars/misc/empty.gif
