Debian Codegraph @

units/apcs/unit-apcs.lua

raw
1 -- ____ _ __
2 -- / __ )____ _____ | | / /___ ___________
3 -- / __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
4 -- / /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
5 -- /_____/\____/____/ |__/|__/\__,_/_/ /____/
6 --
7 -- A futuristic real-time strategy game.
8 -- This file is part of Bos Wars.
9 --
10 -- unit-apcs.lua - Define the apcs
11 --
12 -- (c) Copyright 2001 - 2007 by Francois Beerten, Lutz Sammer and Crestez Leonard
13 --
14 -- This program is free software; you can redistribute it and/or modify
15 -- it under the terms of the GNU General Public License as published by
16 -- the Free Software Foundation; either version 2 of the License, or
17 -- (at your option) any later version.
18 --
19 -- This program is distributed in the hope that it will be useful,
20 -- but WITHOUT ANY WARRANTY; without even the implied warranty of
21 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 -- GNU General Public License for more details.
23 --
24 -- You should have received a copy of the GNU General Public License
25 -- along with this program; if not, write to the Free Software
26 -- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27 --
28
29 DefineIcon({
30 Name = "icon-apcs",
31 Size = {46, 38},
32 Frame = 0,
33 File = GetCurrentLuaPath().."/ico_apcs.png"})
34
35 DefineAnimations("animations-apcs", {
36 Still = {"frame 0", "wait 1", },
37 Move = {"unbreakable begin", "frame 0", "move 4", "wait 2",
38 "frame 0", "move 4", "wait 2", "frame 0", "move 4", "wait 2",
39 "frame 0", "move 4", "wait 2", "frame 0", "move 4", "wait 2",
40 "frame 0", "move 4", "wait 2", "frame 0", "move 4", "wait 2",
41 "frame 0", "move 4", "wait 2", "frame 0", "unbreakable end", "wait 1", },
42 Attack = {"unbreakable begin", "frame 5", "sound apcs-attack", "attack", "wait 2",
43 "frame 0", "wait 2", "frame 5", "wait 2", "frame 0", "wait 2",
44 "frame 5", "attack", "wait 2", "frame 0", "wait 2",
45 "frame 0", "wait 2", "frame 0", "wait 2", "frame 0", "wait 2",
46 "frame 0", "wait 2", "frame 0", "wait 2", "frame 0", "wait 2",
47 "frame 0", "wait 2", "frame 0", "wait 2", "frame 0", "wait 2",
48 "frame 0", "wait 2", "frame 0", "wait 2", "frame 0", "wait 2",
49 "frame 0", "wait 2", "frame 0", "unbreakable end", "wait 2", },
50 Death = {"unbreakable begin", "frame 0", "wait 5", "frame 0", "wait 5",
51 "frame 0", "wait 5", "frame 0", "unbreakable end", "wait 5", },
52 })
53
54 MakeSound("apcs-selected", GetCurrentLuaPath().."/smolder_select.wav")
55 MakeSound("apcs-acknowledge", GetCurrentLuaPath().."/smolder_action.wav")
56 MakeSound("apcs-ready", GetCurrentLuaPath().."/smolder.completed.wav")
57 MakeSound("apcs-help", GetCurrentLuaPath().."/smolder.underattack.wav")
58 MakeSound("apcs-die", GetCurrentLuaPath().."/smolder_die.wav")
59 MakeSound("apcs-attack", GetCurrentLuaPath().."/smolder_attack.wav")
60
61 DefineUnitType("unit-apcs", {
62 Name = "APC Smolder",
63 Image = {"file", GetCurrentLuaPath().."/unit_apcs.png", "size", {96, 96}},
64 Shadow = {"file", GetCurrentLuaPath().."/unit_apcs_s.png", "size", {96, 96}},
65 Animations = "animations-apcs",
66 Icon = "icon-apcs",
67 Flip = true,
68 EnergyValue = 4000,
69 MagmaValue = 2000,
70 HitPoints = 200,
71 DrawLevel = 25,
72 TileSize = {1, 1},
73 BoxSize = {96, 96},
74 SightRange = 5,
75 ComputerReactionRange = 5,
76 PersonReactionRange = 5,
77 Armor = 10,
78 BasicDamage = 5,
79 PiercingDamage = 5,
80 Missile = "missile-none",
81 MaxAttackRange = 4,
82 Priority = 60,
83 Points = 50,
84 CanTransport = true,
85 AttackFromTransporter = true,
86 MaxOnBoard = 6,
87 Type = "land",
88 RepairHp = 2,
89 RightMouseAction = "attack",
90 ExplodeWhenKilled = "missile-160x128-explosion",
91 CanAttack = true,
92 CanTargetLand = true,
93 CanTargetAir = true,
94 SelectableByRectangle = true,
95 Sounds = {
96 "selected", "apcs-selected",
97 "acknowledge", "apcs-acknowledge",
98 "ready", "apcs-ready",
99 "help", "apcs-help",
100 "dead", "apcs-die"}
101 })
102
103 DefineAllow("unit-apcs", AllowAll)