9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
|
static const int MONSTERDAMAGEFACTOR = 4;
static const int SGRAYS = 20;
static const float SGSPREAD = 2;
static OFVector3D sg[SGRAYS];
static const guninfo guns[NUMGUNS] = {
{S_PUNCH1, 250, 50, 0, 0, 1, @"fist"},
{S_SG, 1400, 10, 0, 0, 20, @"shotgun"}, // *SGRAYS
{S_CG, 100, 30, 0, 0, 7, @"chaingun"},
{S_RLFIRE, 800, 120, 80, 0, 10, @"rocketlauncher"},
{S_RIFLE, 1500, 100, 0, 0, 30, @"rifle"},
{S_FLAUNCH, 200, 20, 50, 4, 1, @"fireball"},
{S_ICEBALL, 200, 40, 30, 6, 1, @"iceball"},
{S_SLIMEBALL, 200, 30, 160, 7, 1, @"slimeball"},
{S_PIGR1, 250, 50, 0, 0, 1, @"bite"},
{ S_PUNCH1, 250, 50, 0, 0, 1, @"fist" },
{ S_SG, 1400, 10, 0, 0, 20, @"shotgun" }, // *SGRAYS
{ S_CG, 100, 30, 0, 0, 7, @"chaingun" },
{ S_RLFIRE, 800, 120, 80, 0, 10, @"rocketlauncher" },
{ S_RIFLE, 1500, 100, 0, 0, 30, @"rifle" },
{ S_FLAUNCH, 200, 20, 50, 4, 1, @"fireball" },
{ S_ICEBALL, 200, 40, 30, 6, 1, @"iceball" },
{ S_SLIMEBALL, 200, 30, 160, 7, 1, @"slimeball" },
{ S_PIGR1, 250, 50, 0, 0, 1, @"bite" },
};
void
selectgun(int a, int b, int c)
{
if (a < -1 || b < -1 || c < -1 || a >= NUMGUNS || b >= NUMGUNS ||
c >= NUMGUNS)
|