misc classes finished

This commit is contained in:
aap
2019-07-06 12:27:21 +02:00
parent 2d08696190
commit 2b592605ab
13 changed files with 374 additions and 4 deletions

View File

@ -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

View File

@ -68,6 +68,8 @@ public:
~CObject(void);
void Render(void);
bool SetupLighting(void);
void RemoveLighting(bool reset);
void ObjectDamage(float amount);