1 (* Copyright (C) Doom 2D: Forever Developers
2 *
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, version 3 of the License ONLY.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 *)
15 {$INCLUDE ../shared/a_modes.inc}
18 interface
22 const
26 type
38 procedure positionChanged; inline; //WARNING! call this after entity position was changed, or coldet will not w>
41 var
51 implementation
53 uses
54 {$IFDEF ENABLE_GFX}
55 g_gfx,
56 {$ENDIF}
57 {$IFNDEF HEADLESS}
58 r_render,
59 {$ENDIF}
61 ;
63 type
66 var
71 begin
79 begin
81 begin
84 positionChanged;
89 begin
93 begin
101 begin
107 begin
111 Exit;
116 begin
118 begin
120 Break;
123 repeat
135 var
138 {$IFDEF ENABLE_GFX}
140 {$ENDIF}
141 begin
143 Exit;
145 Exit;
147 Exit;
149 {$IFDEF ENABLE_GFX}
151 {$ENDIF}
154 begin
156 begin
162 {$IFNDEF HEADLESS}
164 {$ELSE}
169 {$ENDIF}
175 {$IFDEF ENABLE_GFX}
177 begin
179 fX,
180 fY,
189 Blood.Kind
190 );
192 {$ENDIF}
195 else
203 begin
205 Exit;
209 begin
218 begin
220 Continue;
223 // Отлетает от удара о стену/потолок/пол:
240 // Сопротивление воздуха для куска трупа: