Skip to content

[Bug]: Unit generic work progress transfers as silo ammo build progress in unit ownership transfer #7049

@lL1l1

Description

@lL1l1

Describe the Bug

Reported on https://forum.faforever.com/topic/9914/bug-report-subnuke-abuse.

according to the code:

local workprogress = unit:GetWorkProgress()

fa/lua/SimUtils.lua

Lines 449 to 451 in b1d2d40

if newUnit.Blueprint.CategoriesHash["SILO"] then
newUnit:GiveNukeSiloBlocks(workprogress)
end

Any work progress gets transferred as silo progress. The main exploit is how we use work progress for displaying weapon reload times.

Reproduce the bug

The forum post reproduces it by spawning a nuke sub, letting it fire a TML (to get the progress bar working), and then transferring it to an ally to save that progress bar as nuke progress.

Screenshots

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions