animation-utils: Use auto_vflip=false
Several animations used a workaround by flipping the missile twice if it should remain upright. Instead, we never flip them in the first place.
This commit is contained in:
parent
dfdd347c07
commit
9d950c8f4c
1 changed files with 24 additions and 65 deletions
|
@ -296,23 +296,11 @@
|
|||
# Animate a beam of light coming down from the heavens.
|
||||
|
||||
missile_start_time=-245
|
||||
|
||||
[if]
|
||||
direction=n,ne,nw
|
||||
|
||||
[missile_frame]
|
||||
halo="halo/holy/light-beam-[1~7,6~1].png:[30*6,130,70*6]"
|
||||
offset=1.0
|
||||
[/missile_frame]
|
||||
[/if]
|
||||
[else]
|
||||
direction=s,se,sw
|
||||
|
||||
[missile_frame]
|
||||
halo="halo/holy/light-beam-[1~7,6~1].png~FL(vert):[30*6,130,70*6]"
|
||||
offset=1.0
|
||||
[/missile_frame]
|
||||
[/else]
|
||||
[missile_frame]
|
||||
halo="halo/holy/light-beam-[1~7,6~1].png:[30*6,130,70*6]"
|
||||
offset=1.0
|
||||
auto_vflip=false
|
||||
[/missile_frame]
|
||||
#enddef
|
||||
|
||||
#define MISSILE_FRAME_FIRE_BREATH N_OFFSET_POSITION S_OFFSET_POSITION N_DIAGONAL_OFFSET_POSITION S_DIAGONAL_OFFSET_POSITION
|
||||
|
@ -456,7 +444,6 @@
|
|||
# Animate a projectile for a fireball attack with an X and Y start offset from centre of hex.
|
||||
missile_start_time=-350
|
||||
[if]
|
||||
direction=n,ne,nw
|
||||
hits=yes
|
||||
|
||||
[missile_frame]
|
||||
|
@ -469,26 +456,10 @@
|
|||
[missile_frame]
|
||||
halo="projectiles/fireball-impact-[1~16].png:60"
|
||||
offset=1.0
|
||||
auto_vflip=false
|
||||
[/missile_frame]
|
||||
[/if]
|
||||
[else]
|
||||
direction=s,se,sw
|
||||
hits=yes
|
||||
|
||||
[missile_frame]
|
||||
image="projectiles/fireball-n-1.png~SCALE(60,60)~O(60%):40,projectiles/fireball-n-2.png~SCALE(80,80)~O(80%):100,projectiles/fireball-[n,n-2,n-1].png:[125,55,30]"
|
||||
image_diagonal="projectiles/fireball-nw-1.png~SCALE(60,60)~O(60%):40,projectiles/fireball-nw-2.png~SCALE(80,80)~O(80%):100,projectiles/fireball-[nw,nw-2,nw-1].png:[125,55,30]"
|
||||
offset=0.0~0.1,0.1~0.9
|
||||
directional_x={OFFSET_X}~0
|
||||
y={OFFSET_Y}~0
|
||||
[/missile_frame]
|
||||
[missile_frame]
|
||||
halo="projectiles/fireball-impact-[1~16].png~FL(vert):60"
|
||||
offset=1.0
|
||||
[/missile_frame]
|
||||
[/else]
|
||||
[else]
|
||||
direction=n,ne,nw
|
||||
hits=no
|
||||
|
||||
missile_offset=0.0~0.20,0.20~0.35,0.35~0.40,0.4~0.45
|
||||
|
@ -496,26 +467,16 @@
|
|||
halo="projectiles/fireball-fail-[1~7].png:100"
|
||||
halo_x={OFFSET_X}~0
|
||||
halo_y={OFFSET_Y}~0
|
||||
[/missile_frame]
|
||||
[/else]
|
||||
[else]
|
||||
direction=s,se,sw
|
||||
hits=no
|
||||
|
||||
missile_offset=0.0~0.20,0.20~0.35,0.35~0.40,0.4~0.45
|
||||
[missile_frame]
|
||||
halo="projectiles/fireball-fail-[1~7].png~FL(vert):100"
|
||||
halo_x={OFFSET_X}~0
|
||||
halo_y={OFFSET_Y}~0
|
||||
auto_vflip=false
|
||||
[/missile_frame]
|
||||
[/else]
|
||||
#enddef
|
||||
|
||||
#define HALO_FRAME_SAURIAN
|
||||
halo_auto_vflip=false
|
||||
[halo_frame]
|
||||
duration=420
|
||||
halo=halo/saurian-magic-halo-[1~7].png:60
|
||||
auto_vflip=false
|
||||
[/halo_frame]
|
||||
#enddef
|
||||
|
||||
|
@ -571,24 +532,12 @@
|
|||
|
||||
#define LIGHTNING_BOLT DIRECTION_NUMBER
|
||||
missile_start_time=-250
|
||||
[if]
|
||||
direction=sw,s,se
|
||||
|
||||
[missile_frame]
|
||||
halo=halo/lightning-bolt-{DIRECTION_NUMBER}-[1~4].png~FL(vert):100
|
||||
halo_y=-125
|
||||
offset=1.0
|
||||
[/missile_frame]
|
||||
[/if]
|
||||
[else]
|
||||
direction=nw,n,ne
|
||||
|
||||
[missile_frame]
|
||||
halo=halo/lightning-bolt-{DIRECTION_NUMBER}-[1~4].png:100
|
||||
halo_y=-125
|
||||
offset=1.0
|
||||
[/missile_frame]
|
||||
[/else]
|
||||
[missile_frame]
|
||||
halo=halo/lightning-bolt-{DIRECTION_NUMBER}-[1~4].png:100
|
||||
halo_y=-125
|
||||
offset=1.0
|
||||
auto_vflip=false
|
||||
[/missile_frame]
|
||||
#enddef
|
||||
|
||||
#define MAGIC_MISSILE OFFSET_X OFFSET_Y
|
||||
|
@ -958,6 +907,7 @@
|
|||
halo_x={OFFSET_X}~0:300,0
|
||||
halo_y={OFFSET_Y}~0:300,0
|
||||
offset=0.0~1.0:300,1.0~1.25:200
|
||||
auto_vflip=false
|
||||
[/flame_trail_1_frame]
|
||||
[flame_trail_2_frame]
|
||||
duration=500
|
||||
|
@ -965,6 +915,7 @@
|
|||
halo_x={OFFSET_X}~0:300,0
|
||||
halo_y={OFFSET_Y}~0:300,0
|
||||
offset=0.0~1.0:300,1.0~1.20:200
|
||||
auto_vflip=false
|
||||
[/flame_trail_2_frame]
|
||||
[flame_trail_3_frame]
|
||||
duration=500
|
||||
|
@ -972,6 +923,7 @@
|
|||
halo_x={OFFSET_X}~0:300,0
|
||||
halo_y={OFFSET_Y}~0:300,0
|
||||
offset=0.0~1.0:300,1.0~1.15:200
|
||||
auto_vflip=false
|
||||
[/flame_trail_3_frame]
|
||||
[flame_trail_4_frame]
|
||||
duration=500
|
||||
|
@ -979,6 +931,7 @@
|
|||
halo_x={OFFSET_X}~0:300,0
|
||||
halo_y={OFFSET_Y}~0:300,0
|
||||
offset=0.0~1.0:300,1.0~1.10:200
|
||||
auto_vflip=false
|
||||
[/flame_trail_4_frame]
|
||||
[flame_trail_5_frame]
|
||||
duration=500
|
||||
|
@ -986,6 +939,7 @@
|
|||
halo_x={OFFSET_X}~0:300,0
|
||||
halo_y={OFFSET_Y}~0:300,0
|
||||
offset=0.0~1.0:300,1.0~1.05:200
|
||||
auto_vflip=false
|
||||
[/flame_trail_5_frame]
|
||||
|
||||
start_time=-900
|
||||
|
@ -1018,6 +972,7 @@
|
|||
halo_x={OFFSET_X}~0:300,0
|
||||
halo_y={OFFSET_Y}~0:300,0
|
||||
offset=0.0~1.0:300,1.0~1.5:200
|
||||
auto_vflip=false
|
||||
[/flame_trail_1_frame]
|
||||
[flame_trail_2_frame]
|
||||
duration=500
|
||||
|
@ -1025,6 +980,7 @@
|
|||
halo_x={OFFSET_X}~0:300,0
|
||||
halo_y={OFFSET_Y}~0:300,0
|
||||
offset=0.0~1.0:300,1.0~1.4:200
|
||||
auto_vflip=false
|
||||
[/flame_trail_2_frame]
|
||||
[flame_trail_3_frame]
|
||||
duration=500
|
||||
|
@ -1032,6 +988,7 @@
|
|||
halo_x={OFFSET_X}~0:300,0
|
||||
halo_y={OFFSET_Y}~0:300,0
|
||||
offset=0.0~1.0:300,1.0~1.3:200
|
||||
auto_vflip=false
|
||||
[/flame_trail_3_frame]
|
||||
[flame_trail_4_frame]
|
||||
duration=500
|
||||
|
@ -1039,6 +996,7 @@
|
|||
halo_x={OFFSET_X}~0:300,0
|
||||
halo_y={OFFSET_Y}~0:300,0
|
||||
offset=0.0~1.0:300,1.0~1.2:200
|
||||
auto_vflip=false
|
||||
[/flame_trail_4_frame]
|
||||
[flame_trail_5_frame]
|
||||
duration=500
|
||||
|
@ -1046,6 +1004,7 @@
|
|||
halo_x={OFFSET_X}~0:300,0
|
||||
halo_y={OFFSET_Y}~0:300,0
|
||||
offset=0.0~1.0:300,1.0~1.1:200
|
||||
auto_vflip=false
|
||||
[/flame_trail_5_frame]
|
||||
|
||||
start_time=-900
|
||||
|
|
Loading…
Add table
Reference in a new issue