From f8a82fbf798a708c714e44246489dd960d28f901 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sat, 4 Oct 2025 20:56:21 -0700 Subject: [PATCH] fix: the exploding script is the most amazing piece of code i have ever had the pleasure of working with and has been amazing to work on and translate from lua MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hahahahahahahahahahwwwwwwwwwwwwwwww草 --- dScripts/02_server/Map/General/ExplodingAsset.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/dScripts/02_server/Map/General/ExplodingAsset.cpp b/dScripts/02_server/Map/General/ExplodingAsset.cpp index 54ae4207..e073fffd 100644 --- a/dScripts/02_server/Map/General/ExplodingAsset.cpp +++ b/dScripts/02_server/Map/General/ExplodingAsset.cpp @@ -47,13 +47,8 @@ void ExplodingAsset::OnHit(Entity* self, Entity* attacker) { if (!proximityComponent) return; if (!self->GetBoolean(u"bIsHit")) { - for (const auto objID : proximityComponent->GetProximityObjects("crateHitters")) { - auto* const entity = Game::entityManager->GetEntity(objID); - if (!entity || !entity->IsPlayer()) continue; - - auto* const destroyable = entity->GetComponent(); - if (destroyable) destroyable->Smash(attacker->GetObjectID()); - } + auto* const destroyable = attacker->GetComponent(); + if (destroyable) destroyable->Smash(attacker->GetObjectID()); } attacker = attacker->GetOwner();