CFlaahgra: Add NoStaticCollision to SetMaterialProperties exclude

This commit is contained in:
Luke Street 2020-08-15 04:37:14 -04:00
parent c436ea1405
commit 848375a939
1 changed files with 2 additions and 2 deletions

View File

@ -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());
} }