1 (* Copyright (C) DooM 2D:Forever Developers
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 3 of the License, or
6 * (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 {$INCLUDE a_modes.inc}
21 -----------------------------------
22 MAPDEF.PAS ÂÅÐÑÈß ÎÒ 22.03.09
24 Ïîääåðæêà êàðò âåðñèè 1
25 -----------------------------------
34 // keep all constants in sync with "mapdesc.txt"!
35 // or even better: regenerate this part directly from "mapdesc.txt".
48 PANEL_CLOSEDOOR
= 1024;
49 PANEL_BLOCKMON
= 2048;
50 PANEL_LIFTLEFT
= 4096;
51 PANEL_LIFTRIGHT
= 8192;
53 PANEL_FLAG_BLENDING
= 1;
55 PANEL_FLAG_WATERTEXTURES
= 4;
63 ITEM_MEDKIT_SMALL
= 1;
64 ITEM_MEDKIT_LARGE
= 2;
65 ITEM_MEDKIT_BLACK
= 3;
69 ITEM_SPHERE_WHITE
= 7;
74 ITEM_WEAPON_SHOTGUN1
= 12;
75 ITEM_WEAPON_SHOTGUN2
= 13;
76 ITEM_WEAPON_CHAINGUN
= 14;
77 ITEM_WEAPON_ROCKETLAUNCHER
= 15;
78 ITEM_WEAPON_PLASMA
= 16;
80 ITEM_WEAPON_SUPERPULEMET
= 18;
81 ITEM_AMMO_BULLETS
= 19;
82 ITEM_AMMO_BULLETS_BOX
= 20;
83 ITEM_AMMO_SHELLS
= 21;
84 ITEM_AMMO_SHELLS_BOX
= 22;
85 ITEM_AMMO_ROCKET
= 23;
86 ITEM_AMMO_ROCKET_BOX
= 24;
88 ITEM_AMMO_CELL_BIG
= 26;
89 ITEM_AMMO_BACKPACK
= 27;
93 ITEM_WEAPON_KASTET
= 31;
94 ITEM_WEAPON_PISTOL
= 32;
99 ITEM_WEAPON_FLAMETHROWER
= 37;
100 ITEM_AMMO_FUELCAN
= 38;
102 ITEM_MAX
= 38; // store the last item's id in here
103 // use this in for loops
105 ITEM_OPTION_ONLYDM
= 1;
106 ITEM_OPTION_FALL
= 2;
109 AREA_PLAYERPOINT1
= 1;
110 AREA_PLAYERPOINT2
= 2;
115 AREA_REDTEAMPOINT
= 7;
116 AREA_BLUETEAMPOINT
= 8;
142 TRIGGER_TELEPORT
= 2;
143 TRIGGER_OPENDOOR
= 3;
144 TRIGGER_CLOSEDOOR
= 4;
147 TRIGGER_CLOSETRAP
= 7;
152 TRIGGER_LIFTDOWN
= 12;
154 TRIGGER_TEXTURE
= 14;
159 TRIGGER_SPAWNMONSTER
= 19;
160 TRIGGER_SPAWNITEM
= 20;
164 TRIGGER_MESSAGE
= 24;
172 TRIGGER_SHOT_PISTOL
= 0;
173 TRIGGER_SHOT_BULLET
= 1;
174 TRIGGER_SHOT_SHOTGUN
= 2;
175 TRIGGER_SHOT_SSG
= 3;
176 TRIGGER_SHOT_IMP
= 4;
177 TRIGGER_SHOT_PLASMA
= 5;
178 TRIGGER_SHOT_SPIDER
= 6;
179 TRIGGER_SHOT_CACO
= 7;
180 TRIGGER_SHOT_BARON
= 8;
181 TRIGGER_SHOT_MANCUB
= 9;
182 TRIGGER_SHOT_REV
= 10;
183 TRIGGER_SHOT_ROCKET
= 11;
184 TRIGGER_SHOT_BFG
= 12;
185 TRIGGER_SHOT_EXPL
= 13;
186 TRIGGER_SHOT_BFGEXPL
= 14;
187 TRIGGER_SHOT_MAX
= 14;
189 TRIGGER_SHOT_TARGET_NONE
= 0;
190 TRIGGER_SHOT_TARGET_MON
= 1;
191 TRIGGER_SHOT_TARGET_PLR
= 2;
192 TRIGGER_SHOT_TARGET_RED
= 3;
193 TRIGGER_SHOT_TARGET_BLUE
= 4;
194 TRIGGER_SHOT_TARGET_MONPLR
= 5;
195 TRIGGER_SHOT_TARGET_PLRMON
= 6;
197 TRIGGER_SHOT_AIM_DEFAULT
= 0;
198 TRIGGER_SHOT_AIM_ALLMAP
= 1;
199 TRIGGER_SHOT_AIM_TRACE
= 2;
200 TRIGGER_SHOT_AIM_TRACEALL
= 3;
202 TRIGGER_EFFECT_PARTICLE
= 0;
203 TRIGGER_EFFECT_ANIMATION
= 1;
205 TRIGGER_EFFECT_SLIQUID
= 0;
206 TRIGGER_EFFECT_LLIQUID
= 1;
207 TRIGGER_EFFECT_DLIQUID
= 2;
208 TRIGGER_EFFECT_BLOOD
= 3;
209 TRIGGER_EFFECT_SPARK
= 4;
210 TRIGGER_EFFECT_BUBBLE
= 5;
211 TRIGGER_EFFECT_MAX
= 5;
213 TRIGGER_EFFECT_POS_CENTER
= 0;
214 TRIGGER_EFFECT_POS_AREA
= 1;
216 ACTIVATE_PLAYERCOLLIDE
= 1;
217 ACTIVATE_MONSTERCOLLIDE
= 2;
218 ACTIVATE_PLAYERPRESS
= 4;
219 ACTIVATE_MONSTERPRESS
= 8;
221 ACTIVATE_NOMONSTER
= 32;
222 ACTIVATE_CUSTOM
= 255;
230 TEXTURE_NAME_WATER
= '_water_0';
231 TEXTURE_NAME_ACID1
= '_water_1';
232 TEXTURE_NAME_ACID2
= '_water_2';
234 TEXTURE_SPECIAL_WATER
= DWORD(-1);
235 TEXTURE_SPECIAL_ACID1
= DWORD(-2);
236 TEXTURE_SPECIAL_ACID2
= DWORD(-3);
237 TEXTURE_NONE
= DWORD(-4);
240 TPoint
= packed record
244 TTriggerData
= record
246 0: (Default
: Byte128
);
247 TRIGGER_EXIT
: (MapName
: Char16
);
248 TRIGGER_TELEPORT
: (TargetPoint
: TPoint
;
249 d2d_teleport
: Boolean;
250 silent_teleport
: Boolean;
260 TRIGGER_LIFT
: (PanelID
: Integer;
266 TRIGGER_ONOFF
: (tX
, tY
: Integer;
267 tWidth
, tHeight
: Word;
273 TRIGGER_TEXTURE
: (ActivateOnce
: Boolean;
275 TRIGGER_SOUND
: (SoundName
: Char64
;
280 SoundSwitch
: Boolean);
281 TRIGGER_SPAWNMONSTER
: (MonPos
: TPoint
;
291 TRIGGER_SPAWNITEM
: (ItemPos
: TPoint
;
299 TRIGGER_MUSIC
: (MusicName
: Char64
;
301 TRIGGER_PUSH
: (PushAngle
: Word;
304 TRIGGER_SCORE
: (ScoreAction
: Byte;
309 TRIGGER_MESSAGE
: (MessageKind
: Byte;
311 MessageText
: Char100
;
313 TRIGGER_DAMAGE
: (DamageValue
: Word;
314 DamageInterval
: Word);
315 TRIGGER_HEALTH
: (HealValue
: Word;
318 HealSilent
: Boolean);
319 TRIGGER_SHOT
: (ShotPos
: TPoint
;
324 ShotPanelID
: Integer;
330 ShotIntReload
: Word);
331 TRIGGER_EFFECT
: (FXCount
: Byte;
345 TRIGGER_SCRIPT
: (SCRProc
: Char64
;
349 {$INCLUDE mapstructsizes.inc}
355 {$INCLUDE mapstructio.inc}