-
Notifications
You must be signed in to change notification settings - Fork 2
/
EnumDefinitions.cs
401 lines (372 loc) · 8.25 KB
/
EnumDefinitions.cs
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
using System;
using System.Collections.Generic;
using System.Text;
namespace NFL2K5Tool
{
public enum SaveType
{
Roster,
Franchise
}
// Addresses are based on a franchise file, not a roster file.
/// <summary> Code to map player attributes to locations </summary>
public enum PlayerOffsets
{
/**
* College is tricky to calculate.
* College strings start at 0x7a23c with Clemson, Duke, Florida State, Georgia Tech...
* The college location looks like 4 byte ints which are all negative numbers ( like b1f7ffff; which == -2127).
* Player 0 having a clemson pointer would be: fffff7b1 @location 0xb288.
* Player 1 having a clemson pointer looks like: fffff75d @location 0xb2dc; this is 0x54 greater than what player 0's clemson pointer is.
* The second college is Duke.
* Player 0 having a Duke pointer would be: fffff7b9 @location 0xb288.
* The value difference from Clemson to Duke is 8; in fact, it looks like to increase a player's
* college by 1 college you would add 8.
* So the following formula is one we can use to calcualte college:
* // p = integer player (duane starks is the 0th player in the base save file)
* CollegeIndex(p) = (((collegePointerVal - (0xfffff7b1)) + player * 0x54)) / 8;
*/
College=0,
PBP = 4,
Photo= 6,
Helmet_LeftShoe_RightShoe = 0x0c, // LShoe is last 3 bits; helmet is 7th bit; RShoe is bits 4,5,6
Turtleneck_Body_EyeBlack_Hand_Dreads = 0x18, // Shared: Skin(8), Turtleneck(bits6&7), Body(4&5), EyeBlack(3), Hand(2), Dreads(1) (most sig --> least sig )
DOB = 0x19, // Skin is shared in the second nibble at this location.
MouthPiece_LeftGlove_Sleeves_NeckRoll= 0x1c,
RightGlove_LeftWrist = 0x1d,
RightWrist_LeftElbow = 0x1e,
RightElbow = 0x1f,
JerseyNumber = 0x20, // & 0x21
FaceMask = 0x21, // part if Wacko Visor is in this byte too (FaceMask = val & 0x1F >> 1)
Face = 0x22, // part of Wacko Visor is in this byte too (Face = Val >>1 )
YearsPro = 0x25,
Depth = 0x29,
Weight = 0x2A, // 150 + value
Height = 0x2B, // (Inches)
Position = 0x35,
Speed,
Agility,
PassArmStrength,
Stamina,
KickPower,
Durability,
Strength,
Jumping,
Coverage,
RunRoute,//0x40
Tackle,
BreakTackle,
PassAccuracy,
PassReadCoverage,
Catch,
RunBlocking,
PassBlocking,
HoldOntoBall,
PassRush,
RunCoverage,
KickAccuracy,
Leadership = 0x4C,
PowerRunStyle,
Composure,
Scramble,//4f
Consistency,
Aggressiveness
}
public enum AppearanceAttributes
{
College = 200, // starting here so that we have no collisions with the PlayerOffsets enum
DOB, YearsPro, PBP, Photo, Hand, Weight, Height, BodyType, Skin, Face, Dreads, Helmet, FaceMask, Visor,
EyeBlack, MouthPiece, LeftGlove, RightGlove, LeftWrist, RightWrist, LeftElbow,
RightElbow, Sleeves, LeftShoe, RightShoe, NeckRoll, Turtleneck
}
/// <summary> enum for positions </summary>
public enum Positions
{
QB = 0,
K,
P,
WR,
CB,
FS,
SS,
RB,
FB,
TE,
OLB,
ILB,
C,
G,
T,
DT,
DE
}
/// <summary> power run style enum </summary>
public enum PowerRunStyle
{
Finesse = 1,
Balanced = 0x32,
Power = 0x63
}
public enum Turtleneck
{
None = 0,
White,
Black,
Team
}
public enum Body
{
Skinny = 0,
Normal,
Large,
ExtraLarge
}
public enum YesNo
{
No =0,
Yes
}
public enum Hand
{
Left=0,
Right
}
public enum Face
{
Face1=0,
Face2,
Face3,
Face4,
Face5,
Face6,
Face7,
Face8,
Face9,
Face10,
Face11,
Face12,
Face13,
Face14,
Face15
}
public enum FaceMask
{
FaceMask1 = 0,
FaceMask2,
FaceMask3,
FaceMask4,
FaceMask5,
FaceMask6,
FaceMask7,
FaceMask8,
FaceMask9,
FaceMask10,
FaceMask11,
FaceMask12,
FaceMask13,
FaceMask14,
FaceMask15,
FaceMask16,
FaceMask17,
FaceMask18,
FaceMask19,
FaceMask20,
FaceMask21,
FaceMask22,
FaceMask23,
FaceMask24,
FaceMask25,
FaceMask26,
FaceMask27
}
public enum Visor
{
None,
Dark,
Clear
}
public enum Skin
{
Skin1,
Skin2,
Skin3,
Skin4,
Skin5,
Skin6,
Skin7,
Skin8,
Skin9,
Skin10,
Skin11,
Skin12,
Skin13,
Skin14,
Skin15,
Skin16,
Skin17,
Skin18,
Skin19,
Skin20,
Skin21,
Skin22
}
public enum Helmet
{
Standard =0,
Revolution
}
public enum Shoe
{
Shoe1,
Shoe2,
Shoe3,
Shoe4,
Shoe5,
Shoe6,
Taped
}
public enum Glove
{
None,
Type1,
Type2,
Type3,
Type4,
Team1,
Team2,
Team3,
Team4,
Taped
}
public enum Sleeves
{
None,
White,
Black,
Team
}
public enum NeckRoll
{
None,
Collar,
Roll,
Washboard,
Bulging
}
public enum Wrist
{
None,
SingleWhite,
DoubleWhite,
SingleBlack,
DoubleBlack,
NeopreneSmall,
NeopreneLarge,
ElasticSmall,
ElasticLarge,
SingleTeam,
DoubleTeam,
TapedSmall,
TapedLarge,
Quarterback
}
public enum Elbow
{
None,
White,
Black,
WhiteBlackStripe,
BlackWhiteStripe,
BlackTeamStripe,
Team,
WhiteTeamStripe,
Elastic,
Neoprene,
WhiteTurf,
BlackTurf,
Taped,
HighWhite,
HighBlack,
HighTeam
}
public enum Game
{
HomeTeam,
AwayTeam,
Month,
Day,
YearTwoDigit,
HourOfDay,
MinuteOfHour,
NullByte
}
public enum SpecialTeamer
{
KR1 = 0x195,
KR2 = 0x196,
LS = 0x198,
PR = 0x199
}
public enum CoachOffsets
{
FirstName = 0x0,
LastName = 0x4,
Info1 = 0x8,
Info2 = 0xC,
Info3 = 0x10,
Body = 0x18,
Wins = 0x20,
Losses = 0x22,
Ties = 0x24,
SeasonsWithTeam = 0x1C,
totalSeasons = 0x1E,
WinningSeasons = 0x30,
SuperBowls = 0x32,
SuperBowlWins = 0x38,
SuperBowlLosses = 0x3A,
PlayoffWins = 0x34,
PlayoffLosses = 0x36,
Photo = 0x40,
// where do you see this stuff anyways?
Overall = 0x42,
OvrallOffense = 0x43,
RushFor = 0x44,
PassFor = 0x45,
OverallDefense = 0x46,
PassRush = 0x47,
PassCoverage = 0x48,
QB = 0x49,
RB = 0x4A,
TE = 0x4B,
WR = 0x4C,
OL = 0x4D,
DL = 0x4E,
LB = 0x4F,
DB = 0x50,
SpecialTeams = 0x51,
Professionalism = 0x52,
Preparation = 0x53,
Conditioning = 0x54,
Motivation = 0x55,
Leadership = 0x56,
Discipline = 0x57,
Respect = 0x58,
// Play tendency
PlaycallingRun = 0x59,
ShotgunRun = 0x83,
IFormRun = 0x83,
SplitbackRun = 0x87,
EmptyRun = 0x87,
ShotgunPass = 0x88,
SplitbackPass = 0x89,
IFormPass = 0x8A,
LoneBackPass = 0x8B,
EmptyPass = 0x8C
}
public enum FormulaMode
{
Normal = 0,
Add,
Percent
}
}