Applied patch #1157 with little modifications...

...(made the units lacking the variation-specific frames use the
variation-independent part of the animation).
This commit is contained in:
Lari Nieminen 2009-04-12 16:18:42 +00:00
parent 219bc637f0
commit bd1f391c41
2 changed files with 149 additions and 3 deletions

View file

@ -35,6 +35,79 @@
[/attack]
#enddef
#macro to define most of the graphical part of Walking Corpse
#define UNIT_BODY_SOULLESS_GRAPHICS_NO_DEATH_ANIM BASE_IMAGESTEM
image="units/undead/{BASE_IMAGESTEM}.png"
{MAGENTA_IS_THE_TEAM_COLOR}
die_sound={SOUND_LIST:ZOMBIE_HIT}
{DEFENSE_ANIM "units/undead/{BASE_IMAGESTEM}-defend.png" "units/undead/{BASE_IMAGESTEM}.png" {SOUND_LIST:ZOMBIE_HIT} }
[death]
start_time=0
[frame]
duration=150
image="units/undead/soulless-die-4.png"
[/frame]
[frame]
duration=150
image="units/undead/soulless-die-5.png"
[/frame]
[frame]
duration=150
image="units/undead/soulless-die-6.png"
[/frame]
[frame]
duration=150
image="units/undead/soulless-die-7.png"
[/frame]
[frame]
duration=150
image="units/undead/soulless-die-8.png"
[/frame]
[frame]
duration=150
image="units/undead/soulless-die-9.png"
[/frame]
[frame]
duration=150
image="units/undead/soulless-die-10.png"
[/frame]
[/death]
[attack_anim]
[filter_attack]
name=touch
[/filter_attack]
direction=s
[frame]
begin=-200
end=200
image="units/undead/{BASE_IMAGESTEM}-attack-s.png"
sound=zombie-attack.wav
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=touch
[/filter_attack]
direction=n
[frame]
begin=-200
end=200
image="units/undead/{BASE_IMAGESTEM}-attack-n.png"
sound=zombie-attack.wav
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=touch
[/filter_attack]
direction=se,sw,ne,nw
[frame]
begin=-200
end=200
image="units/undead/{BASE_IMAGESTEM}-attack.png"
sound=zombie-attack.wav
[/frame]
[/attack_anim]
#enddef
#define UNIT_BODY_SOULLESS_GRAPHICS BASE_IMAGESTEM
image="units/undead/{BASE_IMAGESTEM}.png"
{MAGENTA_IS_THE_TEAM_COLOR}
@ -128,7 +201,7 @@
[variation]
variation_name=drake
{UNIT_BODY_SOULLESS_STATS drakefoot 4 36}
{UNIT_BODY_SOULLESS_GRAPHICS soulless-drake}
{UNIT_BODY_SOULLESS_GRAPHICS_NO_DEATH_ANIM soulless-drake}
[movement_costs]
deep_water=4
[/movement_costs]

View file

@ -34,6 +34,79 @@
[/attack]
#enddef
#macro to define most of the graphical part of Walking Corpse
#define UNIT_BODY_WALKING_CORPSE_GRAPHICS_NO_DEATH_ANIM BASE_IMAGESTEM
image="units/undead/{BASE_IMAGESTEM}.png"
{MAGENTA_IS_THE_TEAM_COLOR}
die_sound={SOUND_LIST:ZOMBIE_WEAK_HIT}
{DEFENSE_ANIM "units/undead/{BASE_IMAGESTEM}-defend.png" "units/undead/{BASE_IMAGESTEM}.png" {SOUND_LIST:ZOMBIE_WEAK_HIT} }
[death]
start_time=0
[frame]
duration=150
image="units/undead/soulless-die-4.png"
[/frame]
[frame]
duration=150
image="units/undead/soulless-die-5.png"
[/frame]
[frame]
duration=150
image="units/undead/soulless-die-6.png"
[/frame]
[frame]
duration=150
image="units/undead/soulless-die-7.png"
[/frame]
[frame]
duration=150
image="units/undead/soulless-die-8.png"
[/frame]
[frame]
duration=150
image="units/undead/soulless-die-9.png"
[/frame]
[frame]
duration=150
image="units/undead/soulless-die-10.png"
[/frame]
[/death]
[attack_anim]
[filter_attack]
name=touch
[/filter_attack]
direction=s
[frame]
begin=-200
end=200
image="units/undead/{BASE_IMAGESTEM}-attack-s.png"
sound=zombie-attack.wav
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=touch
[/filter_attack]
direction=n
[frame]
begin=-200
end=200
image="units/undead/{BASE_IMAGESTEM}-attack-n.png"
sound=zombie-attack.wav
[/frame]
[/attack_anim]
[attack_anim]
[filter_attack]
name=touch
[/filter_attack]
direction=se,sw,ne,nw
[frame]
begin=-200
end=200
image="units/undead/{BASE_IMAGESTEM}-attack.png"
sound=zombie-attack.wav
[/frame]
[/attack_anim]
#enddef
#define UNIT_BODY_WALKING_CORPSE_GRAPHICS BASE_IMAGESTEM
image="units/undead/{BASE_IMAGESTEM}.png"
{MAGENTA_IS_THE_TEAM_COLOR}
@ -126,7 +199,7 @@
[/movement_costs]
[variation]
variation_name=drake
{UNIT_BODY_WALKING_CORPSE_GRAPHICS zombie-drake}
{UNIT_BODY_WALKING_CORPSE_GRAPHICS_NO_DEATH_ANIM zombie-drake}
{UNIT_BODY_WALKING_CORPSE_STATS drakefoot 4 23}
[movement_costs]
deep_water=4
@ -150,7 +223,7 @@
[/variation]
[variation]
variation_name=mounted
{UNIT_BODY_WALKING_CORPSE_GRAPHICS zombie-mounted}
{UNIT_BODY_WALKING_CORPSE_GRAPHICS_NO_DEATH_ANIM zombie-mounted}
{UNIT_BODY_WALKING_CORPSE_STATS mounted 5 21}
[movement_costs]
deep_water=4