First it need Extended version, then to armor rules you need add script that will alter draw behavior:
armors:
- type: TANK_ARMOR
drawingRoutine: 20
movementType: 1
spriteSheet: FDEAMON.PCK
scripts:
selectUnitSprite: |
var int temp;
var int walking;
var int floating;
unit.isWalking walking;
unit.isFloating floating;
if and eq walking 0 eq floating 1;
unit.getId temp;
offsetmod temp 11 0 8; #desync animation of different units
add temp anim_frame;
wavegen_saw temp 4 4 4;
add sprite_offset 1;
add sprite_offset temp;
add sprite_index sprite_offset;
else;
add sprite_index sprite_offset;
end;
return sprite_index;
Demon will flip wings only when he is in air.