New offsets from karlos

This commit is contained in:
David Anderson 2005-11-20 20:01:03 +00:00
parent 30f7f6d51f
commit 5c5ca9251e
2 changed files with 83 additions and 92 deletions

View File

@ -6,61 +6,53 @@
// Offsets (used in NPData.cpp)
#define OFFSET_WIN_RESOURCES 1808 //1604
#define OFFSET_LIN_RESOURCES 1828 //1624
#define OFFSET_WIN_RESOURCES 1816 //454 * 4
#define OFFSET_LIN_RESOURCES 1836 //459 * 4
#define OFFSET_WIN_WEAPDMG 404 //200
#define OFFSET_LIN_WEAPDMG 420 //216
#define OFFSET_WIN_WEAPDMG 400 //100 * 4
#define OFFSET_LIN_WEAPDMG 420 //105 * 4
#define OFFSET_WIN_WEAPRANGE 400 //196
#define OFFSET_LIN_WEAPRANGE 416 //212
#define OFFSET_WIN_WEAPRANGE 396 //99 * 4
#define OFFSET_LIN_WEAPRANGE 416 //104 * 4
#define OFFSET_WIN_WEAPCLIP 364 //160
#define OFFSET_LIN_WEAPCLIP 380 //176
#define OFFSET_WIN_WEAPCLIP 364 //91 * 4
#define OFFSET_LIN_WEAPCLIP 384 //96 * 4
#define OFFSET_WIN_HIVE_TRAIT 516 //312
#define OFFSET_LIN_HIVE_TRAIT 500 //296
#define OFFSET_WIN_HIVE_TRAIT 6220 //1555 * 4
#define OFFSET_LIN_HIVE_TRAIT 6240 //1560 * 4
#define OFFSET_WIN_SCORE 6636 //6432
#define OFFSET_LIN_SCORE 6512 //6308
#define OFFSET_WIN_SCORE 6556 //1639 * 4
#define OFFSET_LIN_SCORE 6576 //1644 * 4
#define OFFSET_WIN_EXP 6572 //6368
#define OFFSET_LIN_EXP 6460 //6256
#define OFFSET_WIN_EXP 6480 //1620 * 4
#define OFFSET_LIN_EXP 6500 //1625 * 4
#define OFFSET_WIN_POINTS 6580 //6376
#define OFFSET_LIN_POINTS 6468 //6264
#define OFFSET_WIN_POINTS 6488 //1622 * 4
#define OFFSET_LIN_POINTS 6508 //1627 * 4
#define OFFSET_WIN_AMMO_LMG 1116 //912
#define OFFSET_LIN_AMMO_LMG 1136 //932
#define OFFSET_WIN_AMMO_LMG 1116 //279 * 4
#define OFFSET_LIN_AMMO_LMG 1136 //284 * 4
#define OFFSET_WIN_AMMO_PISTOL 1120 //916
#define OFFSET_LIN_AMMO_PISTOL 1140 //936
#define OFFSET_WIN_AMMO_SHOTGUN 1124 //920
#define OFFSET_LIN_AMMO_SHOTGUN 1144 //940
#define OFFSET_WIN_AMMO_HMG 1128 //924
#define OFFSET_LIN_AMMO_HMG 1148 //944
#define OFFSET_WIN_AMMO_GL 1132 //928
#define OFFSET_LIN_AMMO_GL 1152 //948
#define OFFSET_WIN_AMMO_HG 1136 //932 // Couldn't find anything at this offset but other weapons haven't changed.
#define OFFSET_LIN_AMMO_HG 1156 //952 // Offset 880 is the only one to change when you get a grenade, but data in it makes no sense.
#define OFFSET_WIN_DEATHS 1380 //1176
#define OFFSET_LIN_DEATHS 1400 //1196
#define OFFSET_WIN_STRUCTOWNER 324 //120
#define OFFSET_LIN_STRUCTOWNER 340 //136
#define OFFSET_WIN_AMMO_PISTOL 1120 //280 * 4
#define OFFSET_LIN_AMMO_PISTOL 1140 //285 * 4
#define OFFSET_WIN_AMMO_SHOTGUN 1124 //281 * 4
#define OFFSET_LIN_AMMO_SHOTGUN 1144 //286 * 4
#define OFFSET_WIN_AMMO_HMG 1128 //282 * 4
#define OFFSET_LIN_AMMO_HMG 1148 //287 * 4
#define OFFSET_WIN_AMMO_GL 1132 //283 * 4
#define OFFSET_LIN_AMMO_GL 1152 //288 * 4
#define OFFSET_WIN_AMMO_HG 1136 //284 * 4
#define OFFSET_LIN_AMMO_HG 1156 //289 * 4
#define OFFSET_WIN_DEATHS 1380 //345 * 4
#define OFFSET_LIN_DEATHS 1400 //349 * 4
#define OFFSET_WIN_STRUCTOWNER 324 //81 * 4
#define OFFSET_LIN_STRUCTOWNER 344 //86 * 4
enum
@ -111,11 +103,10 @@ enum
MASK_TOPDOWN = 16777216, // Commander view
MASK_PLAYER_STUNNED = 33554432, // Player has been stunned by stomp
MASK_ENSNARED = 67108864, // Webbed
MASK_ALIEN_EMBRYO = 268435456, // Gestating
MASK_SELECTABLE = 536870912, // ???
MASK_PARASITED = 1073741824, // Parasite flag
MASK_SENSORY_NEARBY = 2147483648 // Sensory chamber in range
MASK_ALIEN_EMBRYO = 134217728, //268435456, // Gestating
MASK_SELECTABLE = 268435456, //536870912, // ???
MASK_PARASITED = 536870912, //1073741824, // Parasite flag
MASK_SENSORY_NEARBY = 1073741824 //2147483648 // Sensory chamber in range
};
typedef enum