From 822aba419469b5b3902b2a42e22ef267c4e275f6 Mon Sep 17 00:00:00 2001 From: Aaron Kimbrell Date: Thu, 1 Oct 2026 06:33:25 -0500 Subject: [PATCH] fix(entity): a model's destroyable has armor 1, as live sent it Live constructions of models on a Raven Bluff property (LOT 14, LOT 8069) carry the destroyable with health 1 / 1.0, armor 1 / 0, faction -1, smashable; DLU's had armor 0. Co-Authored-By: Claude Opus 5.5 --- dGame/Entity.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dGame/Entity.cpp b/dGame/Entity.cpp index a0f7a27a1..1a5de2efc 100644 --- a/dGame/Entity.cpp +++ b/dGame/Entity.cpp @@ -271,6 +271,8 @@ void Entity::Initialize() { auto* destroyableComponent = AddComponent(-1); destroyableComponent->SetHealth(1); destroyableComponent->SetMaxHealth(1.0f); + // Live: armor 1 (max 0), as for every componentID -1 destroyable (LOT 14 and 8069 on a Raven Bluff property) + destroyableComponent->SetArmor(1); destroyableComponent->SetFaction(-1, true); destroyableComponent->SetIsSmashable(true); // We have all our components. @@ -827,6 +829,8 @@ void Entity::Initialize() { auto* const destroyableComponent = AddComponent(-1); destroyableComponent->SetHealth(1); destroyableComponent->SetMaxHealth(1.0f); + // Live: armor 1 (max 0), as for every componentID -1 destroyable (LOT 8069 on a Raven Bluff property) + destroyableComponent->SetArmor(1); destroyableComponent->SetFaction(-1, true); destroyableComponent->SetIsSmashable(true); }