2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

CEnergyProjectile: Properly set hitProjectileOwner

Fixes #359
This commit is contained in:
2020-09-26 10:38:22 -04:00
parent 902b5644f7
commit dad16bf59b
3 changed files with 7 additions and 4 deletions

View File

@@ -158,6 +158,7 @@ void CEnergyProjectile::ResolveCollisionWithActor(const CRayCastResult& res, CAc
ApplyDamageToActors(mgr, x12c_curDamageInfo);
}
if (const TCastToPtr<CEnergyProjectile> proj = act) {
proj->SetHitProjectileOwner(xec_ownerId);
proj->Explode(GetTranslation(), x34_transform.basis[1], EWeaponCollisionResponseTypes::OtherProjectile, mgr,
*GetDamageVulnerability(), GetUniqueId());
}