summaryrefslogtreecommitdiffstats
path: root/src/entities/Object.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2019-07-07 00:36:39 +0200
committereray orçunus <erayorcunus@gmail.com>2019-07-07 00:39:58 +0200
commitee8e16376b4d0fcb199762274946c16b8f42c04f (patch)
tree0aec680fb9460225c18231d26d78b75f522c2592 /src/entities/Object.cpp
parentGeneral fixes (diff)
parentsome work on vehicles (diff)
downloadre3-ee8e16376b4d0fcb199762274946c16b8f42c04f.tar
re3-ee8e16376b4d0fcb199762274946c16b8f42c04f.tar.gz
re3-ee8e16376b4d0fcb199762274946c16b8f42c04f.tar.bz2
re3-ee8e16376b4d0fcb199762274946c16b8f42c04f.tar.lz
re3-ee8e16376b4d0fcb199762274946c16b8f42c04f.tar.xz
re3-ee8e16376b4d0fcb199762274946c16b8f42c04f.tar.zst
re3-ee8e16376b4d0fcb199762274946c16b8f42c04f.zip
Diffstat (limited to 'src/entities/Object.cpp')
-rw-r--r--src/entities/Object.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/entities/Object.cpp b/src/entities/Object.cpp
index dbc38b9d..6712d77b 100644
--- a/src/entities/Object.cpp
+++ b/src/entities/Object.cpp
@@ -1,5 +1,7 @@
#include "common.h"
#include "patcher.h"
+#include "main.h"
+#include "Lights.h"
#include "Pools.h"
#include "Radar.h"
#include "Object.h"
@@ -63,6 +65,26 @@ CObject::Render(void)
CEntity::Render();
}
+bool
+CObject::SetupLighting(void)
+{
+ DeActivateDirectional();
+ SetAmbientColours();
+
+ if(bRenderScorched){
+ WorldReplaceNormalLightsWithScorched(Scene.world, 0.1f);
+ return true;
+ }
+ return false;
+}
+
+void
+CObject::RemoveLighting(bool reset)
+{
+ if(reset)
+ WorldReplaceScorchedLightsWithNormal(Scene.world);
+}
+
WRAPPER void CObject::DeleteAllTempObjectInArea(CVector, float) { EAXJMP(0x4BBED0); }
STARTPATCHES