X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fshared%2FMAPDEF.pas;h=640b69d4ddbedc5569e756916dcad1ab29349c3c;hb=d1fb1fce0a216ed61503c6ad592154eaf2885d1c;hp=c759528e75e860a4b18d344775f4dc571b6375db;hpb=ac201b02f10ef558087d50f6b03b4519ab567558;p=d2df-sdl.git diff --git a/src/shared/MAPDEF.pas b/src/shared/MAPDEF.pas index c759528..640b69d 100644 --- a/src/shared/MAPDEF.pas +++ b/src/shared/MAPDEF.pas @@ -1,4 +1,20 @@ -{$MODE DELPHI} +(* Copyright (C) DooM 2D:Forever Developers + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + *) +{$INCLUDE a_modes.inc} +{$M+} unit MAPDEF; { @@ -77,8 +93,10 @@ const ITEM_HELMET = 34; ITEM_JETPACK = 35; ITEM_INVIS = 36; + ITEM_WEAPON_FLAMETHROWER = 37; + ITEM_AMMO_FUELCAN = 38; - ITEM_MAX = 36; // store the last item's id in here + ITEM_MAX = 38; // store the last item's id in here // use this in for loops ITEM_OPTION_ONLYDM = 1; @@ -145,7 +163,8 @@ const TRIGGER_HEALTH = 26; TRIGGER_SHOT = 27; TRIGGER_EFFECT = 28; - TRIGGER_MAX = 28; + TRIGGER_SCRIPT = 29; + TRIGGER_MAX = 29; TRIGGER_SHOT_PISTOL = 0; TRIGGER_SHOT_BULLET = 1; @@ -172,6 +191,11 @@ const TRIGGER_SHOT_TARGET_MONPLR = 5; TRIGGER_SHOT_TARGET_PLRMON = 6; + TRIGGER_SHOT_AIM_DEFAULT = 0; + TRIGGER_SHOT_AIM_ALLMAP = 1; + TRIGGER_SHOT_AIM_TRACE = 2; + TRIGGER_SHOT_AIM_TRACEALL = 3; + TRIGGER_EFFECT_PARTICLE = 0; TRIGGER_EFFECT_ANIMATION = 1; @@ -209,7 +233,7 @@ const TEXTURE_SPECIAL_ACID2 = DWORD(-3); TEXTURE_NONE = DWORD(-4); -Type +type TPoint = packed record X, Y: LongInt; end; @@ -289,13 +313,13 @@ Type HealInterval: Word; HealMax: Boolean; HealSilent: Boolean); - TRIGGER_SHOT: (ShotType: Byte; + TRIGGER_SHOT: (ShotPos: TPoint; + ShotType: Byte; + ShotTarget: Byte; ShotSound: Boolean; + ShotAim: Byte; ShotPanelID: Integer; - ShotTarget: Byte; ShotIntSight: Word; - ShotAllMap: Boolean; - ShotPos: TPoint; ShotAngle: Word; ShotWait: Word; ShotAccuracy: Word; @@ -315,8 +339,16 @@ Type FXSpreadR: Byte; FXSpreadU: Byte; FXSpreadD: Byte); + TRIGGER_SCRIPT: (SCRProc: Char64; + SCRArg: Integer); end; +{$INCLUDE mapstructsizes.inc} + implementation +uses SysUtils; + +{$INCLUDE mapstructio.inc} + end.