Fix falling from Spider Cave not smashing you (#1302)

This commit is contained in:
jadebenn 2023-11-17 18:43:01 -06:00 committed by GitHub
parent 0ddd20e2b5
commit 7bbe5ffc39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4170,6 +4170,13 @@ void GameMessages::HandleRequestDie(RakNet::BitStream* inStream, Entity* entity,
racingControlComponent->OnRequestDie(entity);
}
else {
auto* destroyableComponent = entity->GetComponent<DestroyableComponent>();
if (!destroyableComponent) return;
destroyableComponent->Smash(killerID, killType, deathType);
}
}