author | Wuzzy <Wuzzy2@mail.ru> |
Wed, 18 Jul 2018 17:02:40 +0200 | |
changeset 13515 | 60bcc20e6ab0 |
parent 13510 | 69f0f437c75a |
child 13537 | ee77086fc5fa |
permissions | -rw-r--r-- |
4 | 1 |
(* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
11046 | 3 |
* Copyright (c) 2004-2015 Andrey Korotaev <unC0Rr@gmail.com> |
4 | 4 |
* |
183 | 5 |
* This program is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
4 | 8 |
* |
183 | 9 |
* This program is distributed in the hope that it will be useful, |
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
4 | 13 |
* |
183 | 14 |
* You should have received a copy of the GNU General Public License |
15 |
* along with this program; if not, write to the Free Software |
|
10108
c68cf030eded
update FSF address. note: two sdl include files (by Sam Lantinga) still have the old FSF address in their copyright - but I ain't gonna touch their copyright headers
sheepluva
parents:
10015
diff
changeset
|
16 |
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
4 | 17 |
*) |
18 |
||
2599 | 19 |
{$INCLUDE "options.inc"} |
2587
0dfa56a8513c
fix a segfault in the iphone simulator by moving options.inc at the beginning of the file
koda
parents:
2586
diff
changeset
|
20 |
|
4 | 21 |
unit uConsts; |
22 |
interface |
|
1906 | 23 |
|
4361 | 24 |
uses SDLh, uFloat, GLunit; |
1906 | 25 |
|
2924 | 26 |
{$INCLUDE "config.inc"} |
2671
7e0f88013fe8
smaller patches, one missing Sky-lowres, IMG_Init and Mix_Init (might require newer libraries), updates to SDL bindings, code cleanup, new compile flags
koda
parents:
2653
diff
changeset
|
27 |
|
3709 | 28 |
const |
11841 | 29 |
HDPIScaleFactor = 1; |
12604
95f0e475ca8e
change return codes to avoid overlap with fpc ones
sheepluva
parents:
12598
diff
changeset
|
30 |
|
95f0e475ca8e
change return codes to avoid overlap with fpc ones
sheepluva
parents:
12598
diff
changeset
|
31 |
// application return codes |
10307
e13d3147f15b
do not get stuck on "in game..." page just because of game crash. output a message instead. could still need some tweaking, but a man gotta sleep. and sheep too...
sheepluva
parents:
10306
diff
changeset
|
32 |
HaltNoError = 0; |
12604
95f0e475ca8e
change return codes to avoid overlap with fpc ones
sheepluva
parents:
12598
diff
changeset
|
33 |
|
95f0e475ca8e
change return codes to avoid overlap with fpc ones
sheepluva
parents:
12598
diff
changeset
|
34 |
// error codes are placed in range 50-99 because that way then don't overlap with run-time errors of pascal |
95f0e475ca8e
change return codes to avoid overlap with fpc ones
sheepluva
parents:
12598
diff
changeset
|
35 |
// see https://www.freepascal.org/docs-html/user/userap4.html |
95f0e475ca8e
change return codes to avoid overlap with fpc ones
sheepluva
parents:
12598
diff
changeset
|
36 |
HaltUsageError = 51; |
95f0e475ca8e
change return codes to avoid overlap with fpc ones
sheepluva
parents:
12598
diff
changeset
|
37 |
HaltFatalError = 52; |
95f0e475ca8e
change return codes to avoid overlap with fpc ones
sheepluva
parents:
12598
diff
changeset
|
38 |
HaltStartupError = 53; |
95f0e475ca8e
change return codes to avoid overlap with fpc ones
sheepluva
parents:
12598
diff
changeset
|
39 |
HaltFatalErrorNoIPC = 54; |
13500
b5f8864a38d3
Add proper exit codes when halt-ing hwengine due to error
Wuzzy <Wuzzy2@mail.ru>
parents:
13469
diff
changeset
|
40 |
HaltVideoRec = 55; |
10306 | 41 |
|
42 |
// for automatic tests |
|
10307
e13d3147f15b
do not get stuck on "in game..." page just because of game crash. output a message instead. could still need some tweaking, but a man gotta sleep. and sheep too...
sheepluva
parents:
10306
diff
changeset
|
43 |
HaltTestSuccess = 0; |
12604
95f0e475ca8e
change return codes to avoid overlap with fpc ones
sheepluva
parents:
12598
diff
changeset
|
44 |
HaltTestFailed = 60; |
95f0e475ca8e
change return codes to avoid overlap with fpc ones
sheepluva
parents:
12598
diff
changeset
|
45 |
HaltTestLuaError = 61; |
95f0e475ca8e
change return codes to avoid overlap with fpc ones
sheepluva
parents:
12598
diff
changeset
|
46 |
HaltTestUnexpected = 62; |
10306 | 47 |
|
48 |
||
3709 | 49 |
sfMax = 1000; |
3107 | 50 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
51 |
// message constants |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
52 |
errmsgCreateSurface = 'Error creating SDL surface'; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
53 |
errmsgTransparentSet = 'Error setting transparent color'; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
54 |
errmsgUnknownCommand = 'Unknown command'; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
55 |
errmsgUnknownVariable = 'Unknown variable'; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
56 |
errmsgIncorrectUse = 'Incorrect use'; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
57 |
errmsgShouldntRun = 'This program shouldn''t be run manually'; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
58 |
errmsgWrongNumber = 'Wrong parameters number'; |
10622 | 59 |
errmsgLuaTestTerm = 'WARNING: Lua test terminated before the test was properly finished with EndLuaTest()!'; |
4 | 60 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
61 |
msgLoading = 'Loading '; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
62 |
msgOK = 'ok'; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
63 |
msgFailed = 'failed'; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
64 |
msgFailedSize = 'failed due to size'; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
65 |
msgGettingConfig = 'Getting game config...'; |
4 | 66 |
|
8346 | 67 |
// camera movement multipliers |
68 |
cameraKeyboardSpeed : ShortInt = 10; |
|
69 |
||
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
70 |
// color constants |
9311
5baf10a52f43
engine uses final (?) SDL 2 APIs, new events and types added. Touch input broke by the way, and system events should be handled differently
koda
parents:
9249
diff
changeset
|
71 |
cWhiteColorChannels : TSDL_Color = (r:$FF; g:$FF; b:$FF; a:$FF); |
5baf10a52f43
engine uses final (?) SDL 2 APIs, new events and types added. Touch input broke by the way, and system events should be handled differently
koda
parents:
9249
diff
changeset
|
72 |
cNearBlackColorChannels : TSDL_Color = (r:$00; g:$00; b:$10; a:$FF); |
2699
249adefa9c1c
replace initialization/finalization statements with custom init functions
koda
parents:
2697
diff
changeset
|
73 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
74 |
cWhiteColor : Longword = $FFFFFFFF; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
75 |
cYellowColor : Longword = $FFFFFF00; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
76 |
cNearBlackColor : Longword = $FF000010; |
2376 | 77 |
|
2699
249adefa9c1c
replace initialization/finalization statements with custom init functions
koda
parents:
2697
diff
changeset
|
78 |
{$WARNINGS OFF} |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
79 |
cAirPlaneSpeed: hwFloat = (isNegative: false; QWordValue: 3006477107); // 1.4 |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
80 |
cBombsSpeed : hwFloat = (isNegative: false; QWordValue: 429496729); |
2699
249adefa9c1c
replace initialization/finalization statements with custom init functions
koda
parents:
2697
diff
changeset
|
81 |
{$WARNINGS ON} |
621 | 82 |
|
3594
aeca3d8f1b29
turn cReducedQuality into a LongInt and provide a series of quality flags (and best of all, this is still compatible with current frontend)
koda
parents:
3569
diff
changeset
|
83 |
// reducedquality flags |
aeca3d8f1b29
turn cReducedQuality into a LongInt and provide a series of quality flags (and best of all, this is still compatible with current frontend)
koda
parents:
3569
diff
changeset
|
84 |
rqNone = $00000000; // don't reduce quality |
3634 | 85 |
rqLowRes = $00000001; // use half land array |
86 |
rqBlurryLand = $00000002; // downscaled terrain |
|
3594
aeca3d8f1b29
turn cReducedQuality into a LongInt and provide a series of quality flags (and best of all, this is still compatible with current frontend)
koda
parents:
3569
diff
changeset
|
87 |
rqNoBackground= $00000004; // don't draw background |
3862 | 88 |
rqSimpleRope = $00000008; // draw rope using lines only |
89 |
rq2DWater = $00000010; // disable 3D water effect |
|
4809
9c7d5f802618
rearrange quality flags a little, disable snow rendering on rqLowRes
koda
parents:
4808
diff
changeset
|
90 |
rqAntiBoom = $00000020; // no fancy explosion effects |
3594
aeca3d8f1b29
turn cReducedQuality into a LongInt and provide a series of quality flags (and best of all, this is still compatible with current frontend)
koda
parents:
3569
diff
changeset
|
91 |
rqKillFlakes = $00000040; // no flakes |
aeca3d8f1b29
turn cReducedQuality into a LongInt and provide a series of quality flags (and best of all, this is still compatible with current frontend)
koda
parents:
3569
diff
changeset
|
92 |
rqSlowMenu = $00000080; // ammomenu appears with no animation |
aeca3d8f1b29
turn cReducedQuality into a LongInt and provide a series of quality flags (and best of all, this is still compatible with current frontend)
koda
parents:
3569
diff
changeset
|
93 |
rqPlainSplash = $00000100; // no droplets |
3611 | 94 |
rqClampLess = $00000200; // don't clamp textures |
3634 | 95 |
rqTooltipsOff = $00000400; // tooltips are not drawn |
3670
4c673e57f0d7
use llvm to compile, don't preview map on wimpier devices, merge vsync, fix iphone launch image
koda
parents:
3668
diff
changeset
|
96 |
rqDesyncVBlank= $00000800; // don't sync on vblank |
3594
aeca3d8f1b29
turn cReducedQuality into a LongInt and provide a series of quality flags (and best of all, this is still compatible with current frontend)
koda
parents:
3569
diff
changeset
|
97 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
98 |
// image flags (for LoadImage()) |
12598 | 99 |
// TODO: discuss whether ifAlpha and ifColorKey are actually needed and if and where we want to support which colorkeys |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
100 |
ifNone = $00000000; // nothing special |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
101 |
ifAlpha = $00000001; // use alpha channel (unused right now?) |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
102 |
ifCritical = $00000002; // image is critical for gameplay (exit game if unable to load) |
12598 | 103 |
ifColorKey = $00000004; // image uses transparent pixels (color keying) |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
104 |
ifIgnoreCaps = $00000008; // ignore hardware capabilities when loading (i.e. image will not be drawn using OpenGL) |
74 | 105 |
|
3491 | 106 |
// texture priority (allows OpenGL to keep frequently used textures in video memory more easily) |
3594
aeca3d8f1b29
turn cReducedQuality into a LongInt and provide a series of quality flags (and best of all, this is still compatible with current frontend)
koda
parents:
3569
diff
changeset
|
107 |
tpLowest = 0.00; |
3491 | 108 |
tpLow = 0.25; |
109 |
tpMedium = 0.50; |
|
110 |
tpHigh = 0.75; |
|
3594
aeca3d8f1b29
turn cReducedQuality into a LongInt and provide a series of quality flags (and best of all, this is still compatible with current frontend)
koda
parents:
3569
diff
changeset
|
111 |
tpHighest = 1.00; |
3491 | 112 |
|
3509
d72c2219595d
Make land types flagged (to allow stacking future attributes such as indestructible ice, but also for a damaged flag)
nemo
parents:
3493
diff
changeset
|
113 |
// To allow these to layer, going to treat them as masks. The bottom byte is reserved for objects |
3524
8d0783d2a0ff
This reduces CheckLand ~5.5% on average over prior making the overall reduction ~77.4% instead of ~81.9%. It does skip centre pixel in odd w/h, but that really shouldn't matter much in this case. Can alter if any objects are noticeably off.
nemo
parents:
3519
diff
changeset
|
114 |
// TODO - set lfBasic for all solid land, ensure all uses of the flags can handle multiple flag bits |
6081
537bbd5c1a62
Basic test implementation of an ice flag. Allows for slick parts of terrain. Intended for ice gun, or "ice" mask on portions of land objects.
nemo
parents:
6077
diff
changeset
|
115 |
// lfObject and lfBasic are only to be different *graphically* in all other ways they should be treated the same |
10717
0810826cdf80
Tweak to land texturing. Treat any non-lfBasic as edge
nemo
parents:
10661
diff
changeset
|
116 |
lfBasic = $8000; // black |
3519 | 117 |
lfIndestructible = $4000; // red |
10717
0810826cdf80
Tweak to land texturing. Treat any non-lfBasic as edge
nemo
parents:
10661
diff
changeset
|
118 |
lfObject = $2000; // white |
6081
537bbd5c1a62
Basic test implementation of an ice flag. Allows for slick parts of terrain. Intended for ice gun, or "ice" mask on portions of land objects.
nemo
parents:
6077
diff
changeset
|
119 |
lfDamaged = $1000; // |
537bbd5c1a62
Basic test implementation of an ice flag. Allows for slick parts of terrain. Intended for ice gun, or "ice" mask on portions of land objects.
nemo
parents:
6077
diff
changeset
|
120 |
lfIce = $0800; // blue |
7293
468cf6d561e5
Add green mask for anti-portal areas on custom maps. Flagged as Bouncy since it is intended for that general use. Needs testing.
nemo
parents:
7197
diff
changeset
|
121 |
lfBouncy = $0400; // green |
8751
4609823efc94
More flagging of Land values. Also use less than for tests of non-terrain, instead of "and $FF00 = 0". Saves a couple of ops, which actually matters a small amount in a few places.
nemo
parents:
8744
diff
changeset
|
122 |
lfLandMask = $FF00; // upper byte is used for terrain, not objects. |
64 | 123 |
|
13468
f1d349a52bc7
Refactor: lfCurrentHog→lfCurHogCrate, lfNotCurrentMask→lfNotCurHogCrate
Wuzzy <Wuzzy2@mail.ru>
parents:
13459
diff
changeset
|
124 |
lfCurHogCrate = $0080; // CurrentHedgehog, and crates, for convenience of AI. Since an active hog would instantly collect the crate, this does not impact playj |
f1d349a52bc7
Refactor: lfCurrentHog→lfCurHogCrate, lfNotCurrentMask→lfNotCurHogCrate
Wuzzy <Wuzzy2@mail.ru>
parents:
13459
diff
changeset
|
125 |
lfNotCurHogCrate = $FF7F; // inverse of above. frequently used |
11594
c453620cc6d6
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
nemo
parents:
11058
diff
changeset
|
126 |
lfObjMask = $007F; // lower 7 bits used for hogs and explosives and mines |
8744 | 127 |
lfNotObjMask = $FF80; // inverse of above. |
11594
c453620cc6d6
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
nemo
parents:
11058
diff
changeset
|
128 |
|
c453620cc6d6
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
nemo
parents:
11058
diff
changeset
|
129 |
// breaking up hogs would makes it easier to differentiate |
c453620cc6d6
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
nemo
parents:
11058
diff
changeset
|
130 |
// colliding with a hog from colliding with other things |
c453620cc6d6
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
nemo
parents:
11058
diff
changeset
|
131 |
// if overlapping hogs are less common than objects, the division can be altered. |
c453620cc6d6
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
nemo
parents:
11058
diff
changeset
|
132 |
// 3 bits for objects, 4 for hogs, that is, overlap 7 barrels/mines before possible dents, and 15 hogs. |
c453620cc6d6
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
nemo
parents:
11058
diff
changeset
|
133 |
lfHHMask = $000F; // lower 4 bits used only for hogs |
c453620cc6d6
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
nemo
parents:
11058
diff
changeset
|
134 |
lfNotHHObjMask = $0070; // next 3 bits used for non-hog things |
c453620cc6d6
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
nemo
parents:
11058
diff
changeset
|
135 |
lfNotHHObjShift = 4; |
c453620cc6d6
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
nemo
parents:
11058
diff
changeset
|
136 |
lfNotHHObjSize = lfNotHHObjMask shr lfNotHHObjShift; |
c453620cc6d6
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
nemo
parents:
11058
diff
changeset
|
137 |
|
10015 | 138 |
// lower byte is for objects. |
139 |
// consists of 0-127 counted for object checkins and $80 as a bit flag for current hog. |
|
13468
f1d349a52bc7
Refactor: lfCurrentHog→lfCurHogCrate, lfNotCurrentMask→lfNotCurHogCrate
Wuzzy <Wuzzy2@mail.ru>
parents:
13459
diff
changeset
|
140 |
lfAllObjMask = $00FF; // lfCurHogCrate or lfObjMask |
8751
4609823efc94
More flagging of Land values. Also use less than for tests of non-terrain, instead of "and $FF00 = 0". Saves a couple of ops, which actually matters a small amount in a few places.
nemo
parents:
8744
diff
changeset
|
141 |
|
13469
7b4643ff60ea
Refactor collision mask checks, remove hardcoded numbers
Wuzzy <Wuzzy2@mail.ru>
parents:
13468
diff
changeset
|
142 |
lfAll = $FFFF; // everything |
7b4643ff60ea
Refactor collision mask checks, remove hardcoded numbers
Wuzzy <Wuzzy2@mail.ru>
parents:
13468
diff
changeset
|
143 |
|
8744 | 144 |
|
11594
c453620cc6d6
Break up the hog/object collision. Currently is $7F, allowing 128 overlapping objects accurately. Breaking it up into 15 for hogs, 7 for other objects. I'm thinking the overall accuracy should be just fine as far as people noticing even with a ton of overlapping hogs, and this way we can tell the difference between a hog and "something else". For experiment and rope-breaking purposes, make rope pass through hogs.
nemo
parents:
11058
diff
changeset
|
145 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
146 |
cMaxPower = 1500; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
147 |
cMaxAngle = 2048; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
148 |
cPowerDivisor = 1500; |
2699
249adefa9c1c
replace initialization/finalization statements with custom init functions
koda
parents:
2697
diff
changeset
|
149 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
150 |
MAXNAMELEN = 192; |
4396
3cfd2e15464a
After repeated requests, variable length rope. Intended for the infinite rope folks, but values less than 100 make rope more interesting IMO.
nemo
parents:
4385
diff
changeset
|
151 |
MAXROPEPOINTS = 3840; |
3697 | 152 |
|
6891
ab9843957664
Improve rendering of function types, ranges, and more
unc0rr
parents:
6797
diff
changeset
|
153 |
{$IFNDEF PAS2C} |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
154 |
// some opengl headers do not have these macros |
3493 | 155 |
GL_BGR = $80E0; |
156 |
GL_BGRA = $80E1; |
|
157 |
GL_CLAMP_TO_EDGE = $812F; |
|
158 |
GL_TEXTURE_PRIORITY = $8066; |
|
6891
ab9843957664
Improve rendering of function types, ranges, and more
unc0rr
parents:
6797
diff
changeset
|
159 |
{$ENDIF} |
3697 | 160 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
161 |
cVisibleWater : LongInt = 128; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
162 |
cTeamHealthWidth : LongInt = 128; |
2163
12730f5e79b9
koda's patch fixing some iphone port troubles (color, mouse)
unc0rr
parents:
2153
diff
changeset
|
163 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
164 |
cifRandomize = $00000001; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
165 |
cifTheme = $00000002; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
166 |
cifMap = $00000002; // either theme or map (or map+theme) |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
167 |
cifAllInited = cifRandomize or cifTheme or cifMap; |
55
e09f7c952a40
Send run parameters by cmd line, game parameters by IPC... breaks network game
unc0rr
parents:
53
diff
changeset
|
168 |
|
5441
39962b855540
Add grayscale option for 3d, helps with colour clashing
nemo
parents:
5366
diff
changeset
|
169 |
RGB_LUMINANCE_RED = 0.212671; |
39962b855540
Add grayscale option for 3d, helps with colour clashing
nemo
parents:
5366
diff
changeset
|
170 |
RGB_LUMINANCE_GREEN = 0.715160; |
39962b855540
Add grayscale option for 3d, helps with colour clashing
nemo
parents:
5366
diff
changeset
|
171 |
RGB_LUMINANCE_BLUE = 0.072169; |
4 | 172 |
|
4406
beb4de0af990
Increase teams to 8 to match the 8 colours, fix issue #108, reenable rope length modifier
nemo
parents:
4396
diff
changeset
|
173 |
cMaxTeams = 8; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
174 |
cMaxHHIndex = 7; |
13510 | 175 |
cMaxHHs = cMaxTeams * (cMaxHHIndex+1); |
4 | 176 |
|
10499 | 177 |
cMaxEdgePoints = 32768; |
22 | 178 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
179 |
cHHRadius = 9; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
180 |
cHHStepTicks = 29; |
509 | 181 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
182 |
cHHZ = 1000; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
183 |
cCurrHHZ = Succ(cHHZ); |
4 | 184 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
185 |
cBarrelHealth = 60; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
186 |
cShotgunRadius = 22; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
187 |
cBlowTorchC = 6; |
7416
2f2f78fc65a3
AI uses cake! Known issues: AI could damage itself for no reason, could let cake go looping in a hole with exit closed by AI hog.
unc0rr
parents:
7400
diff
changeset
|
188 |
cakeDmg = 75; |
509 | 189 |
|
8026
4a4f21070479
merge xymeng's gsoc engine with a few updates (and further checks on symbol definitions)
koda
parents:
7996
diff
changeset
|
190 |
cKeyMaxIndex = 1600; |
7191
9419294e5f33
first attempt at implementing support for keys with modifiers
Xeli
parents:
6982
diff
changeset
|
191 |
cKbdMaxIndex = 65536;//need more room for the modifier keys |
6917 | 192 |
|
11841 | 193 |
cFontBorder = 2 * HDPIScaleFactor; |
194 |
cFontPadding = 2 * HDPIScaleFactor; |
|
4 | 195 |
|
11058
b91667fd6f20
Lua API: SetMaxBuildDistance([ distInPx ]) -- set to 0 for no limit; call with no param to reset to default
sheepluva
parents:
11046
diff
changeset
|
196 |
cDefaultBuildMaxDist = 256; |
b91667fd6f20
Lua API: SetMaxBuildDistance([ distInPx ]) -- set to 0 for no limit; call with no param to reset to default
sheepluva
parents:
11046
diff
changeset
|
197 |
|
3737
2ba6ac8a114b
reworked the initialization functions, now it should be safe to update and no more need of spinning wheel at first launch
koda
parents:
3734
diff
changeset
|
198 |
// do not change this value |
3668
3f7a95234d8a
tap to play piano notes, fix for audio and pause glitch
koda
parents:
3667
diff
changeset
|
199 |
cDefaultZoomLevel = 2.0; |
3737
2ba6ac8a114b
reworked the initialization functions, now it should be safe to update and no more need of spinning wheel at first launch
koda
parents:
3734
diff
changeset
|
200 |
|
7996 | 201 |
// game flags |
3743 | 202 |
gfAny = $FFFFFFFF; |
4000
ddc4a09889e7
engine: reorder GameFlags and update files, frontend and other stuff
koda
parents:
3999
diff
changeset
|
203 |
gfOneClanMode = $00000001; // used in trainings |
3999 | 204 |
gfMultiWeapon = $00000002; // used in trainings |
3743 | 205 |
gfSolidLand = $00000004; |
206 |
gfBorder = $00000008; |
|
207 |
gfDivideTeams = $00000010; |
|
208 |
gfLowGravity = $00000020; |
|
209 |
gfLaserSight = $00000040; |
|
210 |
gfInvulnerable = $00000080; |
|
4099 | 211 |
gfResetHealth = $00000100; |
3743 | 212 |
gfVampiric = $00000200; |
213 |
gfKarma = $00000400; |
|
214 |
gfArtillery = $00000800; |
|
13277
5984e8c6cbeb
Add new game flag gfSwitchHog, enable hog switching at turn start
Wuzzy <Wuzzy2@mail.ru>
parents:
12903
diff
changeset
|
215 |
gfSwitchHog = $00001000; |
3743 | 216 |
gfRandomOrder = $00002000; |
217 |
gfKing = $00004000; |
|
218 |
gfPlaceHog = $00008000; |
|
219 |
gfSharedAmmo = $00010000; |
|
220 |
gfDisableGirders = $00020000; |
|
4000
ddc4a09889e7
engine: reorder GameFlags and update files, frontend and other stuff
koda
parents:
3999
diff
changeset
|
221 |
gfDisableLandObjects = $00040000; |
ddc4a09889e7
engine: reorder GameFlags and update files, frontend and other stuff
koda
parents:
3999
diff
changeset
|
222 |
gfAISurvival = $00080000; |
ddc4a09889e7
engine: reorder GameFlags and update files, frontend and other stuff
koda
parents:
3999
diff
changeset
|
223 |
gfInfAttack = $00100000; |
ddc4a09889e7
engine: reorder GameFlags and update files, frontend and other stuff
koda
parents:
3999
diff
changeset
|
224 |
gfResetWeps = $00200000; |
ddc4a09889e7
engine: reorder GameFlags and update files, frontend and other stuff
koda
parents:
3999
diff
changeset
|
225 |
gfPerHogAmmo = $00400000; |
4776
ab956d4647a4
set windspeed to 0 at the very beginning of the game. (fixes DisableWind game modifier)
sheepluva
parents:
4406
diff
changeset
|
226 |
gfDisableWind = $00800000; |
4272
cf18de7ea3d4
engine side of a more wind patch. no frontend hook. just want to check it in to pull it from another machine
nemo
parents:
4246
diff
changeset
|
227 |
gfMoreWind = $01000000; |
5016
9347d82a26cc
added game mode Tag Team, mostly untested, please test :)
Henek
parents:
4976
diff
changeset
|
228 |
gfTagTeam = $02000000; |
5717 | 229 |
gfBottomBorder = $04000000; |
9387 | 230 |
gfShoppaBorder = $08000000; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
231 |
// NOTE: When adding new game flags, ask yourself |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
232 |
// if a "game start notice" would be useful. If so, |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
233 |
// add one in uWorld.pas - look for "AddGoal". |
4 | 234 |
|
7996 | 235 |
// gear states |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
236 |
gstDrowning = $00000001; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
237 |
gstHHDriven = $00000002; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
238 |
gstMoving = $00000004; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
239 |
gstAttacked = $00000008; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
240 |
gstAttacking = $00000010; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
241 |
gstCollision = $00000020; |
10818
f642a28cab0c
Add placement of airmines in engine outside of hog proximity. Has a bug, only protecting 1st team. Also fix a spelling error and rename gstHHChooseTarget to gstChooseTarget
nemo
parents:
10789
diff
changeset
|
242 |
gstChooseTarget = $00000040; |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
243 |
gstHHJumping = $00000100; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
244 |
gsttmpFlag = $00000200; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
245 |
gstHHThinking = $00000800; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
246 |
gstNoDamage = $00001000; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
247 |
gstHHHJump = $00002000; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
248 |
gstAnimation = $00004000; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
249 |
gstHHDeath = $00008000; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
250 |
gstWinner = $00010000; // this, along with gstLoser, is good for indicating hedgies know they screwed up |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
251 |
gstWait = $00020000; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
252 |
gstNotKickable = $00040000; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
253 |
gstLoser = $00080000; |
3310 | 254 |
gstHHGone = $00100000; |
5348
0bc81de36e08
Don't draw snow flakes spawned in land, introduce gstInvisible flag
unc0rr
parents:
5316
diff
changeset
|
255 |
gstInvisible = $00200000; |
9026
f6074540bab2
Add gstFrozen state to mines/gears in range on frozen land creation, and set the mines to dud state. gstFrozen does nothing yet. Visually or otherwise.
nemo
parents:
8992
diff
changeset
|
256 |
gstSubmersible = $00400000; |
f6074540bab2
Add gstFrozen state to mines/gears in range on frozen land creation, and set the mines to dud state. gstFrozen does nothing yet. Visually or otherwise.
nemo
parents:
8992
diff
changeset
|
257 |
gstFrozen = $00800000; |
10789
acbf69e2e5cf
experiment with air mines. thought they could make shoppa... interesting. ToDo: Allow mines to give up, tweak distances, real graphics, toggle for whether they can acquire a new target while they haven't given up.
nemo
parents:
10717
diff
changeset
|
258 |
gstNoGravity = $01000000; |
4 | 259 |
|
7996 | 260 |
// gear messages |
7400
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
261 |
gmLeft = $00000001; |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
262 |
gmRight = $00000002; |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
263 |
gmUp = $00000004; |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
264 |
gmDown = $00000008; |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
265 |
gmSwitch = $00000010; |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
266 |
gmAttack = $00000020; |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
267 |
gmLJump = $00000040; |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
268 |
gmHJump = $00000080; |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
269 |
gmDestroy = $00000100; |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
270 |
gmSlot = $00000200; // with param |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
271 |
gmWeapon = $00000400; // with param |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
272 |
gmTimer = $00000800; // with param |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
273 |
gmAnimate = $00001000; // with param |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
274 |
gmPrecise = $00002000; |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
275 |
|
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
276 |
gmRemoveFromList = $00004000; |
09427dbec1d8
Fix TARDIS, make switcher work w/ the new more stringent check.
nemo
parents:
7293
diff
changeset
|
277 |
gmAddToList = $00008000; |
7517 | 278 |
gmDelete = $00010000; |
3894 | 279 |
gmAllStoppable = gmLeft or gmRight or gmUp or gmDown or gmAttack or gmPrecise; |
4 | 280 |
|
12713
5ef6780b1c05
Move amNothing from F1 slot to new special hidden weapon slot. Move amDuck to F1
Wuzzy <almikes@aol.com>
parents:
12692
diff
changeset
|
281 |
cMaxSlotIndex = 10; |
5ef6780b1c05
Move amNothing from F1 slot to new special hidden weapon slot. Move amDuck to F1
Wuzzy <almikes@aol.com>
parents:
12692
diff
changeset
|
282 |
cHiddenSlotIndex = cMaxSlotIndex; // slot for hidden ammo types, not visible and has no key |
12903 | 283 |
cMaxSlotAmmoIndex = 6; |
8330 | 284 |
|
7996 | 285 |
// ai hints |
286 |
aihUsualProcessing = $00000000; |
|
287 |
aihDoesntMatter = $00000001; |
|
8330 | 288 |
|
7996 | 289 |
// ammo properties |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
290 |
ammoprop_Timerable = $00000001; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
291 |
ammoprop_Power = $00000002; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
292 |
ammoprop_NeedTarget = $00000004; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
293 |
ammoprop_ForwMsgs = $00000008; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
294 |
ammoprop_AttackInMove = $00000010; |
9573 | 295 |
ammoprop_DoesntStopTimerWhileAttacking |
296 |
= $00000020; |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
297 |
ammoprop_NoCrosshair = $00000040; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
298 |
ammoprop_AttackingPut = $00000080; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
299 |
ammoprop_DontHold = $00000100; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
300 |
ammoprop_AltAttack = $00000200; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
301 |
ammoprop_AltUse = $00000400; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
302 |
ammoprop_NotBorder = $00000800; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
303 |
ammoprop_Utility = $00001000; |
3037
ab6e949eb5cb
Rename current things called utilities to Effects (since they impact game state / flags w/o using a gear) and add a bunch of things that don't cause damage and are just used to move to Utility crate.
nemo
parents:
3032
diff
changeset
|
304 |
ammoprop_Effect = $00002000; |
5316
191cd6c06203
Allow control of grenade bounce. Not sure if this is a good idea, but has been requested a lot, so...
nemo
parents:
5313
diff
changeset
|
305 |
ammoprop_SetBounce = $00004000; |
8330 | 306 |
ammoprop_NeedUpDown = $00008000;//Used by TouchInterface to show or hide up/down widgets |
7197
5a9775b97c7e
- TestSniperRifle ftw (still needs some consts adjustments, because AI seems to love sniper rifle too much)
unc0rr
parents:
7191
diff
changeset
|
307 |
ammoprop_OscAim = $00010000; |
5a9775b97c7e
- TestSniperRifle ftw (still needs some consts adjustments, because AI seems to love sniper rifle too much)
unc0rr
parents:
7191
diff
changeset
|
308 |
ammoprop_NoMoveAfter = $00020000; |
7416
2f2f78fc65a3
AI uses cake! Known issues: AI could damage itself for no reason, could let cake go looping in a hole with exit closed by AI hog.
unc0rr
parents:
7400
diff
changeset
|
309 |
ammoprop_Track = $00040000; |
9573 | 310 |
ammoprop_DoesntStopTimerInMultiShoot |
311 |
= $00080000; |
|
11920
16ce211010cf
Add ammoprop for blowtorch and pickhammer for not stopping timer in inf attack
Wuzzy <almikes@aol.com>
parents:
11841
diff
changeset
|
312 |
ammoprop_DoesntStopTimerWhileAttackingInInfAttackMode |
16ce211010cf
Add ammoprop for blowtorch and pickhammer for not stopping timer in inf attack
Wuzzy <almikes@aol.com>
parents:
11841
diff
changeset
|
313 |
= $00100000; |
12654
2837dee472cc
Show selected weapon again when using it in inf attack mode
Wuzzy <almikes@aol.com>
parents:
12604
diff
changeset
|
314 |
ammoprop_ForceTurnEnd = $00200000; |
12692
ebb32d3021a5
Fix cursor still being visible after using piano strike
Wuzzy <almikes@aol.com>
parents:
12676
diff
changeset
|
315 |
ammoprop_NoTargetAfter= $00400000; |
4828 | 316 |
ammoprop_NoRoundEnd = $10000000; |
3697 | 317 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
318 |
AMMO_INFINITE = 100; |
12676
87b3009f51c3
Fix team getting inf. ammo when stockpiling >= 100 ammo
Wuzzy <almikes@aol.com>
parents:
12654
diff
changeset
|
319 |
AMMO_FINITE_MAX = 99; |
4 | 320 |
|
13459
794dcf69a5aa
New Lua API function: GetAmmo, to get ammo config
Wuzzy <Wuzzy2@mail.ru>
parents:
13277
diff
changeset
|
321 |
probabilityLevels: array [0..8] of LongWord = (0,20,30,60,100,200,400,600,800); |
794dcf69a5aa
New Lua API function: GetAmmo, to get ammo config
Wuzzy <Wuzzy2@mail.ru>
parents:
13277
diff
changeset
|
322 |
|
7996 | 323 |
// explosion flags |
6765 | 324 |
//EXPLAllDamageInRadius = $00000001; Completely unused for ages |
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
325 |
EXPLAutoSound = $00000002; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
326 |
EXPLNoDamage = $00000004; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
327 |
EXPLDoNotTouchHH = $00000008; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
328 |
EXPLDontDraw = $00000010; |
3004 | 329 |
EXPLNoGfx = $00000020; |
3383 | 330 |
EXPLPoisoned = $00000040; |
3712 | 331 |
EXPLDoNotTouchAny = $00000080; |
42 | 332 |
|
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
333 |
posCaseAmmo = $00000001; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
334 |
posCaseHealth = $00000002; |
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
335 |
posCaseUtility = $00000004; |
5313
5e18eaef65d0
now scripts can create unique crates: dummy (empty) crates and booby traps. scripts can also set health crate values
Henek
parents:
5016
diff
changeset
|
336 |
posCaseDummy = $00000008; |
5343 | 337 |
posCaseExplode = $00000010; |
338 |
posCasePoison = $00000020; |
|
4 | 339 |
|
10506 | 340 |
cCaseHealthRadius = 14; |
341 |
||
9249 | 342 |
// hog tag mask |
343 |
//htNone = $00; |
|
344 |
htTeamName = $01; |
|
345 |
htName = $02; |
|
346 |
htHealth = $04; |
|
347 |
htTransparent = $08; |
|
348 |
||
2948
3f21a9dc93d0
Replace tabs with spaces using 'expand -t 4' command
unc0rr
parents:
2947
diff
changeset
|
349 |
NoPointX = Low(LongInt); |
9521
8054d9d775fd
merge with latest defaul, fixing compiling with fpc, parsing and rendering with pas2c, some minor problems with compiling with clang
koda
diff
changeset
|
350 |
cTargetPointRef : TPoint = (x: NoPointX; y: 0); |
4 | 351 |
|
8204 | 352 |
kSystemSoundID_Vibrate = $00000FFF; |
353 |
||
10354 | 354 |
cMinPlayWidth = 200; |
10661 | 355 |
cWorldEdgeDist = 200; |
10354 | 356 |
|
4 | 357 |
implementation |
2716
b9ca1bfca24f
complete the replacement of init/free wrappers for every unit
koda
parents:
2715
diff
changeset
|
358 |
|
3145 | 359 |
end. |