summaryrefslogtreecommitdiffstats
path: root/src/objects
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-05-22 14:27:16 +0200
committeraap <aap@papnet.eu>2020-05-22 14:27:16 +0200
commita53ca58e566ffceb058451bc49bcc5810c26cb37 (patch)
tree1c58219ab89f84dacbc706205ff9eac88f8ce75f /src/objects
parentMerge branch 'miami' of github.com:GTAmodding/re3 into miami (diff)
downloadre3-a53ca58e566ffceb058451bc49bcc5810c26cb37.tar
re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.tar.gz
re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.tar.bz2
re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.tar.lz
re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.tar.xz
re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.tar.zst
re3-a53ca58e566ffceb058451bc49bcc5810c26cb37.zip
Diffstat (limited to '')
-rw-r--r--src/objects/Object.cpp6
-rw-r--r--src/objects/Object.h29
2 files changed, 17 insertions, 18 deletions
diff --git a/src/objects/Object.cpp b/src/objects/Object.cpp
index fd5a2aa3..daa48d98 100644
--- a/src/objects/Object.cpp
+++ b/src/objects/Object.cpp
@@ -330,6 +330,8 @@ CObject::Init(void)
m_colour1 = 0;
m_colour2 = 0;
m_nBonusValue = 0;
+ bIsWeapon = false;
+// TODO(MIAMI): some new field here
m_pCollidingEntity = nil;
CColPoint point;
CEntity* outEntity = nil;
@@ -342,7 +344,9 @@ CObject::Init(void)
if (GetModelIndex() == MI_BUOY)
bTouchingWater = true;
- // TODO(Miami): Second flag set initialization
+ if(CModelInfo::GetModelInfo(GetModelIndex())->GetModelType() == MITYPE_WEAPON)
+ bIsWeapon = true;
+ bIsStreetLight = IsLightObject(GetModelIndex());
m_area = AREA_EVERYWHERE;
}
diff --git a/src/objects/Object.h b/src/objects/Object.h
index 9ceffb2f..5a9c0195 100644
--- a/src/objects/Object.h
+++ b/src/objects/Object.h
@@ -59,26 +59,23 @@ public:
CMatrix m_objectMatrix;
float m_fUprootLimit;
int8 ObjectCreatedBy;
- int8 bIsPickup : 1;
- int8 bPickupObjWithMessage : 1;
- int8 bOutOfStock : 1;
- int8 bGlassCracked : 1;
- int8 bGlassBroken : 1;
- int8 bHasBeenDamaged : 1;
- int8 bUseVehicleColours : 1;
+ uint8 bIsPickup : 1;
+ uint8 obj_flag_02 : 1;
+ uint8 bPickupObjWithMessage : 1;
+ uint8 bOutOfStock : 1;
+ uint8 bGlassCracked : 1;
+ uint8 bGlassBroken : 1;
+ uint8 bHasBeenDamaged : 1;
+ uint8 bUseVehicleColours : 1;
+ uint8 bIsWeapon : 1;
+ uint8 bIsStreetLight : 1;
int8 m_nBonusValue;
float m_fCollisionDamageMultiplier;
uint8 m_nCollisionDamageEffect;
uint8 m_nSpecialCollisionResponseCases;
bool m_bCameraToAvoidThisObject;
-
- // this batch is unused
- int8 field_17B;
- int8 field_17C;
- int8 field_17D;
- int8 field_17E;
- int8 field_17F;
-
+ int8 m_nBeachballBounces;
+ uint32 m_obj_unused1;
uint32 m_nEndOfLifeTime;
int16 m_nRefModelIndex;
CEntity *m_pCurSurface;
@@ -86,8 +83,6 @@ public:
int8 m_colour1, m_colour2;
static int16 nNoTempObjects;
-// static int16 nBodyCastHealth;
-
static float fDistToNearestTree;
static void *operator new(size_t);