name Andamio2
health 20
type obstacle
candamage player enemy
hostile player enemy
subtype flydie
nomove 1
gfxshadow 1
nolife 1
flash flash
noatflash 1
falldie 1
offscreenkill 300
load down
animationscript data/scripts/obstacle.c
anim spawn
loop 0
delay 1
offset 102 315
bbox 29 125 146 194
platform 102 325 -100 -100 100 100 20 1100
frame data/chars/misc/andamio00.png
anim idle
loop 0
delay 1000
counterrange 0 4 3 1
followanim 1
offset 102 315
bbox 29 125 146 194
platform 102 325 -100 -100 100 100 20 1100
frame data/chars/misc/andamio00.png
anim follow1
loop 0
delay 4
offset 102 315
bbox 29 125 146 194
sound data/sounds/klunk.wav
@cmd lifeCheck 0 "ANI_FALL"
platform 102 325 -100 -100 100 100 30 1100
frame data/chars/misc/andamio01.png
frame data/chars/misc/andamio00.png
@cmd anichange "ANI_IDLE" 0
frame data/chars/misc/andamio01.png
anim fall
loop 0
@script
void self = getlocalvar("self");
if(frame == 0){
changeentityproperty(self, "velocity", 0, 0, 0);
changeentityproperty(self, "speed", 0.0);
}
@end_script
delay 12
offset 102 315
bbox 0 0 0 0
platform 102 325 -100 -100 100 100 20 1100
frame data/chars/misc/andamio00.png
sound data/sounds/ironfall.wav
frame data/chars/misc/andamio02.png
frame data/chars/misc/andamio00.png
frame data/chars/misc/andamio01.png
delay 10
frame data/chars/misc/andamio02.png
delay 8
frame data/chars/misc/andamio03.png
delay 6
frame data/chars/misc/andamio04.png
delay 5
frame data/chars/misc/andamio05.png
delay 4
hitfx data/sounds/indirect.wav
hitflash flash2
platform 0 0 0 0 0 0
attack49 119 87 101 165 200 1 1 0 10 20
dropv 1 2 0
frame data/chars/misc/andamio06.png
attack49 114 105 101 204 200 1 1 0 10 20
dropv 1 2 0
frame data/chars/misc/andamio07.png
attack49 171 58 62 248 200 1 1 0 10 20
dropv 1 2 0
frame data/chars/misc/andamio08.png
attack49 175 70 81 232 200 1 1 0 10 20
dropv 1 2 0
frame data/chars/misc/andamio09.png
attack49 149 124 166 121 200 1 1 0 10 20
dropv 1 2 0
frame data/chars/misc/andamio10.png
attack49 197 133 190 109 200 1 1 0 10 20
dropv 1 2 0
frame data/chars/misc/andamio11.png
attack49 185 156 232 104 200 1 1 0 10 20
dropv 1 2 0
frame data/chars/misc/andamio12.png
attack49 182 243 256 36 200 1 1 0 10 20
dropv 1 2 0
frame data/chars/misc/andamio13.png
delay 8
quakeframe 17 6 4
@cmd spawn01 "down" 260 0 -2
otg 1
attack49 174 262 264 55 200 1 1 0 10 20
dropv 0.5 0.2 0
frame data/chars/misc/andamio14.png
delay 10
otg 1
attack49 174 262 264 55 200 1 1 0 10 20
dropv 0.5 0.2 0
frame data/chars/misc/andamio15.png
otg 1
attack49 174 262 264 55 200 1 1 0 10 20
dropv 0.5 0.2 0
frame data/chars/misc/andamio16.png
otg 1
attack49 174 262 264 55 200 1 1 0 10 20
dropv 0.5 0.2 0
frame data/chars/misc/andamio17.png
otg 1
attack49 174 262 264 55 200 1 1 0 10 20
dropv 0.5 0.2 0
@script
void self = getlocalvar("self");
if(frame == 21){
changeentityproperty(self, "setlayer", -1);
}
@end_script
frame data/chars/misc/andamio18.png
attack49 174 262 264 55 200 1 1 0 10 20
dropv 0.5 0.2 0
frame data/chars/misc/andamio19.png
otg 1
attack49 174 262 264 55 200 1 1 0 10 20
dropv 0.5 0.2 0
frame data/chars/misc/andamio20.png
attack 0 0 0 0
frame data/chars/misc/andamio21.png
delay 10
frame data/chars/misc/andamio21.png
frame data/chars/misc/andamio21.png
frame data/chars/misc/andamio21.png
frame data/chars/misc/andamio21.png
frame data/chars/misc/andamio21.png
frame data/chars/misc/andamio21.png
anim death
loop 1
delay 100
nodieblink 3
offset 102 315
frame data/chars/misc/andamio21.png