mirror of https://github.com/AxioDL/metaforce.git
CFlaahgra: Add NoStaticCollision to SetMaterialProperties exclude
This commit is contained in:
parent
c436ea1405
commit
848375a939
|
@ -753,8 +753,8 @@ void CFlaahgra::SetMaterialProperties(const std::unique_ptr<CCollisionActorManag
|
||||||
TUniqueId uid = actMgr->GetCollisionDescFromIndex(i).GetCollisionActorId();
|
TUniqueId uid = actMgr->GetCollisionDescFromIndex(i).GetCollisionActorId();
|
||||||
if (CCollisionActor* colAct = static_cast<CCollisionActor*>(mgr.ObjectById(uid))) {
|
if (CCollisionActor* colAct = static_cast<CCollisionActor*>(mgr.ObjectById(uid))) {
|
||||||
colAct->SetMaterialFilter(CMaterialFilter::MakeIncludeExclude(
|
colAct->SetMaterialFilter(CMaterialFilter::MakeIncludeExclude(
|
||||||
{EMaterialTypes::Player},
|
{EMaterialTypes::Player}, {EMaterialTypes::Trigger, EMaterialTypes::CollisionActor,
|
||||||
{EMaterialTypes::Trigger, EMaterialTypes::CollisionActor, EMaterialTypes::Immovable}));
|
EMaterialTypes::NoStaticCollision, EMaterialTypes::Immovable}));
|
||||||
colAct->AddMaterial(EMaterialTypes::Trigger, EMaterialTypes::ScanPassthrough, mgr);
|
colAct->AddMaterial(EMaterialTypes::Trigger, EMaterialTypes::ScanPassthrough, mgr);
|
||||||
colAct->SetDamageVulnerability(*GetDamageVulnerability());
|
colAct->SetDamageVulnerability(*GetDamageVulnerability());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue