mail[Wesnoth-commits] r28361 - /trunk/data/core/macros/animation-utils.cfg


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by kettering . richard on August 07, 2008 - 07:42:
Author: jetryl
Date: Thu Aug  7 06:47:55 2008
New Revision: 28361

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28361&view=rev
Log:
Updated muzzle flare scripting to include misfire sparks.

Modified:
    trunk/data/core/macros/animation-utils.cfg

Modified: trunk/data/core/macros/animation-utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/macros/animation-utils.cfg?rev=28361&r1=28360&r2=28361&view=diff
==============================================================================
--- trunk/data/core/macros/animation-utils.cfg (original)
+++ trunk/data/core/macros/animation-utils.cfg Thu Aug  7 06:47:55 2008
@@ -1335,168 +1335,193 @@
 #enddef
 
 #define MISSILE_FRAME_MUZZLE_FLARE
-    missile_start_time=-250
-    missile_offset=0.3~0.5
-
-    [if]
-        direction=n
-
-        [missile_frame]
-            duration=100
-            halo="projectiles/muzzle-flash-n-1.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=80
-            halo="projectiles/muzzle-flash-n-2.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=70
-            halo="projectiles/muzzle-flash-n-3.png"
-        [/missile_frame]
-    [/if]
-    [else]
-        direction=ne,nw
-
-        [missile_frame]
-            duration=100
-            halo="projectiles/muzzle-flash-ne-1.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=80
-            halo="projectiles/muzzle-flash-ne-2.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=70
-            halo="projectiles/muzzle-flash-ne-3.png"
-        [/missile_frame]
-    [/else]
-    [else]
-        direction=se,sw
-
-        [missile_frame]
-            duration=100
-            halo="projectiles/muzzle-flash-ne-1.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=80
-            halo="projectiles/muzzle-flash-ne-2.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=70
-            halo="projectiles/muzzle-flash-ne-3.png"
-        [/missile_frame]
-    [/else]
-    [else]
-        direction=s
-
-        [missile_frame]
-            duration=100
-            halo="projectiles/muzzle-flash-n-1.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=80
-            halo="projectiles/muzzle-flash-n-2.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=70
-            halo="projectiles/muzzle-flash-n-3.png"
-        [/missile_frame]
-    [/else]
-
-    [if]
-        direction=n,ne,nw
-
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-4.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-5.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-6.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-7.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-8.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-9.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-10.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-11.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-12.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-13.png"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-14.png"
-        [/missile_frame]
-    [/if]
-    [else]
-        direction=s,se,sw
-
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-4.png~FL(vert)"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-5.png~FL(vert)"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-6.png~FL(vert)"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-7.png~FL(vert)"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-8.png~FL(vert)"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-9.png~FL(vert)"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-10.png~FL(vert)"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-11.png~FL(vert)"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-12.png~FL(vert)"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-13.png~FL(vert)"
-        [/missile_frame]
-        [missile_frame]
-            duration=60
-            halo="projectiles/muzzle-flash-14.png~FL(vert)"
-        [/missile_frame]
-    [/else]
-#enddef
+           missile_start_time=-250
+[if]
+       hits = no
+       
+               missile_offset=0.1
+               [missile_frame]
+                       duration=100
+                       halo="projectiles/misfire-spark-1.png"
+               [/missile_frame]
+               [missile_frame]
+                       duration=100
+                       halo="projectiles/misfire-spark-2.png"
+               [/missile_frame]
+               [missile_frame]
+                       duration=100
+                       halo="projectiles/misfire-spark-3.png"
+               [/missile_frame]
+               [missile_frame]
+                       duration=100
+                       halo="projectiles/misfire-spark-4.png"
+               [/missile_frame]
+[/if]
+
+[if]
+       hits = yes
+       missile_offset=0.5~1.1:250,1.1~1.5:200,1.5~1.7:360
+[/if]
+[else]
+       direction=n
+       hits = yes
+        [missile_frame]
+                       duration=100
+                       halo="muzzle-flash-n-1.png"
+        [/missile_frame]
+        [missile_frame]
+                       duration=80
+                       halo="muzzle-flash-n-2.png"
+        [/missile_frame]
+        [missile_frame]
+                       duration=70
+                       halo="muzzle-flash-n-3.png"
+        [/missile_frame]
+[/else]
+[else]
+       direction=ne,nw
+       hits = yes
+        [missile_frame]
+                       duration=100
+                       halo="muzzle-flash-ne-1.png"
+        [/missile_frame]
+        [missile_frame]
+                       duration=80
+                       halo="muzzle-flash-ne-2.png"
+        [/missile_frame]
+        [missile_frame]
+                       duration=70
+                       halo="muzzle-flash-ne-3.png"
+        [/missile_frame]
+[/else]
+[else]
+       direction=se,sw
+       hits = yes
+        [missile_frame]
+                       duration=100
+                       halo="muzzle-flash-se-1.png"
+        [/missile_frame]
+        [missile_frame]
+                       duration=80
+                       halo="muzzle-flash-se-2.png"
+        [/missile_frame]
+        [missile_frame]
+                       duration=70
+                       halo="muzzle-flash-se-3.png"
+        [/missile_frame]
+[/else]
+[else]
+       direction=s
+       hits = yes
+        [missile_frame]
+                       duration=100
+                       halo="muzzle-flash-s-1.png"
+        [/missile_frame]
+        [missile_frame]
+                       duration=80
+                       halo="muzzle-flash-s-2.png"
+        [/missile_frame]
+        [missile_frame]
+                       duration=70
+                       halo="muzzle-flash-s-3.png"
+        [/missile_frame]
+[/else]
+
+[if]
+       direction=n,ne,nw
+       hits = yes
+        [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-4.png"
+        [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-5.png"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-6.png"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-7.png"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-8.png"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-9.png"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-10.png"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-11.png"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-12.png"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-13.png"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-14.png"
+               [/missile_frame]
+[/if]
+[else]
+       direction=s,se,sw
+       hits = yes
+       [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-4.png~FL(vert)"
+        [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-5.png~FL(vert)"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-6.png~FL(vert)"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-7.png~FL(vert)"
+                       offset=1.55
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-8.png~FL(vert)"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-9.png~FL(vert)"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-10.png~FL(vert)"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-11.png~FL(vert)"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-12.png~FL(vert)"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-13.png~FL(vert)"
+               [/missile_frame]
+               [missile_frame]
+                       duration=60
+                       halo="muzzle-flash-14.png~FL(vert)"
+               [/missile_frame]
+[/else]
+#enddef




Related Messages


Powered by MHonArc, Updated Thu Aug 07 08:41:00 2008