From 8caeefa2ae6d13ce81061a22bff58b402f625161 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 30 Jun 2015 23:51:50 +0200 Subject: [PATCH] sc: bw unit dimensions from bwapi --- sc-units-bw.inc.pl | 52 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/sc-units-bw.inc.pl b/sc-units-bw.inc.pl index ae4689a..7590883 100644 --- a/sc-units-bw.inc.pl +++ b/sc-units-bw.inc.pl @@ -1,11 +1,12 @@ use utf8; use strict; +my $PPT = 32; # tile size in pixels my $FPS = 1000 / 56; # frames per second on fast # energy += 8HP/frame ≈ .74 per second # toss shield += 7HP/frame ≈ .65/s # zerg regen += 4HP/frame ≈ .37/s -my $SM = $FPS / 32; # pixels per frame to tiles per second multiplication +my $SM = $FPS / $PPT; # pixels per frame to tiles per second multiplication [ 'version≥1.08', @@ -20,6 +21,7 @@ min => 50, gas => 0, build => 20, suit => 1, +size => 23 / $PPT, pop => 1, cargo => 1, race => 'protoss', @@ -54,6 +56,7 @@ min => 150, gas => 0, build => 50, suit => 3, +size => 2, # 41x33 race => 'protoss', attr => { structure => 1, @@ -86,6 +89,7 @@ min => 100, gas => 0, build => 40, suit => 1, +size => 23 / $PPT, # x19 pop => 2, cargo => 2, race => 'protoss', @@ -130,6 +134,7 @@ min => 125, gas => 50, build => 50, suit => 3, +size => 32 / $PPT, pop => 2, cargo => 4, race => 'protoss', @@ -179,6 +184,7 @@ min => 50, gas => 150, build => 50, suit => 1, +size => 24 / $PPT, pop => 2, cargo => 2, race => 'protoss', @@ -239,6 +245,7 @@ min => 125, gas => 100, build => 50, suit => 1, +size => 25 / $PPT, # 24x26 pop => 2, cargo => 2, race => 'protoss', @@ -282,6 +289,7 @@ gas => 300, build => 20, base => ['templar', 'templar'], suit => 3, +size => 32 / $PPT, pop => 4, cargo => 4, race => 'protoss', @@ -318,6 +326,7 @@ gas => 200, build => 20, base => ['dark templar', 'dark templar'], suit => 3, +size => 32 / $PPT, pop => 4, cargo => 4, race => 'protoss', @@ -385,6 +394,7 @@ min => 275, gas => 125, build => 80, suit => 3, +size => 36 / $PPT, # x32 pop => 3, race => 'protoss', attr => { @@ -442,6 +452,7 @@ min => 150, gas => 100, build => 40, suit => 2, +size => 36 / $PPT, # x32 pop => 2, race => 'protoss', attr => { @@ -503,6 +514,7 @@ min => 350, gas => 250, build => 140, suit => 3, +size => 64 / $PPT, pop => 6, race => 'protoss', attr => { @@ -529,6 +541,7 @@ special => [ min => 25, build => 20, suit => 1, + size => 16 / $PPT, pop => 0, race => 'protoss', attr => { @@ -577,6 +590,7 @@ min => 100, gas => 350, build => 160, suit => 3, +size => 44 / $PPT, pop => 4, race => 'protoss', attr => { @@ -649,6 +663,7 @@ min => 200, gas => 100, build => 70, suit => 3, +size => 32 / $PPT, pop => 4, cargo => 4, race => 'protoss', @@ -715,6 +730,7 @@ min => 25, gas => 75, build => 40, suit => 1, +size => 32 / $PPT, pop => 1, race => 'protoss', attr => { @@ -764,6 +780,7 @@ min => 200, gas => 0, build => 60, suit => 3, +size => 40 / $PPT, # x32 pop => 2, cargo => -8, race => 'protoss', @@ -797,6 +814,7 @@ min => 50, gas => 0, build => 20, suit => 1, +size => 23 / $PPT, pop => 1, cargo => 1, race => 'terran', @@ -828,6 +846,7 @@ min => 75, gas => 0, build => 30, suit => 3, +size => 2, # 33x49 race => 'terran', attr => { structure => 1, @@ -858,6 +877,7 @@ min => 50, gas => 0, build => 24, suit => 1, +size => 17 / $PPT, # x20 pop => 1, cargo => 1, race => 'terran', @@ -917,6 +937,7 @@ min => 50, gas => 25, build => 24, suit => 1, +size => 23 / $PPT, # x22 pop => 1, cargo => 1, race => 'terran', @@ -970,6 +991,7 @@ min => 25, gas => 75, build => 50, suit => 1, +size => 15 / $PPT, # x22 pop => 1, cargo => 1, race => 'terran', @@ -1057,6 +1079,7 @@ min => 50, gas => 25, build => 30, suit => 1, +size => 17 / $PPT, # x20 pop => 1, cargo => 1, race => 'terran', @@ -1123,6 +1146,7 @@ min => 75, gas => 0, build => 30, suit => 2, +size => 32 / $PPT, pop => 2, cargo => 2, race => 'terran', @@ -1167,6 +1191,7 @@ special => [ }, hp => 20, suit => 1, + size => 15 / $PPT, armor => 0, attack => [ { @@ -1193,6 +1218,7 @@ min => 150, gas => 100, build => 50, suit => 3, +size => 32 / $PPT, pop => 2, cargo => 4, race => 'terran', @@ -1247,6 +1273,7 @@ min => 100, gas => 50, build => 40, suit => 3, +size => 32 / $PPT, pop => 2, cargo => 2, race => 'terran', @@ -1297,6 +1324,7 @@ min => 150, gas => 100, build => 60, suit => 3, +size => 38 / $PPT, # x30 pop => 2, race => 'terran', attr => { @@ -1361,6 +1389,7 @@ min => 400, gas => 300, build => 133, suit => 3, +size => 75 / $PPT, # x59 pop => 6, race => 'terran', attr => { @@ -1423,6 +1452,7 @@ min => 100, gas => 225, build => 80, suit => 3, +size => 65 / $PPT, # x50 pop => 2, race => 'terran', attr => { @@ -1494,6 +1524,7 @@ min => 250, gas => 125, build => 50, suit => 3, +size => 49 / $PPT, # x37 pop => 3, race => 'terran', attr => { @@ -1526,6 +1557,7 @@ min => 100, gas => 100, build => 50, suit => 3, +size => 49 / $PPT, # x37 pop => 2, cargo => -8, race => 'terran', @@ -1551,6 +1583,7 @@ min => 50, gas => 0, build => 20, suit => 1, +size => 23 / $PPT, pop => 1, cargo => 1, race => 'zerg', @@ -1578,6 +1611,7 @@ min => 100, gas => 0, build => 40, suit => 3, +size => 50 / $PPT, pop => -9, cargo => 0, race => 'zerg', @@ -1626,6 +1660,7 @@ trans => { }, build => 20, suit => 1, +size => 16 / $PPT, pop => 0, race => 'zerg', attr => { @@ -1660,6 +1695,7 @@ min => 175, gas => 0, build => 20, suit => 3, +size => 2, # 48x48 race => 'zerg', attr => { structure => 1, @@ -1686,6 +1722,7 @@ min => 175, gas => 0, build => 20, suit => 3, +size => 2, # 48x48 race => 'zerg', attr => { structure => 1, @@ -1712,6 +1749,7 @@ min => 25, gas => 0, build => 28, # for 2 suit => 1, +size => 16 / $PPT, pop => 0.5, cargo => 1, race => 'zerg', @@ -1761,6 +1799,7 @@ min => 75, gas => 25, build => 28, suit => 2, +size => 21 / $PPT, # x23 pop => 1, cargo => 2, race => 'zerg', @@ -1817,6 +1856,7 @@ gas => 125, base => 'hydralisk', build => 40, suit => 2, +size => 32 / $PPT, pop => 2, cargo => 4, race => 'zerg', @@ -1846,6 +1886,7 @@ min => 100, gas => 100, build => 50, suit => 2, +size => 48 / $PPT, pop => 2, race => 'zerg', attr => { @@ -1897,6 +1938,7 @@ special => [ count => 2, alt => 'Broodling', suit => 1, + size => 19 / $PPT, pop => 0, attr => { organic => 1, @@ -1925,6 +1967,7 @@ min => 100, gas => 50, build => 40, suit => 1, +size => 17 / $PPT, # x20 pop => 1, race => 'zerg', attr => { @@ -1952,6 +1995,7 @@ min => 12, gas => 38, build => 30, # for 2 suit => 1, +size => 24 / $PPT, pop => 0.5, race => 'zerg', attr => { @@ -1980,6 +2024,7 @@ min => 100, gas => 100, build => 40, suit => 1, +size => 44 / $PPT, pop => 2, race => 'zerg', attr => { @@ -2005,6 +2050,7 @@ special => [ { alt => 'Cocoon', suit => 3, + size => 32 / $PPT, attr => { organic => 1, flying => 1, @@ -2027,6 +2073,7 @@ gas => 200, build => 40, base => 'mutalisk', suit => 3, +size => 44 / $PPT, pop => 2, race => 'zerg', attr => { @@ -2057,6 +2104,7 @@ gas => 150, build => 40, base => 'mutalisk', suit => 3, +size => 44 / $PPT, pop => 2, race => 'zerg', attr => { @@ -2088,6 +2136,7 @@ min => 50, gas => 150, build => 50, suit => 2, +size => 27 / $PPT, # x25 pop => 2, cargo => 2, race => 'zerg', @@ -2151,6 +2200,7 @@ min => 200, gas => 200, build => 60, suit => 3, +size => 38 / $PPT, # x32 pop => 4, cargo => 4, race => 'zerg', -- 2.30.0