Improved melee defense and attack animations for general.

Bugs regarding offset are present in this revision, not sure if it's
the C++ or the WML.
This commit is contained in:
Richard Kettering 2007-08-07 05:46:13 +00:00
parent 0aebfa4191
commit d853a94545

View file

@ -30,7 +30,7 @@
Special Notes:"+{SPECIAL_NOTES_LEADERSHIP}
die_sound={SOUND_LIST:HUMAN_DIE}
{DEFENSE_ANIM_FILTERED "units/human-loyalists/general-defend.png" "units/human-loyalists/general.png" {SOUND_LIST:HUMAN_HIT} range=melee }
{DEFENSE_ANIM_FILTERED "units/human-loyalists/general-defend-2.png" "units/human-loyalists/general-defend-1.png" {SOUND_LIST:HUMAN_HIT} range=melee }
{DEFENSE_ANIM_FILTERED "units/human-loyalists/general-crossbow-defend.png" "units/human-loyalists/general-attack-crossbow.png" {SOUND_LIST:HUMAN_HIT} range=ranged }
[resistance]
blade=90
@ -50,42 +50,78 @@ Special Notes:"+{SPECIAL_NOTES_LEADERSHIP}
number=4
[animation]
[frame]
begin=-200
end=-175
begin=-300
end=-275
image="units/human-loyalists/general.png"
offset=0.0~0.05
[/frame]
[frame]
begin=-175
end=-100
image="units/human-loyalists/general-defend.png"
begin=-275
end=-235
image="units/human-loyalists/general-defend-1.png"
offset=0.05~0.1
[/frame]
[frame]
begin=-235
end=-200
image="units/human-loyalists/general-defend-2.png"
offset=0.1~0.15
[/frame]
[frame]
begin=-200
end=-100
image="units/human-loyalists/general-attack-sword1.png"
offset=0.15~0.35
[/frame]
[if]
hits=yes
[frame]
begin=-100
end=50
image="units/human-loyalists/general-attack-sword1.png"
end=-25
image="units/human-loyalists/general-attack-sword2.png"
sound={SOUND_LIST:SWORD_SWISH}
offset=0.35~0.45
[/frame]
[/if]
[else]
hits=no
[frame]
begin=-100
end=50
image="units/human-loyalists/general-attack-sword1.png"
end=-25
image="units/human-loyalists/general-attack-sword2.png"
sound={SOUND_LIST:MISS}
offset=0.35~0.45
[/frame]
[/else]
[frame]
begin=50
end=150
image="units/human-loyalists/general-attack-sword2.png"
[/frame]
[frame]
begin=-25
end=75
image="units/human-loyalists/general-attack-sword3.png"
offset=0.45~0.5
[/frame]
[frame]
begin=75
end=95
image="units/human-loyalists/general-attack-sword4.png"
offset=0.5
[/frame]
[frame]
begin=95
end=125
image="units/human-loyalists/general-attack-sword4.png"
offset=0.5~0.4
[/frame]
[frame]
begin=125
end=200
image="units/human-loyalists/general-attack-sword5.png"
offset=0.4~0.2
[/frame]
[frame]
begin=150
end=175
end=225
image="units/human-loyalists/general.png"
offset=0.2~0.0
[/frame]
[/animation]
[/attack]