Ignore:
Timestamp:
2010-05-28 07:39:52 (2 years ago)
Author:
kpoole
Message:

Episode 5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/res/data/core/macros/animation-utils.cfg

    r7 r26  
    16711671    [/sling_stone_frame] 
    16721672#enddef 
     1673 
     1674#define DRAKE_UNWALKABLE_TERRAINS 
     1675Wo,Ww,Ww^Vm,Chs,Chw,Ss,Qxu,Ql,Qlf 
     1676#enddef 
     1677 
     1678 
     1679#define DRAKE_STANDING_ANIM DRAKE_NAME 
     1680    [standing_anim] 
     1681        start_time=0 
     1682        [filter] 
     1683            [filter_location] 
     1684                terrain=!,W*,Qx*,Ql* 
     1685                [or] 
     1686                    terrain=Wwf,Wwr,*^V* 
     1687                [/or] 
     1688            [/filter_location] 
     1689        [/filter] 
     1690        [frame] 
     1691            image="units/drakes/{DRAKE_NAME}.png" 
     1692            duration=50 
     1693        [/frame] 
     1694    [/standing_anim] 
     1695    [standing_anim] 
     1696        start_time=0 
     1697        layer=60 
     1698        submerge=0.01 
     1699        [filter] 
     1700            [filter_location] 
     1701                terrain=W*,Qx*,Ql* 
     1702                [not] 
     1703                    terrain=Wwf,Wwr,*^V* 
     1704                [/not] 
     1705            [/filter_location] 
     1706        [/filter] 
     1707        [frame] 
     1708            duration=100 
     1709            image="units/drakes/{DRAKE_NAME}-fly-1.png" 
     1710        [/frame] 
     1711        [frame] 
     1712            duration=100 
     1713            image="units/drakes/{DRAKE_NAME}-fly-2.png" 
     1714        [/frame] 
     1715        [frame] 
     1716            duration=100 
     1717            image="units/drakes/{DRAKE_NAME}-fly-3.png" 
     1718        [/frame] 
     1719        [frame] 
     1720            duration=100 
     1721            image="units/drakes/{DRAKE_NAME}-fly-4.png" 
     1722        [/frame] 
     1723        [frame] 
     1724            duration=100 
     1725            image="units/drakes/{DRAKE_NAME}-fly-5.png" 
     1726        [/frame] 
     1727        [frame] 
     1728            duration=100 
     1729            image="units/drakes/{DRAKE_NAME}-fly-4.png" 
     1730        [/frame] 
     1731        [frame] 
     1732            duration=100 
     1733            image="units/drakes/{DRAKE_NAME}-fly-3-upstroke.png" 
     1734        [/frame] 
     1735        [frame] 
     1736            duration=100 
     1737            image="units/drakes/{DRAKE_NAME}-fly-2-upstroke.png" 
     1738        [/frame] 
     1739    [/standing_anim] 
     1740#    [pre_movement_anim] 
     1741#        start_time=0 
     1742#        terrain_type=!,{DRAKE_UNWALKABLE_TERRAINS} 
     1743#        [frame] 
     1744#            duration=50 
     1745#            image="units/drakes/{DRAKE_NAME}-takeoff-1.png" 
     1746#        [/frame] 
     1747#        [frame] 
     1748#            duration=50 
     1749#            image="units/drakes/{DRAKE_NAME}-takeoff-2.png" 
     1750#        [/frame] 
     1751#        [frame] 
     1752#            duration=50 
     1753#            image="units/drakes/{DRAKE_NAME}-takeoff-3.png" 
     1754#        [/frame] 
     1755#        [frame] 
     1756#            duration=50 
     1757#            image="units/drakes/{DRAKE_NAME}-takeoff-4.png" 
     1758#        [/frame] 
     1759#    [/pre_movement_anim] 
     1760    [movement_anim] 
     1761        start_time=0 
     1762        submerge=0.01 
     1763        [frame] 
     1764            duration=100 
     1765            image="units/drakes/{DRAKE_NAME}-fly-1.png" 
     1766        [/frame] 
     1767        [frame] 
     1768            duration=100 
     1769            image="units/drakes/{DRAKE_NAME}-fly-2.png" 
     1770        [/frame] 
     1771        [frame] 
     1772            duration=100 
     1773            image="units/drakes/{DRAKE_NAME}-fly-3.png" 
     1774        [/frame] 
     1775        [frame] 
     1776            duration=100 
     1777            image="units/drakes/{DRAKE_NAME}-fly-4.png" 
     1778        [/frame] 
     1779        [frame] 
     1780            duration=100 
     1781            image="units/drakes/{DRAKE_NAME}-fly-5.png" 
     1782        [/frame] 
     1783        [frame] 
     1784            duration=100 
     1785            image="units/drakes/{DRAKE_NAME}-fly-4.png" 
     1786        [/frame] 
     1787        [frame] 
     1788            duration=100 
     1789            image="units/drakes/{DRAKE_NAME}-fly-3-upstroke.png" 
     1790        [/frame] 
     1791        [frame] 
     1792            duration=100 
     1793            image="units/drakes/{DRAKE_NAME}-fly-2-upstroke.png" 
     1794        [/frame] 
     1795    [/movement_anim] 
     1796#    [post_movement_anim] 
     1797#        terrain_type=!,{DRAKE_UNWALKABLE_TERRAINS} 
     1798#        start_time=0 
     1799#        [frame] 
     1800#            duration=100 
     1801#            image="units/drakes/{DRAKE_NAME}-takeoff-4.png" 
     1802#        [/frame] 
     1803#        [frame] 
     1804#            duration=100 
     1805#            image="units/drakes/{DRAKE_NAME}-takeoff-3.png" 
     1806#        [/frame] 
     1807#        [frame] 
     1808#            duration=100 
     1809#            image="units/drakes/{DRAKE_NAME}-takeoff-2.png" 
     1810#        [/frame] 
     1811#        [frame] 
     1812#            duration=100 
     1813#            image="units/drakes/{DRAKE_NAME}-takeoff-1.png" 
     1814#        [/frame] 
     1815#    [/post_movement_anim] 
     1816#enddef 
     1817 
     1818#define DRAKE_FIRE_ANIM_S_DIAGONAL DRAKE_NAME OFFSET 
     1819    [attack_anim] 
     1820        [filter_attack] 
     1821            name=fire breath 
     1822        [/filter_attack] 
     1823        direction=se,sw 
     1824        [missile_frame] 
     1825            begin=-400 
     1826            end=100 
     1827            halo=projectiles/fire-breath-se-1.png:80,projectiles/fire-breath-se-2.png:80,projectiles/fire-breath-se-3.png:80,projectiles/fire-breath-se-4.png:80,projectiles/fire-breath-se-5.png:80 
     1828            halo_x,halo_y={OFFSET} 
     1829        [/missile_frame] 
     1830        start_time=-900 
     1831        [if] 
     1832            hits=no 
     1833 
     1834            [frame] 
     1835                duration=20 
     1836                image="units/drakes/{DRAKE_NAME}.png" 
     1837                sound=flame-big-miss.ogg 
     1838            [/frame] 
     1839        [/if] 
     1840        [else] 
     1841            hits=yes 
     1842 
     1843            [frame] 
     1844                duration=20 
     1845                image="units/drakes/{DRAKE_NAME}.png" 
     1846                sound=flame-big.ogg 
     1847            [/frame] 
     1848        [/else] 
     1849        [frame] 
     1850            duration=100 
     1851            image="units/drakes/{DRAKE_NAME}-fire-inhale-1.png" 
     1852        [/frame] 
     1853        [frame] 
     1854            duration=100 
     1855            image="units/drakes/{DRAKE_NAME}-fire-inhale-2.png" 
     1856        [/frame] 
     1857        [frame] 
     1858            duration=100 
     1859            image="units/drakes/{DRAKE_NAME}-fire-inhale-3.png" 
     1860        [/frame] 
     1861        [frame] 
     1862            duration=100 
     1863            image="units/drakes/{DRAKE_NAME}-fire-inhale-4.png" 
     1864        [/frame] 
     1865        [frame] 
     1866            duration=100 
     1867            image="units/drakes/{DRAKE_NAME}-fire-inhale-2.png" 
     1868        [/frame] 
     1869        [frame] 
     1870            duration=100 
     1871            image="units/drakes/{DRAKE_NAME}-fire-se-1.png" 
     1872        [/frame] 
     1873        [frame] 
     1874            duration=100 
     1875            image="units/drakes/{DRAKE_NAME}-fire-se-2.png" 
     1876        [/frame] 
     1877        [frame] 
     1878            duration=100 
     1879            image="units/drakes/{DRAKE_NAME}-fire-se-3.png" 
     1880        [/frame] 
     1881        [frame] 
     1882            duration=100 
     1883            image="units/drakes/{DRAKE_NAME}-fire-se-2.png" 
     1884        [/frame] 
     1885        [frame] 
     1886            duration=100 
     1887            image="units/drakes/{DRAKE_NAME}-fire-se-1.png" 
     1888        [/frame] 
     1889    [/attack_anim] 
     1890#enddef 
     1891 
     1892#define DRAKE_FIRE_ANIM_N_DIAGONAL_CURRENT DRAKE_NAME OFFSET 
     1893    [attack_anim] 
     1894        [filter_attack] 
     1895            name=fire breath 
     1896        [/filter_attack] 
     1897        direction=ne,nw 
     1898        [missile_frame] 
     1899            begin=-400 
     1900            end=100 
     1901            halo=projectiles/fire-breath-ne-1.png:80,projectiles/fire-breath-ne-2.png:80,projectiles/fire-breath-ne-3.png:80,projectiles/fire-breath-ne-4.png:80,projectiles/fire-breath-ne-5.png:80 
     1902            halo_x,halo_y={OFFSET} 
     1903        [/missile_frame] 
     1904        start_time=-900 
     1905        [if] 
     1906            hits=no 
     1907 
     1908            [frame] 
     1909                duration=20 
     1910                image="units/drakes/{DRAKE_NAME}.png" 
     1911                sound=flame-big-miss.ogg 
     1912            [/frame] 
     1913        [/if] 
     1914        [else] 
     1915            hits=yes 
     1916 
     1917            [frame] 
     1918                duration=20 
     1919                image="units/drakes/{DRAKE_NAME}.png" 
     1920                sound=flame-big.ogg 
     1921            [/frame] 
     1922        [/else] 
     1923        [frame] 
     1924            duration=100 
     1925            image="units/drakes/{DRAKE_NAME}-fire-inhale-1.png" 
     1926        [/frame] 
     1927        [frame] 
     1928            duration=100 
     1929            image="units/drakes/{DRAKE_NAME}-fire-inhale-2.png" 
     1930        [/frame] 
     1931        [frame] 
     1932            duration=100 
     1933            image="units/drakes/{DRAKE_NAME}-fire-inhale-3.png" 
     1934        [/frame] 
     1935        [frame] 
     1936            duration=100 
     1937            image="units/drakes/{DRAKE_NAME}-fire-inhale-4.png" 
     1938        [/frame] 
     1939        [frame] 
     1940            duration=100 
     1941            image="units/drakes/{DRAKE_NAME}-fire-inhale-2.png" 
     1942        [/frame] 
     1943        [frame] 
     1944            duration=100 
     1945            image="units/drakes/{DRAKE_NAME}-fire-se-1.png" 
     1946        [/frame] 
     1947        [frame] 
     1948            duration=100 
     1949            image="units/drakes/{DRAKE_NAME}-fire-se-2.png" 
     1950        [/frame] 
     1951        [frame] 
     1952            duration=100 
     1953            image="units/drakes/{DRAKE_NAME}-fire-se-3.png" 
     1954        [/frame] 
     1955        [frame] 
     1956            duration=100 
     1957            image="units/drakes/{DRAKE_NAME}-fire-se-2.png" 
     1958        [/frame] 
     1959        [frame] 
     1960            duration=100 
     1961            image="units/drakes/{DRAKE_NAME}-fire-se-1.png" 
     1962        [/frame] 
     1963    [/attack_anim] 
     1964#enddef 
     1965 
     1966#define DRAKE_FIRE_ANIM_S DRAKE_NAME OFFSET 
     1967    [attack_anim] 
     1968        [filter_attack] 
     1969            name=fire breath 
     1970        [/filter_attack] 
     1971        direction=s 
     1972        [missile_frame] 
     1973            begin=-400 
     1974            end=100 
     1975            halo=projectiles/fire-breath-s-1.png:80,projectiles/fire-breath-s-2.png:80,projectiles/fire-breath-s-3.png:80,projectiles/fire-breath-s-4.png:80,projectiles/fire-breath-s-5.png:80 
     1976            halo_x,halo_y={OFFSET} 
     1977        [/missile_frame] 
     1978        start_time=-900 
     1979        [if] 
     1980            hits=no 
     1981 
     1982            [frame] 
     1983                duration=20 
     1984                image="units/drakes/{DRAKE_NAME}.png" 
     1985                sound=flame-big-miss.ogg 
     1986            [/frame] 
     1987        [/if] 
     1988        [else] 
     1989            hits=yes 
     1990 
     1991            [frame] 
     1992                duration=20 
     1993                image="units/drakes/{DRAKE_NAME}.png" 
     1994                sound=flame-big.ogg 
     1995            [/frame] 
     1996        [/else] 
     1997        [frame] 
     1998            duration=100 
     1999            image="units/drakes/{DRAKE_NAME}-fire-inhale-1.png" 
     2000        [/frame] 
     2001        [frame] 
     2002            duration=100 
     2003            image="units/drakes/{DRAKE_NAME}-fire-inhale-2.png" 
     2004        [/frame] 
     2005        [frame] 
     2006            duration=100 
     2007            image="units/drakes/{DRAKE_NAME}-fire-inhale-3.png" 
     2008        [/frame] 
     2009        [frame] 
     2010            duration=100 
     2011            image="units/drakes/{DRAKE_NAME}-fire-inhale-4.png" 
     2012        [/frame] 
     2013        [frame] 
     2014            duration=100 
     2015            image="units/drakes/{DRAKE_NAME}-fire-inhale-2.png" 
     2016        [/frame] 
     2017        [frame] 
     2018            duration=100 
     2019            image="units/drakes/{DRAKE_NAME}-fire-s-1.png" 
     2020        [/frame] 
     2021        [frame] 
     2022            duration=100 
     2023            image="units/drakes/{DRAKE_NAME}-fire-s-2.png" 
     2024        [/frame] 
     2025        [frame] 
     2026            duration=100 
     2027            image="units/drakes/{DRAKE_NAME}-fire-s-3.png" 
     2028        [/frame] 
     2029        [frame] 
     2030            duration=100 
     2031            image="units/drakes/{DRAKE_NAME}-fire-s-2.png" 
     2032        [/frame] 
     2033        [frame] 
     2034            duration=100 
     2035            image="units/drakes/{DRAKE_NAME}-fire-s-1.png" 
     2036        [/frame] 
     2037    [/attack_anim] 
     2038#enddef 
     2039 
     2040#define DRAKE_FIRE_ANIM_N_CURRENT DRAKE_NAME OFFSET 
     2041    [attack_anim] 
     2042        [filter_attack] 
     2043            name=fire breath 
     2044        [/filter_attack] 
     2045        direction=n 
     2046        [missile_frame] 
     2047            begin=-400 
     2048            end=100 
     2049            halo=projectiles/fire-breath-n-1.png:80,projectiles/fire-breath-n-2.png:80,projectiles/fire-breath-n-3.png:80,projectiles/fire-breath-n-4.png:80,projectiles/fire-breath-n-5.png:80 
     2050            halo_x,halo_y={OFFSET} 
     2051        [/missile_frame] 
     2052        start_time=-900 
     2053        [if] 
     2054            hits=no 
     2055 
     2056            [frame] 
     2057                duration=20 
     2058                image="units/drakes/{DRAKE_NAME}.png" 
     2059                sound=flame-big-miss.ogg 
     2060            [/frame] 
     2061        [/if] 
     2062        [else] 
     2063            hits=yes 
     2064 
     2065            [frame] 
     2066                duration=20 
     2067                image="units/drakes/{DRAKE_NAME}.png" 
     2068                sound=flame-big.ogg 
     2069            [/frame] 
     2070        [/else] 
     2071        [frame] 
     2072            duration=100 
     2073            image="units/drakes/{DRAKE_NAME}-fire-inhale-1.png" 
     2074        [/frame] 
     2075        [frame] 
     2076            duration=100 
     2077            image="units/drakes/{DRAKE_NAME}-fire-inhale-2.png" 
     2078        [/frame] 
     2079        [frame] 
     2080            duration=100 
     2081            image="units/drakes/{DRAKE_NAME}-fire-inhale-3.png" 
     2082        [/frame] 
     2083        [frame] 
     2084            duration=100 
     2085            image="units/drakes/{DRAKE_NAME}-fire-inhale-4.png" 
     2086        [/frame] 
     2087        [frame] 
     2088            duration=100 
     2089            image="units/drakes/{DRAKE_NAME}-fire-inhale-2.png" 
     2090        [/frame] 
     2091        [frame] 
     2092            duration=100 
     2093            image="units/drakes/{DRAKE_NAME}-fire-s-1.png" 
     2094        [/frame] 
     2095        [frame] 
     2096            duration=100 
     2097            image="units/drakes/{DRAKE_NAME}-fire-s-2.png" 
     2098        [/frame] 
     2099        [frame] 
     2100            duration=100 
     2101            image="units/drakes/{DRAKE_NAME}-fire-s-3.png" 
     2102        [/frame] 
     2103        [frame] 
     2104            duration=100 
     2105            image="units/drakes/{DRAKE_NAME}-fire-s-2.png" 
     2106        [/frame] 
     2107        [frame] 
     2108            duration=100 
     2109            image="units/drakes/{DRAKE_NAME}-fire-s-1.png" 
     2110        [/frame] 
     2111    [/attack_anim] 
     2112#enddef 
     2113 
     2114#define DRAKE_MOVEMENT_ANIM DRAKE_NAME 
     2115    [movement_anim] 
     2116        start_time=0 
     2117        [frame] 
     2118            duration=100 
     2119            image="units/drakes/{DRAKE_NAME}-fly-1.png" 
     2120        [/frame] 
     2121        [frame] 
     2122            duration=100 
     2123            image="units/drakes/{DRAKE_NAME}-fly-2.png" 
     2124        [/frame] 
     2125        [frame] 
     2126            duration=100 
     2127            image="units/drakes/{DRAKE_NAME}-fly-3.png" 
     2128        [/frame] 
     2129        [frame] 
     2130            duration=100 
     2131            image="units/drakes/{DRAKE_NAME}-fly-4.png" 
     2132        [/frame] 
     2133        [frame] 
     2134            duration=100 
     2135            image="units/drakes/{DRAKE_NAME}-fly-5.png" 
     2136        [/frame] 
     2137        [frame] 
     2138            duration=100 
     2139            image="units/drakes/{DRAKE_NAME}-fly-4.png" 
     2140        [/frame] 
     2141        [frame] 
     2142            duration=100 
     2143            image="units/drakes/{DRAKE_NAME}-fly-3-upstroke.png" 
     2144        [/frame] 
     2145        [frame] 
     2146            duration=100 
     2147            image="units/drakes/{DRAKE_NAME}-fly-2-upstroke.png" 
     2148        [/frame] 
     2149    [/movement_anim] 
     2150#enddef 
     2151 
     2152#define DRAKE_WEAPON_ANIM DRAKE_NAME 
     2153    [draw_weapon_anim] 
     2154        #landing, only do it when we're not already flying 
     2155        terrain_type={DRAKE_UNWALKABLE_TERRAINS} 
     2156        [frame] 
     2157            duration=100 
     2158            image="units/drakes/{DRAKE_NAME}-takeoff-4.png" 
     2159        [/frame] 
     2160        [frame] 
     2161            duration=100 
     2162            image="units/drakes/{DRAKE_NAME}-takeoff-3.png" 
     2163        [/frame] 
     2164        [frame] 
     2165            duration=100 
     2166            image="units/drakes/{DRAKE_NAME}-takeoff-2.png" 
     2167        [/frame] 
     2168        [frame] 
     2169            duration=100 
     2170            image="units/drakes/{DRAKE_NAME}-takeoff-1.png" 
     2171        [/frame] 
     2172    [/draw_weapon_anim] 
     2173    [sheath_weapon_anim] 
     2174        #landing, only do it when we're not already flying 
     2175        terrain_type={DRAKE_UNWALKABLE_TERRAINS} 
     2176        [frame] 
     2177            duration=100 
     2178            image="units/drakes/{DRAKE_NAME}-takeoff-1.png" 
     2179        [/frame] 
     2180        [frame] 
     2181            duration=100 
     2182            image="units/drakes/{DRAKE_NAME}-takeoff-2.png" 
     2183        [/frame] 
     2184        [frame] 
     2185            duration=100 
     2186            image="units/drakes/{DRAKE_NAME}-takeoff-3.png" 
     2187        [/frame] 
     2188        [frame] 
     2189            duration=100 
     2190            image="units/drakes/{DRAKE_NAME}-takeoff-4.png" 
     2191        [/frame] 
     2192    [/sheath_weapon_anim] 
     2193#enddef 
Note: See TracChangeset for help on using the changeset viewer.