New simple macro for giving drakes a different standing frame on water,

...chasm etc., wired into the glider.
This commit is contained in:
Lari Nieminen 2009-01-02 13:04:58 +00:00
parent f7255e91ed
commit e6a7bc5600
2 changed files with 25 additions and 0 deletions

View file

@ -365,6 +365,30 @@
[/filter]
#enddef
#define DRAKE_FLYING_ANIM STANDING_FRAME FLYING_FRAME
[standing_anim]
start_time=0
terrain=!,W*,Qx*,Ql*
[frame]
duration=150
image={STANDING_FRAME}
[/frame]
[/standing_anim]
[standing_anim]
start_time=0
[filter]
[filter_location]
terrain=W*,Qx*,Ql*
[/filter_location]
[/filter]
[frame]
duration=150
image={FLYING_FRAME}
[/frame]
[/standing_anim]
#enddef
#define MISSILE_FRAME_WAIL
# Animate a projectile for a wail attack.
[if]

View file

@ -21,6 +21,7 @@
die_sound=drake-die.ogg
{DEFENSE_ANIM "units/drakes/glider-defend.png" "units/drakes/glider.png" {SOUND_LIST:DRAKE_HIT} }
{DRAKE_FLYING_ANIM "units/drakes/glider.png" "units/drakes/glider-flying.png"}
[movement_anim]
[frame]
begin=0