1 module actorMan is "monster" "Man";
7 // setup actor animations
8 public void initializeAnim () {
10 animClearFrames("monster", "Man", "sleep");
12 animAddFrame("monster", "Man", "sleep", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playa1a2.vga");
13 animAddFrame("monster", "Man", "sleep", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playa1a2.vga");
14 animAddFrame("monster", "Man", "sleep", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playa1a2.vga");
15 animAddFrame("monster", "Man", "sleep", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playb1b2.vga");
16 animAddFrame("monster", "Man", "sleep", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playb1b2.vga");
17 animAddFrame("monster", "Man", "sleep", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playb1b2.vga");
19 animAddFrame("monster", "Man", "sleep", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playa1a2_mirrored.vga");
20 animAddFrame("monster", "Man", "sleep", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playa1a2_mirrored.vga");
21 animAddFrame("monster", "Man", "sleep", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playa1a2_mirrored.vga");
22 animAddFrame("monster", "Man", "sleep", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playb1b2_mirrored.vga");
23 animAddFrame("monster", "Man", "sleep", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playb1b2_mirrored.vga");
24 animAddFrame("monster", "Man", "sleep", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playb1b2_mirrored.vga");
26 animClearFrames("monster", "Man", "go");
28 animAddFrame("monster", "Man", "go", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playa1a2.vga");
29 animAddFrame("monster", "Man", "go", ACTOR_DIR_LEFT, "monsters/man/graphics/go/playc1c2.vga");
30 animAddFrame("monster", "Man", "go", ACTOR_DIR_LEFT, "monsters/man/graphics/go/playd1d2.vga");
31 animAddFrame("monster", "Man", "go", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playa1a2.vga");
32 animAddFrame("monster", "Man", "go", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playb1b2.vga");
33 animAddFrame("monster", "Man", "go", ACTOR_DIR_LEFT, "monsters/man/graphics/go/playd1d2.vga");
35 animAddFrame("monster", "Man", "go", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playa1a2_mirrored.vga");
36 animAddFrame("monster", "Man", "go", ACTOR_DIR_RIGHT, "monsters/man/graphics/go/playc1c2_mirrored.vga");
37 animAddFrame("monster", "Man", "go", ACTOR_DIR_RIGHT, "monsters/man/graphics/go/playd1d2_mirrored.vga");
38 animAddFrame("monster", "Man", "go", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playa1a2_mirrored.vga");
39 animAddFrame("monster", "Man", "go", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playb1b2_mirrored.vga");
40 animAddFrame("monster", "Man", "go", ACTOR_DIR_RIGHT, "monsters/man/graphics/go/playd1d2_mirrored.vga");
42 animClearFrames("monster", "Man", "pain");
44 animAddFrame("monster", "Man", "pain", ACTOR_DIR_LEFT, "monsters/man/graphics/pain/playg1g2.vga");
46 animAddFrame("monster", "Man", "pain", ACTOR_DIR_RIGHT, "monsters/man/graphics/pain/playg1g2_mirrored.vga");
48 animClearFrames("monster", "Man", "wait");
50 animAddFrame("monster", "Man", "wait", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playe1e2.vga");
52 animAddFrame("monster", "Man", "wait", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playe1e2_mirrored.vga");
54 animClearFrames("monster", "Man", "attack");
56 animAddFrame("monster", "Man", "attack", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playe1e2.vga");
57 animAddFrame("monster", "Man", "attack", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playe1e2.vga");
58 animAddFrame("monster", "Man", "attack", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playe1e2.vga");
59 animAddFrame("monster", "Man", "attack", ACTOR_DIR_LEFT, "monsters/man/graphics/shared/playe1e2.vga");
60 animAddFrame("monster", "Man", "attack", ACTOR_DIR_LEFT, "monsters/man/graphics/attack/playf1f2.vga");
61 animAddFrame("monster", "Man", "attack", ACTOR_DIR_LEFT, "monsters/man/graphics/attack/playf1f2.vga");
63 animAddFrame("monster", "Man", "attack", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playe1e2_mirrored.vga");
64 animAddFrame("monster", "Man", "attack", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playe1e2_mirrored.vga");
65 animAddFrame("monster", "Man", "attack", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playe1e2_mirrored.vga");
66 animAddFrame("monster", "Man", "attack", ACTOR_DIR_RIGHT, "monsters/man/graphics/shared/playe1e2_mirrored.vga");
67 animAddFrame("monster", "Man", "attack", ACTOR_DIR_RIGHT, "monsters/man/graphics/attack/playf1f2_mirrored.vga");
68 animAddFrame("monster", "Man", "attack", ACTOR_DIR_RIGHT, "monsters/man/graphics/attack/playf1f2_mirrored.vga");
70 animClearFrames("monster", "Man", "die");
72 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playh0.vga");
73 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playh0.vga");
74 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playh0.vga");
75 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playh0.vga");
76 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playi0.vga");
77 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playi0.vga");
78 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playi0.vga");
79 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playi0.vga");
80 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playj0.vga");
81 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playj0.vga");
82 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playj0.vga");
83 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playj0.vga");
84 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playk0.vga");
85 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playk0.vga");
86 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playk0.vga");
87 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playk0.vga");
88 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playl0.vga");
89 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playl0.vga");
90 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playl0.vga");
91 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playl0.vga");
92 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playm0.vga");
93 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playm0.vga");
94 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playm0.vga");
95 animAddFrame("monster", "Man", "die", ACTOR_DIR_LEFT, "monsters/man/graphics/die/playm0.vga");
97 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playh0.vga");
98 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playh0.vga");
99 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playh0.vga");
100 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playh0.vga");
101 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playi0.vga");
102 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playi0.vga");
103 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playi0.vga");
104 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playi0.vga");
105 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playj0.vga");
106 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playj0.vga");
107 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playj0.vga");
108 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playj0.vga");
109 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playk0.vga");
110 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playk0.vga");
111 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playk0.vga");
112 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playk0.vga");
113 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playl0.vga");
114 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playl0.vga");
115 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playl0.vga");
116 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playl0.vga");
117 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playm0.vga");
118 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playm0.vga");
119 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playm0.vga");
120 animAddFrame("monster", "Man", "die", ACTOR_DIR_RIGHT, "monsters/man/graphics/die/playm0.vga");
122 animClearFrames("monster", "Man", "slop");
124 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playo0.vga");
125 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playo0.vga");
126 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playp0.vga");
127 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playp0.vga");
128 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playq0.vga");
129 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playq0.vga");
130 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playr0.vga");
131 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playr0.vga");
132 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/plays0.vga");
133 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/plays0.vga");
134 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playt0.vga");
135 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playt0.vga");
136 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playu0.vga");
137 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playu0.vga");
138 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playv0.vga");
139 animAddFrame("monster", "Man", "slop", ACTOR_DIR_LEFT, "monsters/man/graphics/slop/playv0.vga");
141 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playo0.vga");
142 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playo0.vga");
143 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playp0.vga");
144 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playp0.vga");
145 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playq0.vga");
146 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playq0.vga");
147 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playr0.vga");
148 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playr0.vga");
149 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/plays0.vga");
150 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/plays0.vga");
151 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playt0.vga");
152 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playt0.vga");
153 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playu0.vga");
154 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playu0.vga");
155 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playv0.vga");
156 animAddFrame("monster", "Man", "slop", ACTOR_DIR_RIGHT, "monsters/man/graphics/slop/playv0.vga");
158 animClearFrames("monster", "Man", "dead");
160 animAddFrame("monster", "Man", "dead", ACTOR_DIR_LEFT, "monsters/man/graphics/dead/playn0.vga");
162 animAddFrame("monster", "Man", "dead", ACTOR_DIR_RIGHT, "monsters/man/graphics/dead/playn0.vga");
164 animClearFrames("monster", "Man", "mess");
166 animAddFrame("monster", "Man", "mess", ACTOR_DIR_LEFT, "monsters/man/graphics/mess/playw0.vga");
168 animAddFrame("monster", "Man", "mess", ACTOR_DIR_RIGHT, "monsters/man/graphics/mess/playw0.vga");
172 // change actor animation
173 public void setAnim (Actor me, string state) {
176 case "sleep": me.animname = "sleep"; me.animstr = "AAABBB"; break;
177 case "go": me.animname = "go"; me.animstr = "ACDABD"; break;
178 case "pain": me.animname = "pain"; me.animstr = "G"; break;
179 case "wait": me.animname = "wait"; me.animstr = "E"; break;
180 case "attack": me.animname = "attack"; me.animstr = "EEEEFF"; break;
181 case "die": me.animname = "die"; me.animstr = "HHHHIIIIJJJJKKKKLLLLMMMM"; break;
182 case "slop": me.animname = "slop"; me.animstr = "OOPPQQRRSSTTUUVV"; break;
183 case "dead": me.animname = "dead"; me.animstr = "N"; break;
184 case "mess": me.animname = "mess"; me.animstr = "W"; break;
185 case "run": me.animname = "go"; me.animstr = "ACDABD"; break;
186 case "climb": me.animname = "go"; me.animstr = "ACDABD"; break;
187 case "runout": me.animname = "go"; me.animstr = "ACDABD"; break;
188 case "shoot": me.animname = "attack"; me.animstr = "EEEEFF"; break;
189 case "revive": me.animname = "revive"; me.animstr = "MMMMLLLLKKKKJJJJIIIIHHHH"; break;
190 default: me.animname = "sleep"; me.animstr = "AAABBB"; break;
192 me.actorSetAnimation(state);
196 // setup actor properties
197 public void initialize (Actor me) {
198 // `classname` and `classtype` will be set by the engine
199 //me.classname = "Man";
200 //me.classtype = "monster";
203 me.hitpoints = me.life = 400;
215 public void think (Actor me) {