summaryrefslogtreecommitdiffstats
path: root/src/objects
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects')
-rw-r--r--src/objects/Object.cpp10
-rw-r--r--src/objects/Object.h4
2 files changed, 11 insertions, 3 deletions
diff --git a/src/objects/Object.cpp b/src/objects/Object.cpp
index 4a45050c..e6bb7aee 100644
--- a/src/objects/Object.cpp
+++ b/src/objects/Object.cpp
@@ -14,7 +14,8 @@
#include "soundlist.h"
int16 CObject::nNoTempObjects;
-int16 CObject::nBodyCastHealth = 1000;
+//int16 CObject::nBodyCastHealth = 1000;
+float CObject::fDistToNearestTree;
void *CObject::operator new(size_t sz) { return CPools::GetObjectPool()->New(); }
void *CObject::operator new(size_t sz, int handle) { return CPools::GetObjectPool()->New(handle);};
@@ -161,6 +162,7 @@ CObject::ObjectDamage(float amount)
return;
static int8 nFrameGen = 0;
bool bBodyCastDamageEffect = false;
+#if 0
if (GetModelIndex() == MI_BODYCAST) {
if (amount > 50.0f)
nBodyCastHealth = (int16)(nBodyCastHealth - 0.5f * amount);
@@ -170,6 +172,7 @@ CObject::ObjectDamage(float amount)
bBodyCastDamageEffect = true;
amount = 0.0f;
}
+#endif
if ((amount * m_fCollisionDamageMultiplier > 150.0f || bBodyCastDamageEffect) && m_nCollisionDamageEffect) {
const CVector& vecPos = m_matrix.GetPosition();
const float fDirectionZ = 0.0002f * amount;
@@ -335,9 +338,12 @@ CObject::Init(void)
m_pCurSurface = outEntity;
else
m_pCurSurface = nil;
+#if 0
if (GetModelIndex() == MI_BODYCAST)
nBodyCastHealth = 1000;
- else if (GetModelIndex() == MI_BUOY)
+ else
+#endif
+ if (GetModelIndex() == MI_BUOY)
bTouchingWater = true;
}
diff --git a/src/objects/Object.h b/src/objects/Object.h
index 73f710f0..9ceffb2f 100644
--- a/src/objects/Object.h
+++ b/src/objects/Object.h
@@ -86,7 +86,9 @@ public:
int8 m_colour1, m_colour2;
static int16 nNoTempObjects;
- static int16 nBodyCastHealth;
+// static int16 nBodyCastHealth;
+
+ static float fDistToNearestTree;
static void *operator new(size_t);
static void *operator new(size_t, int);