mirror of https://github.com/AxioDL/metaforce.git
Add missing factories, update hecl
This commit is contained in:
parent
7085b837b7
commit
ac5f28eeff
|
@ -350,7 +350,7 @@ void DPSM<IDType>::writeQuadDecalInfo(athena::io::IStreamWriter& w,
|
||||||
}
|
}
|
||||||
if (quad.x10_CLR)
|
if (quad.x10_CLR)
|
||||||
{
|
{
|
||||||
w.writeBytes((first ? "1CLR" : "2LCR"), 4);
|
w.writeBytes((first ? "1CLR" : "2CLR"), 4);
|
||||||
quad.x10_CLR.write(w);
|
quad.x10_CLR.write(w);
|
||||||
}
|
}
|
||||||
if (quad.x14_TEX)
|
if (quad.x14_TEX)
|
||||||
|
|
|
@ -6,6 +6,11 @@
|
||||||
#include "Runtime/Particle/CGenDescription.hpp"
|
#include "Runtime/Particle/CGenDescription.hpp"
|
||||||
#include "Runtime/Particle/CElectricDescription.hpp"
|
#include "Runtime/Particle/CElectricDescription.hpp"
|
||||||
#include "Runtime/Particle/CSwooshDescription.hpp"
|
#include "Runtime/Particle/CSwooshDescription.hpp"
|
||||||
|
#include "Runtime/Particle/CParticleElectricDataFactory.hpp"
|
||||||
|
#include "Runtime/Particle/CParticleSwooshDataFactory.hpp"
|
||||||
|
#include "Runtime/Particle/CWeaponDescription.hpp"
|
||||||
|
#include "Runtime/Particle/CProjectileWeaponDataFactory.hpp"
|
||||||
|
#include "Runtime/Particle/CDecalDataFactory.hpp"
|
||||||
#include "Runtime/GuiSys/CGuiFrame.hpp"
|
#include "Runtime/GuiSys/CGuiFrame.hpp"
|
||||||
#include "Runtime/GuiSys/CRasterFont.hpp"
|
#include "Runtime/GuiSys/CRasterFont.hpp"
|
||||||
#include "Runtime/GuiSys/CStringTable.hpp"
|
#include "Runtime/GuiSys/CStringTable.hpp"
|
||||||
|
@ -17,6 +22,7 @@
|
||||||
#include "Runtime/Character/CAllFormatsAnimSource.hpp"
|
#include "Runtime/Character/CAllFormatsAnimSource.hpp"
|
||||||
#include "Runtime/Character/CAnimPOIData.hpp"
|
#include "Runtime/Character/CAnimPOIData.hpp"
|
||||||
#include "Runtime/Collision/CCollidableOBBTreeGroup.hpp"
|
#include "Runtime/Collision/CCollidableOBBTreeGroup.hpp"
|
||||||
|
#include "Runtime/Collision/CCollisionResponseData.hpp"
|
||||||
#include "Runtime/CSaveWorld.hpp"
|
#include "Runtime/CSaveWorld.hpp"
|
||||||
#include "Runtime/AutoMapper/CMapWorld.hpp"
|
#include "Runtime/AutoMapper/CMapWorld.hpp"
|
||||||
#include "Runtime/CScannableObjectInfo.hpp"
|
#include "Runtime/CScannableObjectInfo.hpp"
|
||||||
|
@ -110,6 +116,11 @@ ProjectResourceFactoryMP1::ProjectResourceFactoryMP1(hecl::ClientProcess& client
|
||||||
m_factoryMgr.AddFactory(FOURCC('MAPW'), FFactoryFunc(FMapWorldFactory));
|
m_factoryMgr.AddFactory(FOURCC('MAPW'), FFactoryFunc(FMapWorldFactory));
|
||||||
m_factoryMgr.AddFactory(FOURCC('OIDS'), FFactoryFunc(FMP1OriginalIDsFactory));
|
m_factoryMgr.AddFactory(FOURCC('OIDS'), FFactoryFunc(FMP1OriginalIDsFactory));
|
||||||
m_factoryMgr.AddFactory(FOURCC('SCAN'), FFactoryFunc(FScannableObjectInfoFactory));
|
m_factoryMgr.AddFactory(FOURCC('SCAN'), FFactoryFunc(FScannableObjectInfoFactory));
|
||||||
|
m_factoryMgr.AddFactory(FOURCC('CRSC'), FFactoryFunc(FCollisionResponseDataFactory));
|
||||||
|
m_factoryMgr.AddFactory(FOURCC('SWHC'), FFactoryFunc(FParticleSwooshDataFactory));
|
||||||
|
m_factoryMgr.AddFactory(FOURCC('ELSC'), FFactoryFunc(FParticleElectricDataFactory));
|
||||||
|
m_factoryMgr.AddFactory(FOURCC('WPSC'), FFactoryFunc(FProjectileWeaponDataFactory));
|
||||||
|
m_factoryMgr.AddFactory(FOURCC('DPSC'), FFactoryFunc(FDecalDataFactory));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProjectResourceFactoryMP1::IndexMP1Resources(hecl::Database::Project& proj, CSimplePool& sp)
|
void ProjectResourceFactoryMP1::IndexMP1Resources(hecl::Database::Project& proj, CSimplePool& sp)
|
||||||
|
|
|
@ -10,111 +10,64 @@
|
||||||
|
|
||||||
namespace urde
|
namespace urde
|
||||||
{
|
{
|
||||||
const EWeaponCollisionResponseTypes CCollisionResponseData::skWorldMaterialTable[32] =
|
const EWeaponCollisionResponseTypes CCollisionResponseData::skWorldMaterialTable[32] = {
|
||||||
{
|
EWeaponCollisionResponseTypes::Default, EWeaponCollisionResponseTypes::Unknown2,
|
||||||
EWeaponCollisionResponseTypes::Default,
|
EWeaponCollisionResponseTypes::Metal, EWeaponCollisionResponseTypes::Grass,
|
||||||
EWeaponCollisionResponseTypes::Unknown2,
|
EWeaponCollisionResponseTypes::Ice, EWeaponCollisionResponseTypes::Goo,
|
||||||
EWeaponCollisionResponseTypes::Metal,
|
EWeaponCollisionResponseTypes::Metal, EWeaponCollisionResponseTypes::Wood,
|
||||||
EWeaponCollisionResponseTypes::Grass,
|
EWeaponCollisionResponseTypes::Grass, EWeaponCollisionResponseTypes::Lava,
|
||||||
EWeaponCollisionResponseTypes::Ice,
|
EWeaponCollisionResponseTypes::Lava, EWeaponCollisionResponseTypes::Ice,
|
||||||
EWeaponCollisionResponseTypes::Goo,
|
EWeaponCollisionResponseTypes::Mud, EWeaponCollisionResponseTypes::Metal,
|
||||||
EWeaponCollisionResponseTypes::Metal,
|
EWeaponCollisionResponseTypes::Default, EWeaponCollisionResponseTypes::Goo,
|
||||||
EWeaponCollisionResponseTypes::Wood,
|
EWeaponCollisionResponseTypes::Goo, EWeaponCollisionResponseTypes::Sand,
|
||||||
EWeaponCollisionResponseTypes::Grass,
|
EWeaponCollisionResponseTypes::Default, EWeaponCollisionResponseTypes::Default,
|
||||||
EWeaponCollisionResponseTypes::Lava,
|
EWeaponCollisionResponseTypes::Default, EWeaponCollisionResponseTypes::Metal,
|
||||||
EWeaponCollisionResponseTypes::Lava,
|
EWeaponCollisionResponseTypes::Default, EWeaponCollisionResponseTypes::Default,
|
||||||
EWeaponCollisionResponseTypes::Ice,
|
EWeaponCollisionResponseTypes::Default, EWeaponCollisionResponseTypes::Default,
|
||||||
EWeaponCollisionResponseTypes::Mud,
|
EWeaponCollisionResponseTypes::Default, EWeaponCollisionResponseTypes::Default,
|
||||||
EWeaponCollisionResponseTypes::Metal,
|
EWeaponCollisionResponseTypes::Default, EWeaponCollisionResponseTypes::Default,
|
||||||
EWeaponCollisionResponseTypes::Default,
|
EWeaponCollisionResponseTypes::Default, EWeaponCollisionResponseTypes::Default,
|
||||||
EWeaponCollisionResponseTypes::Goo,
|
|
||||||
EWeaponCollisionResponseTypes::Goo,
|
|
||||||
EWeaponCollisionResponseTypes::Sand,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
EWeaponCollisionResponseTypes::Metal,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
EWeaponCollisionResponseTypes::Default,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const s32 CCollisionResponseData::kInvalidSFX = -1;
|
const s32 CCollisionResponseData::kInvalidSFX = -1;
|
||||||
|
|
||||||
static const std::vector<FourCC> kWCRTSFXIDs =
|
static const std::vector<FourCC> kWCRTSFXIDs = {
|
||||||
{
|
SBIG('NSFX'), SBIG('DSFX'), SBIG('CSFX'), SBIG('MSFX'), SBIG('GRFX'), SBIG('ICFX'), SBIG('GOFX'), SBIG('WSFX'),
|
||||||
SBIG('NSFX'),SBIG('DSFX'),SBIG('CSFX'),SBIG('MSFX'),
|
SBIG('WTFX'), SBIG('2MUD'), SBIG('2LAV'), SBIG('2SAN'), SBIG('2PRJ'), SBIG('DCFX'), SBIG('DSFX'), SBIG('DSHX'),
|
||||||
SBIG('GRFX'),SBIG('ICFX'),SBIG('GOFX'),SBIG('WSFX'),
|
SBIG('DEFX'), SBIG('ESFX'), SBIG('SHFX'), SBIG('BEFX'), SBIG('WWFX'), SBIG('TAFX'), SBIG('GTFX'), SBIG('SPFX'),
|
||||||
SBIG('WTFX'),SBIG('2MUD'),SBIG('2LAV'),SBIG('2SAN'),
|
SBIG('FPFX'), SBIG('FFFX'), SBIG('PAFX'), SBIG('BMFX'), SBIG('BFFX'), SBIG('PBFX'), SBIG('IBFX'), SBIG('4SVA'),
|
||||||
SBIG('2PRJ'),SBIG('DCFX'),SBIG('DSFX'),SBIG('DSHX'),
|
SBIG('4RPR'), SBIG('4MTR'), SBIG('4PDS'), SBIG('4FLB'), SBIG('4DRN'), SBIG('4MRE'), SBIG('CZFX'), SBIG('JZAS'),
|
||||||
SBIG('DEFX'),SBIG('ESFX'),SBIG('SHFX'),SBIG('BEFX'),
|
SBIG('2ISE'), SBIG('2BSE'), SBIG('2ATB'), SBIG('2ATA'), SBIG('BSFX'), SBIG('WSFX'), SBIG('TSFX'), SBIG('GSFX'),
|
||||||
SBIG('WWFX'),SBIG('TAFX'),SBIG('GTFX'),SBIG('SPFX'),
|
SBIG('SSFX'), SBIG('FSFX'), SBIG('SFFX'), SBIG('PSFX'), SBIG('MSFX'), SBIG('SBFX'), SBIG('PBSX'), SBIG('IBSX'),
|
||||||
SBIG('FPFX'),SBIG('FFFX'),SBIG('PAFX'),SBIG('BMFX'),
|
SBIG('5SVA'), SBIG('5RPR'), SBIG('5MTR'), SBIG('5PDS'), SBIG('5FLB'), SBIG('5DRN'), SBIG('5MRE'), SBIG('CSFX'),
|
||||||
SBIG('BFFX'),SBIG('PBFX'),SBIG('IBFX'),SBIG('4SVA'),
|
SBIG('JZPS'), SBIG('4ISE'), SBIG('4BSE'), SBIG('4ATB'), SBIG('4ATA'), SBIG('BHFX'), SBIG('WHFX'), SBIG('THFX'),
|
||||||
SBIG('4RPR'),SBIG('4MTR'),SBIG('4PDS'),SBIG('4FLB'),
|
SBIG('GHFX'), SBIG('SHFX'), SBIG('FHFX'), SBIG('HFFX'), SBIG('PHFX'), SBIG('MHFX'), SBIG('HBFX'), SBIG('PBHX'),
|
||||||
SBIG('4DRN'),SBIG('4MRE'),SBIG('CZFX'),SBIG('JZAS'),
|
SBIG('IBHX'), SBIG('6SVA'), SBIG('6RPR'), SBIG('6MTR'), SBIG('6PDS'), SBIG('6FLB'), SBIG('6DRN'), SBIG('6MRE'),
|
||||||
SBIG('2ISE'),SBIG('2BSE'),SBIG('2ATB'),SBIG('2ATA'),
|
SBIG('CHFX'), SBIG('JZHS'), SBIG('6ISE'), SBIG('6BSE'), SBIG('6ATB'), SBIG('6ATA'),
|
||||||
SBIG('BSFX'),SBIG('WSFX'),SBIG('TSFX'),SBIG('GSFX'),
|
|
||||||
SBIG('SSFX'),SBIG('FSFX'),SBIG('SFFX'),SBIG('PSFX'),
|
|
||||||
SBIG('MSFX'),SBIG('SBFX'),SBIG('PBSX'),SBIG('IBSX'),
|
|
||||||
SBIG('5SVA'),SBIG('5RPR'),SBIG('5MTR'),SBIG('5PDS'),
|
|
||||||
SBIG('5FLB'),SBIG('5DRN'),SBIG('5MRE'),SBIG('CSFX'),
|
|
||||||
SBIG('JZPS'),SBIG('4ISE'),SBIG('4BSE'),SBIG('4ATB'),
|
|
||||||
SBIG('4ATA'),SBIG('BHFX'),SBIG('WHFX'),SBIG('THFX'),
|
|
||||||
SBIG('GHFX'),SBIG('SHFX'),SBIG('FHFX'),SBIG('HFFX'),
|
|
||||||
SBIG('PHFX'),SBIG('MHFX'),SBIG('HBFX'),SBIG('PBHX'),
|
|
||||||
SBIG('IBHX'),SBIG('6SVA'),SBIG('6RPR'),SBIG('6MTR'),
|
|
||||||
SBIG('6PDS'),SBIG('6FLB'),SBIG('6DRN'),SBIG('6MRE'),
|
|
||||||
SBIG('CHFX'),SBIG('JZHS'),SBIG('6ISE'),SBIG('6BSE'),
|
|
||||||
SBIG('6ATB'),SBIG('6ATA'),
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const std::vector<FourCC> kWCRTIDs =
|
static const std::vector<FourCC> kWCRTIDs = {
|
||||||
{
|
SBIG('NODP'), SBIG('DEFS'), SBIG('CRTS'), SBIG('MTLS'), SBIG('GRAS'), SBIG('ICEE'), SBIG('GOOO'), SBIG('WODS'),
|
||||||
SBIG('NODP'),SBIG('DEFS'),SBIG('CRTS'),SBIG('MTLS'),
|
SBIG('WATR'), SBIG('1MUD'), SBIG('1LAV'), SBIG('1SAN'), SBIG('1PRJ'), SBIG('DCHR'), SBIG('DCHS'), SBIG('DCSH'),
|
||||||
SBIG('GRAS'),SBIG('ICEE'),SBIG('GOOO'),SBIG('WODS'),
|
SBIG('DENM'), SBIG('DESP'), SBIG('DESH'), SBIG('BTLE'), SBIG('WASP'), SBIG('TALP'), SBIG('PTGM'), SBIG('SPIR'),
|
||||||
SBIG('WATR'),SBIG('1MUD'),SBIG('1LAV'),SBIG('1SAN'),
|
SBIG('FPIR'), SBIG('FFLE'), SBIG('PARA'), SBIG('BMON'), SBIG('BFLR'), SBIG('PBOS'), SBIG('IBOS'), SBIG('1SVA'),
|
||||||
SBIG('1PRJ'),SBIG('DCHR'),SBIG('DCHS'),SBIG('DCSH'),
|
SBIG('1RPR'), SBIG('1MTR'), SBIG('1PDS'), SBIG('1FLB'), SBIG('1DRN'), SBIG('1MRE'), SBIG('CHOZ'), SBIG('JZAP'),
|
||||||
SBIG('DENM'),SBIG('DESP'),SBIG('DESH'),SBIG('BTLE'),
|
SBIG('1ISE'), SBIG('1BSE'), SBIG('1ATB'), SBIG('1ATA'), SBIG('BTSP'), SBIG('WWSP'), SBIG('TASP'), SBIG('TGSP'),
|
||||||
SBIG('WASP'),SBIG('TALP'),SBIG('PTGM'),SBIG('SPIR'),
|
SBIG('SPSP'), SBIG('FPSP'), SBIG('FFSP'), SBIG('PSSP'), SBIG('BMSP'), SBIG('BFSP'), SBIG('PBSP'), SBIG('IBSP'),
|
||||||
SBIG('FPIR'),SBIG('FFLE'),SBIG('PARA'),SBIG('BMON'),
|
SBIG('2SVA'), SBIG('2RPR'), SBIG('2MTR'), SBIG('2PDS'), SBIG('2FLB'), SBIG('2DRN'), SBIG('2MRE'), SBIG('CHSP'),
|
||||||
SBIG('BFLR'),SBIG('PBOS'),SBIG('IBOS'),SBIG('1SVA'),
|
SBIG('JZSP'), SBIG('3ISE'), SBIG('3BSE'), SBIG('3ATB'), SBIG('3ATA'), SBIG('BTSH'), SBIG('WWSH'), SBIG('TASH'),
|
||||||
SBIG('1RPR'),SBIG('1MTR'),SBIG('1PDS'),SBIG('1FLB'),
|
SBIG('TGSH'), SBIG('SPSH'), SBIG('FPSH'), SBIG('FFSH'), SBIG('PSSH'), SBIG('BMSH'), SBIG('BFSH'), SBIG('PBSH'),
|
||||||
SBIG('1DRN'),SBIG('1MRE'),SBIG('CHOZ'),SBIG('JZAP'),
|
SBIG('IBSH'), SBIG('3SVA'), SBIG('3RPR'), SBIG('3MTR'), SBIG('3PDS'), SBIG('3FLB'), SBIG('3DRN'), SBIG('3MRE'),
|
||||||
SBIG('1ISE'),SBIG('1BSE'),SBIG('1ATB'),SBIG('1ATA'),
|
SBIG('CHSH'), SBIG('JZSH'), SBIG('5ISE'), SBIG('5BSE'), SBIG('5ATB'), SBIG('5ATA')};
|
||||||
SBIG('BTSP'),SBIG('WWSP'),SBIG('TASP'),SBIG('TGSP'),
|
|
||||||
SBIG('SPSP'),SBIG('FPSP'),SBIG('FFSP'),SBIG('PSSP'),
|
|
||||||
SBIG('BMSP'),SBIG('BFSP'),SBIG('PBSP'),SBIG('IBSP'),
|
|
||||||
SBIG('2SVA'),SBIG('2RPR'),SBIG('2MTR'),SBIG('2PDS'),
|
|
||||||
SBIG('2FLB'),SBIG('2DRN'),SBIG('2MRE'),SBIG('CHSP'),
|
|
||||||
SBIG('JZSP'),SBIG('3ISE'),SBIG('3BSE'),SBIG('3ATB'),
|
|
||||||
SBIG('3ATA'),SBIG('BTSH'),SBIG('WWSH'),SBIG('TASH'),
|
|
||||||
SBIG('TGSH'),SBIG('SPSH'),SBIG('FPSH'),SBIG('FFSH'),
|
|
||||||
SBIG('PSSH'),SBIG('BMSH'),SBIG('BFSH'),SBIG('PBSH'),
|
|
||||||
SBIG('IBSH'),SBIG('3SVA'),SBIG('3RPR'),SBIG('3MTR'),
|
|
||||||
SBIG('3PDS'),SBIG('3FLB'),SBIG('3DRN'),SBIG('3MRE'),
|
|
||||||
SBIG('CHSH'),SBIG('JZSH'),SBIG('5ISE'),SBIG('5BSE'),
|
|
||||||
SBIG('5ATB'),SBIG('5ATA')
|
|
||||||
};
|
|
||||||
|
|
||||||
static const std::vector<FourCC> kWCRTDecalIDs =
|
static const std::vector<FourCC> kWCRTDecalIDs = {SBIG('NCDL'), SBIG('DDCL'), SBIG('CODL'), SBIG('MEDL'), SBIG('GRDL'),
|
||||||
{
|
SBIG('ICDL'), SBIG('GODL'), SBIG('WODL'), SBIG('WTDL'), SBIG('3MUD'),
|
||||||
SBIG('NCDL'),SBIG('DDCL'),SBIG('CODL'),SBIG('MEDL'),
|
SBIG('3LAV'), SBIG('3SAN'), SBIG('CHDL'), SBIG('ENDL')};
|
||||||
SBIG('GRDL'),SBIG('ICDL'),SBIG('GODL'),SBIG('WODL'),
|
|
||||||
SBIG('WTDL'),SBIG('3MUD'),SBIG('3LAV'),SBIG('3SAN'),
|
|
||||||
SBIG('CHDL'),SBIG('ENDL')
|
|
||||||
};
|
|
||||||
|
|
||||||
using CPF = CParticleDataFactory;
|
using CPF = CParticleDataFactory;
|
||||||
|
|
||||||
void CCollisionResponseData::AddParticleSystemToResponse(EWeaponCollisionResponseTypes type, CInputStream &in, CSimplePool *resPool)
|
void CCollisionResponseData::AddParticleSystemToResponse(EWeaponCollisionResponseTypes type, CInputStream& in,
|
||||||
|
CSimplePool* resPool)
|
||||||
{
|
{
|
||||||
int i = int(type);
|
int i = int(type);
|
||||||
std::vector<ResId> tracker;
|
std::vector<ResId> tracker;
|
||||||
|
@ -192,8 +145,7 @@ bool CCollisionResponseData::CheckAndAddResourceToResponse(FourCC clsId, CInputS
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
CCollisionResponseData::CCollisionResponseData(CInputStream& in, CSimplePool* resPool)
|
CCollisionResponseData::CCollisionResponseData(CInputStream& in, CSimplePool* resPool) : x30_RNGE(50.f), x34_FOFF(0.2f)
|
||||||
: x30_RNGE(50.f), x34_FOFF(0.2f)
|
|
||||||
{
|
{
|
||||||
x0_generators.resize(94);
|
x0_generators.resize(94);
|
||||||
x10_sfx.resize(94);
|
x10_sfx.resize(94);
|
||||||
|
@ -227,12 +179,14 @@ CCollisionResponseData::CCollisionResponseData(CInputStream& in, CSimplePool* re
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const rstl::optional_object<TLockedToken<CGenDescription>>& CCollisionResponseData::GetParticleDescription(EWeaponCollisionResponseTypes type) const
|
const rstl::optional_object<TLockedToken<CGenDescription>>&
|
||||||
|
CCollisionResponseData::GetParticleDescription(EWeaponCollisionResponseTypes type) const
|
||||||
{
|
{
|
||||||
return x0_generators[u32(type)];
|
return x0_generators[u32(type)];
|
||||||
}
|
}
|
||||||
|
|
||||||
const rstl::optional_object<TLockedToken<CDecalDescription>>& CCollisionResponseData::GetDecalDescription(EWeaponCollisionResponseTypes type) const
|
const rstl::optional_object<TLockedToken<CDecalDescription>>&
|
||||||
|
CCollisionResponseData::GetDecalDescription(EWeaponCollisionResponseTypes type) const
|
||||||
{
|
{
|
||||||
return x20_decals[u32(type)];
|
return x20_decals[u32(type)];
|
||||||
}
|
}
|
||||||
|
@ -277,15 +231,13 @@ bool CCollisionResponseData::ResponseTypeIsEnemyShielded(EWeaponCollisionRespons
|
||||||
return (type >= EWeaponCollisionResponseTypes::Unknown69 && type <= EWeaponCollisionResponseTypes::Unknown93);
|
return (type >= EWeaponCollisionResponseTypes::Unknown69 && type <= EWeaponCollisionResponseTypes::Unknown93);
|
||||||
}
|
}
|
||||||
|
|
||||||
FourCC CCollisionResponseData::UncookedResType()
|
FourCC CCollisionResponseData::UncookedResType() { return SBIG('CRSM'); }
|
||||||
{
|
|
||||||
return SBIG('CRSM');
|
|
||||||
}
|
|
||||||
|
|
||||||
CFactoryFnReturn FCollisionResponseDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms)
|
CFactoryFnReturn FCollisionResponseDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
|
||||||
|
CObjectReference*)
|
||||||
{
|
{
|
||||||
CSimplePool* sp = vparms.GetOwnedObj<CSimplePool*>();
|
CSimplePool* sp = vparms.GetOwnedObj<CSimplePool*>();
|
||||||
return TToken<CCollisionResponseData>::GetIObjObjectFor(std::unique_ptr<CCollisionResponseData>(new CCollisionResponseData(in, sp)));
|
return TToken<CCollisionResponseData>::GetIObjObjectFor(
|
||||||
|
std::unique_ptr<CCollisionResponseData>(new CCollisionResponseData(in, sp)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,8 @@ public:
|
||||||
static FourCC UncookedResType();
|
static FourCC UncookedResType();
|
||||||
};
|
};
|
||||||
|
|
||||||
CFactoryFnReturn FCollisionResponseDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms);
|
CFactoryFnReturn FCollisionResponseDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
|
||||||
|
CObjectReference*);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __URDE_CCOLLISIONRESPONSEDATA_HPP__
|
#endif // __URDE_CCOLLISIONRESPONSEDATA_HPP__
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include "CCompoundTargetReticle.hpp"
|
||||||
|
|
||||||
|
namespace urde
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
#ifndef __CCOMPOUNDTARGETRETICLE_HPP__
|
||||||
|
#define __CCOMPOUNDTARGETRETICLE_HPP__
|
||||||
|
|
||||||
|
namespace urde
|
||||||
|
{
|
||||||
|
class CStateManager;
|
||||||
|
class CCompoundTargetReticle
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CCompoundTargetReticle(const CStateManager&);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // __CCOMPOUNDTARGETRETICLE_HPP__
|
|
@ -35,6 +35,8 @@ set(GUISYS_SOURCES
|
||||||
CWordBreakTables.hpp CWordBreakTables.cpp
|
CWordBreakTables.hpp CWordBreakTables.cpp
|
||||||
CFontImageDef.hpp CFontImageDef.cpp
|
CFontImageDef.hpp CFontImageDef.cpp
|
||||||
CStringTable.hpp CStringTable.cpp
|
CStringTable.hpp CStringTable.cpp
|
||||||
CTargetingManager.hpp CTargetingManager.cpp)
|
CTargetingManager.hpp CTargetingManager.cpp
|
||||||
|
CCompoundTargetReticle.hpp CCompoundTargetReticle.cpp
|
||||||
|
COrbitPointMarker.hpp COrbitPointMarker.cpp)
|
||||||
|
|
||||||
runtime_add_list(GuiSys GUISYS_SOURCES)
|
runtime_add_list(GuiSys GUISYS_SOURCES)
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
#ifndef __URDE_CTARGETINGMANAGER_HPP__
|
||||||
|
#define __URDE_CTARGETINGMANAGER_HPP__
|
||||||
|
|
||||||
|
#include "CCompoundTargetReticle.hpp"
|
||||||
|
#include "COrbitPointMarker.hpp"
|
||||||
|
|
||||||
|
namespace urde
|
||||||
|
{
|
||||||
|
class CStateManager;
|
||||||
|
class CTargetingManager
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
CTargetingManager(const CStateManager&);
|
||||||
|
bool CheckLoadComplete();
|
||||||
|
void Update(float, const CStateManager&);
|
||||||
|
void Draw(const CStateManager&) const;
|
||||||
|
void Touch() const;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif // __URDE_CTARGETINGMANAGER_HPP__
|
|
@ -106,7 +106,7 @@ private:
|
||||||
u32 m_activeFontCh = -1;
|
u32 m_activeFontCh = -1;
|
||||||
|
|
||||||
zeus::CColor m_main;
|
zeus::CColor m_main;
|
||||||
zeus::CColor m_outline;
|
zeus::CColor m_outline = zeus::CColor::skBlack;
|
||||||
|
|
||||||
CGuiWidget::EGuiModelDrawFlags m_drawFlags;
|
CGuiWidget::EGuiModelDrawFlags m_drawFlags;
|
||||||
|
|
||||||
|
|
|
@ -103,12 +103,16 @@ CIOWin::EMessageReturn CMFGameLoader::OnMessage(const CArchitectureMessage& msg,
|
||||||
return EMessageReturn::Exit;
|
return EMessageReturn::Exit;
|
||||||
}
|
}
|
||||||
u32 loadingCount = 0;
|
u32 loadingCount = 0;
|
||||||
|
std::vector<const SObjectTag*> unloaded;
|
||||||
for (CToken& tok : x1c_loadList)
|
for (CToken& tok : x1c_loadList)
|
||||||
{
|
{
|
||||||
tok.Lock();
|
tok.Lock();
|
||||||
if (!tok.IsLoaded())
|
if (!tok.IsLoaded())
|
||||||
|
{
|
||||||
|
unloaded.push_back(tok.GetObjectTag());
|
||||||
++loadingCount;
|
++loadingCount;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
wtMgr->Update(dt);
|
wtMgr->Update(dt);
|
||||||
if (loadingCount)
|
if (loadingCount)
|
||||||
return EMessageReturn::Exit;
|
return EMessageReturn::Exit;
|
||||||
|
|
|
@ -31,7 +31,6 @@ CDecalDescription* CDecalDataFactory::CreateGeneratorDescription(CInputStream& i
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CDecalDataFactory::CreateDPSM(CDecalDescription* desc, CInputStream& in, CSimplePool* resPool)
|
bool CDecalDataFactory::CreateDPSM(CDecalDescription* desc, CInputStream& in, CSimplePool* resPool)
|
||||||
{
|
{
|
||||||
CRandom16 rand{99};
|
CRandom16 rand{99};
|
||||||
|
@ -137,10 +136,11 @@ void CDecalDataFactory::GetQuadDecalInfo(CInputStream& in, CSimplePool* resPool,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CFactoryFnReturn FDecalDataFactory(const SObjectTag &tag, CInputStream &in, const CVParamTransfer &vparms)
|
CFactoryFnReturn FDecalDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
|
||||||
|
CObjectReference*)
|
||||||
{
|
{
|
||||||
CSimplePool* sp = vparms.GetOwnedObj<CSimplePool*>();
|
CSimplePool* sp = vparms.GetOwnedObj<CSimplePool*>();
|
||||||
return TToken<CDecalDescription>::GetIObjObjectFor(std::unique_ptr<CDecalDescription>(CDecalDataFactory::GetGeneratorDesc(in, sp)));
|
return TToken<CDecalDescription>::GetIObjObjectFor(
|
||||||
|
std::unique_ptr<CDecalDescription>(CDecalDataFactory::GetGeneratorDesc(in, sp)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,11 +16,14 @@ class CDecalDataFactory
|
||||||
{
|
{
|
||||||
static bool CreateDPSM(CDecalDescription* desc, CInputStream& in, CSimplePool* resPool);
|
static bool CreateDPSM(CDecalDescription* desc, CInputStream& in, CSimplePool* resPool);
|
||||||
static CDecalDescription* CreateGeneratorDescription(CInputStream& in, CSimplePool* resPool);
|
static CDecalDescription* CreateGeneratorDescription(CInputStream& in, CSimplePool* resPool);
|
||||||
static void GetQuadDecalInfo(CInputStream& in, CSimplePool* resPool, FourCC clsId, CDecalDescription::SQuadDescr& quad);
|
static void GetQuadDecalInfo(CInputStream& in, CSimplePool* resPool, FourCC clsId,
|
||||||
|
CDecalDescription::SQuadDescr& quad);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CDecalDescription* GetGeneratorDesc(CInputStream& in, CSimplePool* resPool);
|
static CDecalDescription* GetGeneratorDesc(CInputStream& in, CSimplePool* resPool);
|
||||||
};
|
};
|
||||||
|
|
||||||
CFactoryFnReturn FDecalDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms);
|
CFactoryFnReturn FDecalDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
|
||||||
|
CObjectReference*);
|
||||||
}
|
}
|
||||||
#endif // __URDE_CDECALDATAFACTORY_HPP__
|
#endif // __URDE_CDECALDATAFACTORY_HPP__
|
||||||
|
|
|
@ -132,10 +132,11 @@ void CParticleElectricDataFactory::LoadELSMTokens(CElectricDescription* desc)
|
||||||
desc->x60_EPSM.m_gen = desc->x60_EPSM.m_token.GetObj();
|
desc->x60_EPSM.m_gen = desc->x60_EPSM.m_token.GetObj();
|
||||||
}
|
}
|
||||||
|
|
||||||
CFactoryFnReturn FParticleElectricDataFactory(const SObjectTag &tag, CInputStream &in, const CVParamTransfer &vparms)
|
CFactoryFnReturn FParticleElectricDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
|
||||||
|
CObjectReference*)
|
||||||
{
|
{
|
||||||
CSimplePool* sp = vparms.GetOwnedObj<CSimplePool*>();
|
CSimplePool* sp = vparms.GetOwnedObj<CSimplePool*>();
|
||||||
return TToken<CElectricDescription>::GetIObjObjectFor(std::unique_ptr<CElectricDescription>(CParticleElectricDataFactory::GetGeneratorDesc(in, sp)));
|
return TToken<CElectricDescription>::GetIObjObjectFor(
|
||||||
|
std::unique_ptr<CElectricDescription>(CParticleElectricDataFactory::GetGeneratorDesc(in, sp)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,8 @@ public:
|
||||||
static CElectricDescription* GetGeneratorDesc(CInputStream& in, CSimplePool* resPool);
|
static CElectricDescription* GetGeneratorDesc(CInputStream& in, CSimplePool* resPool);
|
||||||
};
|
};
|
||||||
|
|
||||||
CFactoryFnReturn FParticleElectricDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms);
|
CFactoryFnReturn FParticleElectricDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
|
||||||
|
CObjectReference*);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __URDE_CPARTICLEELECTRICDATAFACTORY_HPP__
|
#endif // __URDE_CPARTICLEELECTRICDATAFACTORY_HPP__
|
||||||
|
|
|
@ -137,10 +137,11 @@ bool CParticleSwooshDataFactory::CreateWPSM(CSwooshDescription* desc, CInputStre
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
CFactoryFnReturn FParticleSwooshDataFactory(const SObjectTag &tag, CInputStream &in, const CVParamTransfer &vparms)
|
CFactoryFnReturn FParticleSwooshDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
|
||||||
|
CObjectReference*)
|
||||||
{
|
{
|
||||||
CSimplePool* sp = vparms.GetOwnedObj<CSimplePool*>();
|
CSimplePool* sp = vparms.GetOwnedObj<CSimplePool*>();
|
||||||
return TToken<CSwooshDescription>::GetIObjObjectFor(std::unique_ptr<CSwooshDescription>(CParticleSwooshDataFactory::GetGeneratorDesc(in, sp)));
|
return TToken<CSwooshDescription>::GetIObjObjectFor(
|
||||||
|
std::unique_ptr<CSwooshDescription>(CParticleSwooshDataFactory::GetGeneratorDesc(in, sp)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,8 @@ public:
|
||||||
static CSwooshDescription* GetGeneratorDesc(CInputStream& in, CSimplePool* resPool);
|
static CSwooshDescription* GetGeneratorDesc(CInputStream& in, CSimplePool* resPool);
|
||||||
};
|
};
|
||||||
|
|
||||||
CFactoryFnReturn FParticleSwooshDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms);
|
CFactoryFnReturn FParticleSwooshDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
|
||||||
|
CObjectReference*);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __URDE_CPARTICLESWOOSHDATAFACTORY_HPP__
|
#endif // __URDE_CPARTICLESWOOSHDATAFACTORY_HPP__
|
||||||
|
|
|
@ -164,10 +164,11 @@ bool CProjectileWeaponDataFactory::CreateWPSM(CWeaponDescription* desc, CInputSt
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
CFactoryFnReturn FProjectileWeaponDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms)
|
CFactoryFnReturn FProjectileWeaponDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
|
||||||
|
CObjectReference*)
|
||||||
{
|
{
|
||||||
CSimplePool* sp = vparms.GetOwnedObj<CSimplePool*>();
|
CSimplePool* sp = vparms.GetOwnedObj<CSimplePool*>();
|
||||||
return TToken<CWeaponDescription>::GetIObjObjectFor(std::unique_ptr<CWeaponDescription>(CProjectileWeaponDataFactory::GetGeneratorDesc(in, sp)));
|
return TToken<CWeaponDescription>::GetIObjObjectFor(
|
||||||
|
std::unique_ptr<CWeaponDescription>(CProjectileWeaponDataFactory::GetGeneratorDesc(in, sp)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,11 +15,13 @@ class CProjectileWeaponDataFactory
|
||||||
{
|
{
|
||||||
static CWeaponDescription* CreateGeneratorDescription(CInputStream& in, CSimplePool* resPool);
|
static CWeaponDescription* CreateGeneratorDescription(CInputStream& in, CSimplePool* resPool);
|
||||||
static bool CreateWPSM(CWeaponDescription* desc, CInputStream& in, CSimplePool* resPool);
|
static bool CreateWPSM(CWeaponDescription* desc, CInputStream& in, CSimplePool* resPool);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static CWeaponDescription* GetGeneratorDesc(CInputStream& in, CSimplePool* resPool);
|
static CWeaponDescription* GetGeneratorDesc(CInputStream& in, CSimplePool* resPool);
|
||||||
};
|
};
|
||||||
|
|
||||||
CFactoryFnReturn FProjectileWeaponDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms);
|
CFactoryFnReturn FProjectileWeaponDataFactory(const SObjectTag& tag, CInputStream& in, const CVParamTransfer& vparms,
|
||||||
|
CObjectReference*);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __URDE_CPROJECTILEWEAPONDATAFACTORY_HPP__
|
#endif // __URDE_CPROJECTILEWEAPONDATAFACTORY_HPP__
|
||||||
|
|
|
@ -29,10 +29,7 @@ CScriptTrigger::CScriptTrigger(TUniqueId uid, const std::string& name, const CEn
|
||||||
x148_27_deactivateOnExited = b3;
|
x148_27_deactivateOnExited = b3;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CScriptTrigger::Accept(IVisitor& visitor)
|
void CScriptTrigger::Accept(IVisitor& visitor) { visitor.Visit(this); }
|
||||||
{
|
|
||||||
visitor.Visit(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
void CScriptTrigger::Think(float dt, CStateManager& mgr)
|
void CScriptTrigger::Think(float dt, CStateManager& mgr)
|
||||||
{
|
{
|
||||||
|
@ -81,6 +78,8 @@ CScriptTrigger::CObjectTracker* CScriptTrigger::FindObject(TUniqueId id)
|
||||||
void CScriptTrigger::UpdateInhabitants(float dt, CStateManager& mgr)
|
void CScriptTrigger::UpdateInhabitants(float dt, CStateManager& mgr)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
|
bool inhabitantExited = false;
|
||||||
|
bool player = false;
|
||||||
for (auto it = xe8_inhabitants.begin(); it != xe8_inhabitants.end();)
|
for (auto it = xe8_inhabitants.begin(); it != xe8_inhabitants.end();)
|
||||||
{
|
{
|
||||||
TCastToPtr<CActor> act(mgr.ObjectById((*it).GetObjectId()));
|
TCastToPtr<CActor> act(mgr.ObjectById((*it).GetObjectId()));
|
||||||
|
@ -89,6 +88,7 @@ void CScriptTrigger::UpdateInhabitants(float dt, CStateManager& mgr)
|
||||||
TCastToPtr<CPlayer> pl(act);
|
TCastToPtr<CPlayer> pl(act);
|
||||||
if (bool(x12c_flags & ETriggerFlags::DetectPlayer))
|
if (bool(x12c_flags & ETriggerFlags::DetectPlayer))
|
||||||
{
|
{
|
||||||
|
player = true;
|
||||||
using EPlayerMorphBallState = CPlayer::EPlayerMorphBallState;
|
using EPlayerMorphBallState = CPlayer::EPlayerMorphBallState;
|
||||||
EPlayerMorphBallState mState = pl->GetMorphballTransitionState();
|
EPlayerMorphBallState mState = pl->GetMorphballTransitionState();
|
||||||
if ((mState == EPlayerMorphBallState::Morphed &&
|
if ((mState == EPlayerMorphBallState::Morphed &&
|
||||||
|
@ -106,8 +106,8 @@ void CScriptTrigger::UpdateInhabitants(float dt, CStateManager& mgr)
|
||||||
x148_29_didPhazonDamage = false;
|
x148_29_didPhazonDamage = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mgr.GetLastTrigger() == GetUniqueId())
|
if (mgr.GetLastTriggerId() == GetUniqueId())
|
||||||
mgr.SetLastTrigger(kInvalidUniqueId);
|
mgr.SetLastTriggerId(kInvalidUniqueId);
|
||||||
}
|
}
|
||||||
|
|
||||||
InhabitantExited(*act, mgr);
|
InhabitantExited(*act, mgr);
|
||||||
|
@ -124,14 +124,16 @@ void CScriptTrigger::UpdateInhabitants(float dt, CStateManager& mgr)
|
||||||
inhabitantExited = true;
|
inhabitantExited = true;
|
||||||
InhabitantIdle(*act, mgr);
|
InhabitantIdle(*act, mgr);
|
||||||
if (act->HealthInfo() && x100_damageInfo.GetDamage() > 0.f)
|
if (act->HealthInfo() && x100_damageInfo.GetDamage() > 0.f)
|
||||||
mgr.ApplyDamage(GetUniqueId(), act->GetUniqueId(), GetUniqueId(), x100_damageInfo, CMaterialFilter::MakeIncludeExclude({EMaterialTypes::Solid}, {0ull}));
|
mgr.ApplyDamage(GetUniqueId(), act->GetUniqueId(), GetUniqueId(), x100_damageInfo,
|
||||||
|
CMaterialFilter::MakeIncludeExclude({EMaterialTypes::Solid}, {0ull}));
|
||||||
|
|
||||||
TCastToPtr<CPhysicsActor> physAct{act};
|
TCastToPtr<CPhysicsActor> physAct{act};
|
||||||
if (physAct)
|
if (physAct)
|
||||||
{
|
{
|
||||||
float forceMult = 1.f;
|
float forceMult = 1.f;
|
||||||
if (bool(x12c_flags & ETriggerFlags::UseBooleanIntersection))
|
if (bool(x12c_flags & ETriggerFlags::UseBooleanIntersection))
|
||||||
forceMult = touchBounds->booleanIntersection(*actTouchBounds).volume() / actTouchBounds->volume();
|
forceMult =
|
||||||
|
touchBounds->booleanIntersection(*actTouchBounds).volume() / actTouchBounds->volume();
|
||||||
|
|
||||||
zeus::CVector3f force = forceMult * x11c_forceField;
|
zeus::CVector3f force = forceMult * x11c_forceField;
|
||||||
if (bool(x12c_flags & ETriggerFlags::UseCollisionImpulses))
|
if (bool(x12c_flags & ETriggerFlags::UseCollisionImpulses))
|
||||||
|
@ -160,8 +162,8 @@ void CScriptTrigger::UpdateInhabitants(float dt, CStateManager& mgr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mgr.GetLastTrigger() == GetUniqueId())
|
if (mgr.GetLastTriggerId() == GetUniqueId())
|
||||||
mgr.SetLastTrigger(kInvalidUniqueId);
|
mgr.SetLastTriggerId(kInvalidUniqueId);
|
||||||
|
|
||||||
InhabitantExited(*act, mgr);
|
InhabitantExited(*act, mgr);
|
||||||
continue;
|
continue;
|
||||||
|
@ -183,8 +185,8 @@ void CScriptTrigger::UpdateInhabitants(float dt, CStateManager& mgr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mgr.GetLastTrigger() == GetUniqueId())
|
if (mgr.GetLastTriggerId() == GetUniqueId())
|
||||||
mgr.SetLastTrigger(kInvalidUniqueId);
|
mgr.SetLastTriggerId(kInvalidUniqueId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -194,14 +196,13 @@ void CScriptTrigger::UpdateInhabitants(float dt, CStateManager& mgr)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!player)
|
if (!player)
|
||||||
{
|
{
|
||||||
SendScriptMsgs(EScriptObjectState::Exited, mgr, EScriptObjectMessage::None);
|
SendScriptMsgs(EScriptObjectState::Exited, mgr, EScriptObjectMessage::None);
|
||||||
if (x148_27_deactivateOnExited)
|
if (x148_27_deactivateOnExited)
|
||||||
{
|
{
|
||||||
mgr.SendScriptMsg(GetUniqueId(), mgr.GetEditorIdForUniqueId(GetUniqueId()), EScriptObjectMessage::Deactivate,
|
mgr.SendScriptMsg(GetUniqueId(), mgr.GetEditorIdForUniqueId(GetUniqueId()),
|
||||||
EScriptObjectState::Exited);
|
EScriptObjectMessage::Deactivate, EScriptObjectState::Exited);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
2
hecl
2
hecl
|
@ -1 +1 @@
|
||||||
Subproject commit 406079b5bcfffd2953f541d27fdc869a07c88c95
|
Subproject commit be31b7d4ac28cf28e441bcdae972fcc21353959d
|
Loading…
Reference in New Issue