1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// Copyright(C) 1993-1996 Id Software, Inc.
// Copyright(C) 2005 Simon Howard
//
// 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 2
// 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, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
// DESCRIPTION:
//
//-----------------------------------------------------------------------------
// We are referring to sprite numbers.
#include "info.h"
#include "d_items.h"
//
// PSPRITE ACTIONS for waepons.
// This struct controls the weapon animations.
//
// Each entry is:
// ammo/amunition type
// upstate
// downstate
// readystate
// atkstate, i.e. attack/fire/hit frame
// flashstate, muzzle flash
//
// villsa [STRIFE] TODO - set ammo
weaponinfo_t weaponinfo[NUMWEAPONS] =
{
{
// fist
am_noammo,
S_PNCH_03,
S_PNCH_02,
S_PNCH_01,
S_PNCH_04,
S_NULL,
1
},
{
// electric bow
am_elecbolts,
S_XBOW_02,
S_XBOW_01,
S_XBOW_00,
S_XBOW_03,
S_NULL,
1
},
{
// rifle
am_bullets,
S_RIFG_02,
S_RIFG_01,
S_RIFG_00,
S_RIFF_00,
S_NULL,
1
},
{
// missile launcher
am_missiles,
S_MMIS_02,
S_MMIS_01,
S_MMIS_00,
S_MMIS_03,
S_NULL,
0
},
{
// grenade launcher
am_hegrenades,
S_GREN_02,
S_GREN_01,
S_GREN_00,
S_GREN_03,
S_GREF_00,
0
},
{
// flame thrower
am_cell,
S_FLMT_03,
S_FLMT_02,
S_FLMT_00,
S_FLMF_00,
S_NULL,
1
},
{
// mauler
am_cell,
S_BLST_05,
S_BLST_04,
S_BLST_00,
S_BLSF_00,
S_NULL,
0
},
{
// sigil
am_noammo,
S_SIGH_06,
S_SIGH_05,
S_SIGH_00,
S_SIGH_07,
S_SIGF_00,
0
},
{
// poison bow
am_poisonbolts,
S_XBOW_15,
S_XBOW_14,
S_XBOW_13,
S_XBOW_16,
S_NULL,
1
},
{
// wp grenade launcher
am_wpgrenades,
S_GREN_10,
S_GREN_09,
S_GREN_08,
S_GREN_11,
S_GREF_03,
0
},
{
// torpedo
am_cell,
S_BLST_18,
S_BLST_17,
S_BLST_13,
S_BLST_19,
S_NULL,
0
},
};
|