Files
TeslaRel410/restoration/source410/BT/PROJTILE.CPP
T
CydandClaude Fable 5 110ecec2ca BT410 Phase 5.3.18: flying missiles -- spawn/home/detonate LIVE, teardown open
The Missile entity family is reconstructed: Projectile : Mover gets a real
make-path ctor; Missile hosts the Seeker + MissleThruster roster (the
AUTHENTIC surviving SEEKER.HPP / MISTHRST.HPP interfaces -- the 1995
misspelling included) and flies the binary's guided integrator (@004bef78):
age/lifetime, seeker re-lead with the decoded loft constants
(200/50/300/0.1), thruster burn, steering (gain 4.0, deadband 1e-4), and
the proximity fuse delivering the cluster damage ONCE with the launcher as
inflictor.  Live-verified end-to-end: LAUNCH -> flight telemetry (thruster
visibly accelerating) -> DETONATE on the target ~0.9s out.

OPEN: the first ~Missile off the death row completes, then the frame
page-faults with EIP in the heap -- the first entity/subsystem teardown the
reconstructed sim has ever run.  The spawn path is therefore OPT-IN
(BT_MISSILE_FLIGHT=1); default SRM delivery stays the 5.3.18a instant-hit
cluster (verified 1:1, zero exceptions).  Forensics + engine truths
(SearchList crashes on non-directory ids; MakeMessages need FAMILY resource
ids; explosionModelFile is a model-list INDEX) in MISSILE.NOTES.md.

Also fixed on the way: the Subsystem NAME ctor left damageZone
UNINITIALIZED (latent garbage for every name-built subsystem).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 11:58:40 -05:00

66 lines
1.9 KiB
C++

//===========================================================================//
// File: projtile.cpp //
// Project: BattleTech Brick: Mech weapons //
// Contents: Projectile -- the flying-round entity base (Missile derives) //
//---------------------------------------------------------------------------//
// Copyright (C) 1995, Virtual World Entertainment, Inc. //
// All Rights reserved worldwide //
// This unpublished sourcecode is PROPRIETARY and CONFIDENTIAL //
//===========================================================================//
//
// PARTIAL (binary ctor @004be1bc, vtable @00512a5c, 0x340 bytes): the base
// chains the Mover make path -- the MakeMessage's resourceID is the
// projectile GameModel, so the Mover ctor streams the authored mass / drag /
// inertia. The tracer/ballistic body (the unguided MoveAndCollide, smoke
// trail, PROJTILE.TCP surface) joins the autocannon wave; the Missile
// subclass carries the only flying rounds in the 4.10 pod content.
//
#include <bt.hpp>
#pragma hdrstop
#if !defined(PROJTILE_HPP)
# include <projtile.hpp>
#endif
Derivation
Projectile::ClassDerivations(
Mover::ClassDerivations,
"Projectile"
);
Projectile::SharedData
Projectile::DefaultData(
Projectile::ClassDerivations,
Mover::MessageHandlers,
Mover::AttributeIndex,
1,
(Entity::MakeHandler)Projectile::Make
);
Projectile*
Projectile::Make(MakeMessage *creation_message)
{
return new Projectile(creation_message);
}
Projectile::Projectile(
MakeMessage *creation_message,
SharedData &shared_data
):
Mover(creation_message, shared_data)
{
Check(creation_message);
Check_Fpu();
}
Projectile::~Projectile()
{
}
Logical
Projectile::TestInstance() const
{
return IsDerivedFrom(ClassDerivations);
}