// Generated by tools/generate_legacy_tables.py; source is GPL-2.0-or-later. pub struct LegacyObject { pub index: u32, pub id: &'static str, pub name: &'static str, pub asset: u32, pub frames: u32, pub cost: u32, pub max_count: u32, pub initial_count: u32, pub special: bool, } pub struct LegacyWeapon { pub index: u32, pub id: &'static str, pub name: &'static str, pub asset: u32, pub frames: u32, pub damage: i32, pub speed: i32, pub cooldown: u32, pub target: u32, pub maxspeed: i32, pub startframe: u32, pub delay: bool, pub plot: bool, pub moving: bool, pub follow_x: bool, pub follow_y: bool, pub effect: bool, pub beam: u32, } pub fn objects() -> Vec { vec![ LegacyObject { index: 0, id: "base:forward_guns", name: "Forward Guns", asset: 66224, frames: 1, cost: 12000, max_count: 1, initial_count: 1, special: false, }, LegacyObject { index: 1, id: "base:plasma_guns", name: "Plasma Guns", asset: 66225, frames: 2, cost: 78800, max_count: 1, initial_count: 1, special: false, }, LegacyObject { index: 2, id: "base:micro_missile", name: "Micro Missile", asset: 66227, frames: 2, cost: 175600, max_count: 1, initial_count: 1, special: false, }, LegacyObject { index: 3, id: "base:dumb_missile", name: "Dumb Missile", asset: 66229, frames: 1, cost: 145200, max_count: 1, initial_count: 1, special: true, }, LegacyObject { index: 4, id: "base:mini_gun", name: "Mini Gun", asset: 66230, frames: 4, cost: 250650, max_count: 1, initial_count: 1, special: true, }, LegacyObject { index: 5, id: "base:turret", name: "Turret", asset: 66234, frames: 4, cost: 512850, max_count: 1, initial_count: 1, special: true, }, LegacyObject { index: 6, id: "base:missile_pods", name: "Missile Pods", asset: 66238, frames: 1, cost: 204950, max_count: 1, initial_count: 1, special: true, }, LegacyObject { index: 7, id: "base:air_missile", name: "Air Missile", asset: 66239, frames: 1, cost: 63500, max_count: 1, initial_count: 1, special: true, }, LegacyObject { index: 8, id: "base:grd_missile", name: "Grd Missile", asset: 66240, frames: 1, cost: 110000, max_count: 1, initial_count: 1, special: true, }, LegacyObject { index: 9, id: "base:bomb", name: "Bomb", asset: 66266, frames: 1, cost: 98200, max_count: 1, initial_count: 1, special: true, }, LegacyObject { index: 10, id: "base:energy_grab", name: "Energy Grab", asset: 66241, frames: 4, cost: 300750, max_count: 1, initial_count: 1, special: true, }, LegacyObject { index: 11, id: "base:mega_bomb", name: "Mega Bomb", asset: 66245, frames: 1, cost: 32250, max_count: 5, initial_count: 1, special: false, }, LegacyObject { index: 12, id: "base:pulse_cannon", name: "Pulse Cannon", asset: 66246, frames: 2, cost: 725000, max_count: 1, initial_count: 1, special: true, }, LegacyObject { index: 13, id: "base:forward_laser", name: "Forward Laser", asset: 66248, frames: 4, cost: 1750000, max_count: 1, initial_count: 1, special: true, }, LegacyObject { index: 14, id: "base:death_ray", name: "Death Ray", asset: 66252, frames: 4, cost: 950000, max_count: 1, initial_count: 1, special: true, }, LegacyObject { index: 15, id: "base:super_shield", name: "Super Shield", asset: 66256, frames: 1, cost: 78500, max_count: 100, initial_count: 100, special: false, }, LegacyObject { index: 16, id: "base:energy", name: "Energy", asset: 66257, frames: 4, cost: 10000, max_count: 100, initial_count: 25, special: false, }, LegacyObject { index: 17, id: "base:detect", name: "Detect", asset: 66261, frames: 1, cost: 10000, max_count: 1, initial_count: 1, special: false, }, LegacyObject { index: 18, id: "base:itembuy1", name: "Itembuy1", asset: 66261, frames: 1, cost: 93800, max_count: 93800, initial_count: 93800, special: false, }, LegacyObject { index: 19, id: "base:itembuy2", name: "Itembuy2", asset: 66262, frames: 1, cost: 76000, max_count: 76000, initial_count: 76000, special: false, }, LegacyObject { index: 20, id: "base:itembuy3", name: "Itembuy3", asset: 66263, frames: 1, cost: 55700, max_count: 55700, initial_count: 55700, special: false, }, LegacyObject { index: 21, id: "base:itembuy4", name: "Itembuy4", asset: 66264, frames: 1, cost: 35200, max_count: 35200, initial_count: 35200, special: false, }, LegacyObject { index: 22, id: "base:itembuy5", name: "Itembuy5", asset: 66265, frames: 1, cost: 122500, max_count: 122500, initial_count: 122500, special: false, }, LegacyObject { index: 23, id: "base:itembuy6", name: "Itembuy6", asset: 66267, frames: 4, cost: 50, max_count: 50, initial_count: 50, special: false, }, ] } pub fn weapons() -> Vec { vec![ LegacyWeapon { index: 0, id: "base:forward_guns", name: "Forward Guns", asset: 65987, frames: 4, damage: 1, speed: 8, cooldown: 2, target: 0, maxspeed: 16, startframe: 0, delay: false, plot: false, moving: true, follow_x: false, follow_y: false, effect: false, beam: 0, }, LegacyWeapon { index: 1, id: "base:plasma_guns", name: "Plasma Guns", asset: 65999, frames: 2, damage: 2, speed: 4, cooldown: 10, target: 1, maxspeed: 8, startframe: 0, delay: false, plot: false, moving: true, follow_x: false, follow_y: false, effect: false, beam: 0, }, LegacyWeapon { index: 2, id: "base:micro_missile", name: "Micro Missile", asset: 65985, frames: 2, damage: 2, speed: 2, cooldown: 4, target: 3, maxspeed: 8, startframe: 0, delay: false, plot: false, moving: true, follow_x: false, follow_y: false, effect: false, beam: 0, }, LegacyWeapon { index: 3, id: "base:dumb_missile", name: "Dumb Missile", asset: 65978, frames: 3, damage: 4, speed: 2, cooldown: 10, target: 0, maxspeed: 12, startframe: 1, delay: true, plot: true, moving: true, follow_x: false, follow_y: false, effect: false, beam: 0, }, LegacyWeapon { index: 4, id: "base:mini_gun", name: "Mini Gun", asset: 65987, frames: 4, damage: 1, speed: 8, cooldown: 1, target: 3, maxspeed: 10, startframe: 1, delay: false, plot: true, moving: true, follow_x: false, follow_y: false, effect: false, beam: 0, }, LegacyWeapon { index: 5, id: "base:turret", name: "Turret", asset: 0, frames: 0, damage: 5, speed: 0, cooldown: 6, target: 0, maxspeed: 0, startframe: 0, delay: false, plot: false, moving: false, follow_x: false, follow_y: false, effect: false, beam: 1, }, LegacyWeapon { index: 6, id: "base:missile_pods", name: "Missile Pods", asset: 65981, frames: 2, damage: 4, speed: 1, cooldown: 5, target: 1, maxspeed: 16, startframe: 0, delay: false, plot: false, moving: true, follow_x: false, follow_y: false, effect: false, beam: 0, }, LegacyWeapon { index: 7, id: "base:air_missile", name: "Air Missile", asset: 65981, frames: 2, damage: 4, speed: 1, cooldown: 10, target: 1, maxspeed: 12, startframe: 0, delay: false, plot: false, moving: true, follow_x: false, follow_y: false, effect: false, beam: 0, }, LegacyWeapon { index: 8, id: "base:grd_missile", name: "Grd Missile", asset: 65983, frames: 2, damage: 20, speed: 1, cooldown: 20, target: 2, maxspeed: 6, startframe: 0, delay: false, plot: false, moving: true, follow_x: false, follow_y: false, effect: false, beam: 0, }, LegacyWeapon { index: 9, id: "base:bomb", name: "Bomb", asset: 66003, frames: 1, damage: 50, speed: 1, cooldown: 30, target: 4, maxspeed: 4, startframe: 0, delay: false, plot: false, moving: true, follow_x: false, follow_y: false, effect: false, beam: 0, }, LegacyWeapon { index: 10, id: "base:energy_grab", name: "Energy Grab", asset: 66077, frames: 6, damage: 3, speed: 4, cooldown: 2, target: 5, maxspeed: 8, startframe: 0, delay: false, plot: false, moving: true, follow_x: false, follow_y: false, effect: false, beam: 0, }, LegacyWeapon { index: 11, id: "base:mega_bomb", name: "Mega Bomb", asset: 65995, frames: 4, damage: 50, speed: 2, cooldown: 60, target: 0, maxspeed: 2, startframe: 0, delay: false, plot: true, moving: true, follow_x: false, follow_y: false, effect: true, beam: 0, }, LegacyWeapon { index: 12, id: "base:pulse_cannon", name: "Pulse Cannon", asset: 66083, frames: 2, damage: 5, speed: 8, cooldown: 3, target: 0, maxspeed: 8, startframe: 0, delay: false, plot: false, moving: true, follow_x: false, follow_y: false, effect: false, beam: 0, }, LegacyWeapon { index: 13, id: "base:forward_laser", name: "Forward Laser", asset: 66101, frames: 4, damage: 10, speed: 0, cooldown: 7, target: 1, maxspeed: 0, startframe: 0, delay: false, plot: false, moving: false, follow_x: true, follow_y: true, effect: true, beam: 2, }, LegacyWeapon { index: 14, id: "base:death_ray", name: "Death Ray", asset: 66097, frames: 4, damage: 6, speed: 0, cooldown: 7, target: 3, maxspeed: 0, startframe: 0, delay: false, plot: false, moving: false, follow_x: true, follow_y: true, effect: true, beam: 2, }, ] } pub const O_GUN1: [i32; 8] = [1, 3, 5, 6, 5, 3, 1, 0]; pub const O_GUN2: [i32; 8] = [1, 3, 6, 9, 6, 3, 2, 0]; pub const O_GUN3: [i32; 8] = [2, 6, 8, 11, 8, 6, 2, 0]; pub struct LegacySound { pub name: &'static str, pub asset: u32, pub pitch: i32, pub random: bool, pub volume: i32, pub priority: i32, } pub fn sounds() -> Vec { vec![ LegacySound { name: "FX_MON1", asset: 194, pitch: 128, random: true, volume: 127, priority: 1, }, LegacySound { name: "FX_MON2", asset: 199, pitch: 128, random: true, volume: 127, priority: 1, }, LegacySound { name: "FX_MON3", asset: 204, pitch: 128, random: true, volume: 127, priority: 1, }, LegacySound { name: "FX_MON4", asset: 209, pitch: 128, random: true, volume: 127, priority: 1, }, LegacySound { name: "FX_MON5", asset: 214, pitch: 128, random: true, volume: 127, priority: 1, }, LegacySound { name: "FX_MON6", asset: 219, pitch: 128, random: true, volume: 127, priority: 1, }, LegacySound { name: "FX_DAVE", asset: 224, pitch: 128, random: false, volume: 127, priority: 1, }, LegacySound { name: "FX_THEME", asset: 99, pitch: 128, random: false, volume: 127, priority: 0, }, LegacySound { name: "FX_AIREXPLO", asset: 104, pitch: 128, random: true, volume: 127, priority: 1, }, LegacySound { name: "FX_AIREXPLO2", asset: 109, pitch: 128, random: true, volume: 127, priority: 1, }, LegacySound { name: "FX_BONUS", asset: 114, pitch: 128, random: false, volume: 127, priority: 0, }, LegacySound { name: "FX_CRASH", asset: 119, pitch: 128, random: false, volume: 127, priority: 0, }, LegacySound { name: "FX_DOOR", asset: 124, pitch: 120, random: false, volume: 127, priority: 0, }, LegacySound { name: "FX_FLYBY", asset: 129, pitch: 120, random: false, volume: 127, priority: 0, }, LegacySound { name: "FX_EGRAB", asset: 134, pitch: 128, random: false, volume: 40, priority: 2, }, LegacySound { name: "FX_GEXPLO", asset: 139, pitch: 128, random: true, volume: 127, priority: 2, }, LegacySound { name: "FX_GUN", asset: 144, pitch: 125, random: true, volume: 30, priority: 10, }, LegacySound { name: "FX_JETSND", asset: 149, pitch: 120, random: false, volume: 120, priority: 4, }, LegacySound { name: "FX_LASER", asset: 154, pitch: 120, random: false, volume: 50, priority: 2, }, LegacySound { name: "FX_MISSLE", asset: 159, pitch: 120, random: true, volume: 50, priority: 3, }, LegacySound { name: "FX_SWEP", asset: 164, pitch: 128, random: false, volume: 127, priority: 1, }, LegacySound { name: "FX_TURRET", asset: 169, pitch: 128, random: true, volume: 60, priority: 1, }, LegacySound { name: "FX_WARNING", asset: 174, pitch: 128, random: false, volume: 100, priority: 2, }, LegacySound { name: "FX_BOSS1", asset: 179, pitch: 127, random: false, volume: 127, priority: 1, }, LegacySound { name: "FX_IJETSND", asset: 149, pitch: 235, random: false, volume: 45, priority: 1, }, LegacySound { name: "FX_EJETSND", asset: 149, pitch: 65, random: false, volume: 120, priority: 1, }, LegacySound { name: "FX_INTROHIT", asset: 144, pitch: 215, random: true, volume: 127, priority: 1, }, LegacySound { name: "FX_INTROGUN", asset: 144, pitch: 110, random: true, volume: 127, priority: 1, }, LegacySound { name: "FX_ENEMYSHOT", asset: 189, pitch: 100, random: true, volume: 50, priority: 1, }, LegacySound { name: "FX_ENEMYLASER", asset: 154, pitch: 70, random: true, volume: 120, priority: 1, }, LegacySound { name: "FX_ENEMYMISSLE", asset: 159, pitch: 140, random: true, volume: 55, priority: 2, }, LegacySound { name: "FX_ENEMYPLASMA", asset: 189, pitch: 127, random: true, volume: 127, priority: 2, }, LegacySound { name: "FX_SHIT", asset: 184, pitch: 132, random: true, volume: 127, priority: 1, }, LegacySound { name: "FX_HIT", asset: 144, pitch: 214, random: true, volume: 100, priority: 1, }, LegacySound { name: "FX_NOSHOOT", asset: 189, pitch: 254, random: false, volume: 40, priority: 2, }, LegacySound { name: "FX_PULSE", asset: 189, pitch: 100, random: true, volume: 50, priority: 2, }, ] } pub const FREQUENCY_CURVE: [u16; 668] = [ 307, 307, 308, 308, 309, 310, 310, 311, 311, 312, 312, 313, 313, 314, 315, 315, 316, 316, 317, 317, 318, 319, 319, 320, 320, 321, 322, 322, 323, 323, 324, 324, 325, 326, 326, 327, 327, 328, 329, 329, 330, 330, 331, 332, 332, 333, 333, 334, 335, 335, 336, 336, 337, 338, 338, 339, 339, 340, 341, 341, 342, 343, 343, 344, 344, 345, 346, 346, 347, 347, 348, 349, 349, 350, 351, 351, 352, 353, 353, 354, 354, 355, 356, 356, 357, 358, 358, 359, 360, 360, 361, 362, 362, 363, 364, 364, 365, 366, 366, 367, 368, 368, 369, 370, 370, 371, 372, 372, 373, 374, 374, 375, 376, 376, 377, 378, 378, 379, 380, 380, 381, 382, 382, 383, 384, 385, 385, 386, 387, 387, 388, 389, 389, 390, 391, 392, 392, 393, 394, 394, 395, 396, 397, 397, 398, 399, 399, 400, 401, 402, 402, 403, 404, 404, 405, 406, 407, 407, 408, 409, 410, 410, 411, 412, 413, 413, 414, 415, 416, 416, 417, 418, 419, 419, 420, 421, 422, 422, 423, 424, 425, 425, 426, 427, 428, 429, 429, 430, 431, 432, 432, 433, 434, 435, 436, 436, 437, 438, 439, 440, 440, 441, 442, 443, 444, 444, 445, 446, 447, 448, 448, 449, 450, 451, 452, 452, 453, 454, 455, 456, 457, 457, 458, 459, 460, 461, 462, 462, 463, 464, 465, 466, 467, 467, 468, 469, 470, 471, 472, 472, 473, 474, 475, 476, 477, 478, 478, 479, 480, 481, 482, 483, 484, 485, 485, 486, 487, 488, 489, 490, 491, 492, 493, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 555, 556, 557, 558, 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573, 574, 575, 576, 577, 578, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595, 596, 598, 599, 600, 601, 602, 603, 604, 605, 606, 607, 608, 610, 611, 612, 613, 614, 615, 616, 617, 618, 620, 621, 622, 623, 624, 625, 626, 627, 629, 630, 631, 632, 633, 634, 635, 637, 638, 639, 640, 641, 642, 644, 645, 646, 647, 648, 649, 651, 652, 653, 654, 655, 656, 658, 659, 660, 661, 662, 664, 665, 666, 667, 668, 670, 671, 672, 673, 674, 676, 677, 678, 679, 681, 682, 683, 684, 686, 687, 688, 689, 690, 692, 693, 694, 695, 697, 698, 699, 701, 702, 703, 704, 706, 707, 708, 709, 711, 712, 713, 715, 716, 717, 718, 720, 721, 722, 724, 725, 726, 728, 729, 730, 732, 733, 734, 736, 737, 738, 740, 741, 742, 744, 745, 746, 748, 749, 750, 752, 753, 754, 756, 757, 758, 760, 761, 763, 764, 765, 767, 768, 770, 771, 772, 774, 775, 777, 778, 779, 781, 782, 784, 785, 786, 788, 789, 791, 792, 794, 795, 796, 798, 799, 801, 802, 804, 805, 807, 808, 809, 811, 812, 814, 815, 817, 818, 820, 821, 823, 824, 826, 827, 829, 830, 832, 833, 835, 836, 838, 839, 841, 842, 844, 845, 847, 848, 850, 851, 853, 855, 856, 858, 859, 861, 862, 864, 865, 867, 869, 870, 872, 873, 875, 876, 878, 880, 881, 883, 884, 886, 888, 889, 891, 892, 894, 896, 897, 899, 900, 902, 904, 905, 907, 909, 910, 912, 914, 915, 917, 919, 920, 922, 924, 925, 927, 929, 930, 932, 934, 935, 937, 939, 940, 942, 944, 945, 947, 949, 951, 952, 954, 956, 957, 959, 961, 963, 964, 966, 968, 970, 971, 973, 975, 977, 978, 980, 982, 984, 986, 987, 989, 991, 993, 995, 996, 998, 1000, 1002, 1004, 1005, 1007, 1009, 1011, 1013, 1014, 1016, 1018, 1020, 1022, 876, ]; pub const VOLUME_CURVE: [u16; 128] = [ 0, 1, 3, 5, 6, 8, 10, 11, 13, 14, 16, 17, 19, 20, 22, 23, 25, 26, 27, 29, 30, 32, 33, 34, 36, 37, 39, 41, 43, 45, 47, 49, 50, 52, 54, 55, 57, 59, 60, 61, 63, 64, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 79, 80, 81, 82, 83, 84, 84, 85, 86, 87, 88, 89, 90, 91, 92, 92, 93, 94, 95, 96, 96, 97, 98, 99, 99, 100, 101, 101, 102, 103, 103, 104, 105, 105, 106, 107, 107, 108, 109, 109, 110, 110, 111, 112, 112, 113, 113, 114, 114, 115, 115, 116, 117, 117, 118, 118, 119, 119, 120, 120, 121, 121, 122, 122, 123, 123, 123, 124, 124, 125, 125, 126, 126, 127, 127, ];