diff options
| author | Valentin Popov <valentin@popov.link> | 2026-11-26 00:38:43 +0300 |
|---|---|---|
| committer | Valentin Popov <valentin@popov.link> | 2026-11-26 00:38:43 +0300 |
| commit | 8ac763f7bfda827016d17c66372d02b85d5a9bb5 (patch) | |
| tree | ba44dff42d32ddc97d600a5ad614f97939e6a3ff /crates/fparkan-binary/src/lib.rs | |
| parent | 530afea388f4e487a5a1320381c59e7d217717d8 (diff) | |
| download | fparkan-8ac763f7bfda827016d17c66372d02b85d5a9bb5.tar.xz fparkan-8ac763f7bfda827016d17c66372d02b85d5a9bb5.zip | |
feat(combat): feed weapon charge from Control energy budgets
Keep factory-2/30 charge in the owner's Control table. AI and player banks
read it before firing, debit completed shots and wait for regeneration.
Preserve one charge across bank changes and accumulate energy waits by
object, including an idle bank publishing after an active bank.
Mobile owners now run the resource budget. Restore the shared factory-1
callbacks, factory-2/30 charging and factory-10 passive upkeep. Factory 30
uses the weapon constructor's native disabled default. Motion demand is
still an explicit zero-rate stub; unsupported budgets disable charge
limiting for that owner and record the reason.
Execute unmodified GOG Control.dll callbacks at RVA 0x29a40/0x29a90,
0x264b0/0x26510 and 0x21860/0x21890; check the common constructor at
0x294c0. Rust golden vectors cover disabled refill, zero capacity,
negative charge and x87 rounding at control word 0x007f.
SHA-256: bcb86318089028548a178b03a21accdce15df0cc85ddd91674cf3c2f55012c6e.
Validated fmt, workspace check/tests, release, licensed shared-bank charge
exhaustion/recovery, stock combat and damaged-profile regressions. All 29
stock missions reached 900 seconds; the only mobile-budget stub was the
known motion input. Observed stock window combat and replenishment.
Full live native mission comparison and motion energy remain open.
Diffstat (limited to 'crates/fparkan-binary/src/lib.rs')
0 files changed, 0 insertions, 0 deletions
