BF2.US bf2-rsdeveloper wiki Parity Discord bf2.us
Battlefield Heroes
On this page

When a widget's key works (the use tests of every widget): the feature checklist

Heroes

When a widget's key works (the use tests of every widget) is a Battlefield Heroes widget. This page is its checklist from the project's feature ledger: every step of the original's code behind it and every situation it must work in, each with the proof that stands for it, or none. The ledger's status today: 6 of 109 lines checked.

checked

Situations: 0 of 19 checked for what the game does, 0 of 19 for what a player sees. The original's code: 6 of 71 checked (13 functions and 58 inner calls). By the ledger's rule this feature is not called done, fixed or the same as the original. The ledger was written on 2026-11-28 22:37.

What a check is

Every line has a kind: W, what the game does with nothing to see (a number, a speed, a refusal), or S, what a player sees or hears. A W line is checked by a test written from the original's code or by a play with a recorded pass; an S line only by a recorded play whose pixels an assert reads, or that a person looked at and wrote so. A scenario that merely exists, a test that merely calls the Rust function and a read of the listing are not checks. All feature checklists explains the rule.

What it is for a player#

Pressing a widget's key does something only where the widget allows it: a vehicle widget not on foot and not for the driver of another kind of vehicle, a widget that forbids seats not in a seat, some not off the ground, in water or under a parachute only when the widget says so, and none before its wait is over

That is this wiki's own line about it, taken at build time from the page that tells it.

the name a player knowsWhen a widget's key works (the use tests of every widget)
kindwidget
in the game's datadisableInsideVehicle, disableOutsideVehicle, disableInAllVehiclePositions, disableWhileOffGround, allowInWater, allowInParachute, allowInSkyDive, delayToUse, ammo.usageInterval
its row in the sweepsnotes/bfheroes/widget_sweep.md, the row THE USE TESTS

The original's entry functions#

Where the original starts doing it (BFHeroes.exe 1.126). The code behind the feature is everything these reach.

AddressWhat it is, in the ledger's wordsFollowed
0x0070d6a7the fire arm's selectable testwhole
0x0070b3a4its team limitwhole
0x00708582its first forwardwhole
0x007085ddits second forwardwhole
0x00773468the ability ammo's selectable test with its vehicle type blockwhole

The situations#

Every situation the ledger's matrix names for a feature of this kind, with its two lines side by side. "Has a scenario, no recorded pass" and "passed on a branch not landed" are the ledger's words for a play that is not a check yet.

SituationWhat the game does (W)What a player sees (S)Note
used on footopen: not checkedopen: not checked
used at the wheel of a vehicleopen: not checkedopen: not checked
used from a passenger's or a gunner's seatopen: not checkedopen: not checked
the user dies while it runsopen: not checkedopen: not checked
after the user respawnsopen: not checkedopen: not checked
the round ends while it runs, and the next round starts cleanopen: not checkedopen: not checked
the map changes while it runsopen: not checkedopen: not checked
a player who joins while it runs sees itopen: not checkedopen: not checked
watching a team mate who uses it (after dying, or as a spectator)open: not checkedopen: not checked
team mates against enemies (who gets it and who does not)open: not checkedopen: not checked
in water (swimming)open: not checkedopen: not checked
on a ladderopen: not checkedopen: not checked
while another effect runs on the same heroopen: not checkedopen: not checked
the effect on a target or user in a vehicle seat is drawn on the vehicleopen: not checkedopen: not checked
triggered in a round's last seconds, the next roundopen: not checkedopen: not checked
bought for valor points at the storeopen: not checkedopen: not checked
ready again only after its waitopen: not checkedopen: not checked
held at the account service, put in a widget slot and carried into a gameopen: not checkedopen: not checked
a pack's uses count down and the key is refused at none (a kept widget takes none)open: not checkedopen: not checked

Recorded plays#

The ledger names no played scenario for this feature.

The code behind it#

41 functions of the original reachable from the entries, as the ledger's tool walked them: each with its kind, the port's place, the proof that stands for it and that proof's kind. "Checked" is the ledger's tick; a row that is no line of the checklist (library code, shared engine code that is tested in its own game) says so.

The original's functionKindReachedOursProofIts kindChecked
0x0070d6a7 world::GenericFireArm::vslot108_at1c4Sentry, depth 0crates/bf2-client/src/kit.rs:695 (fn heroes_object)crates/bf2-client/src/weapons.rs:11040 (fn heroes_vehicle_tests_of_is_selectable), crates/bf2-client/tests/heroes_widget_sync.rs:6 (fn read)test from the original's codeyes
0x0070b3a4 world::GenericFireArm::vslot118_at1c4Wentry, depth 0crates/bfh-game/src/uncalled.rs:410 (fn fire_arm_slot_118)crates/bfh-game/tests/uncalled_bfh126.rs:331 (fn fire_arm_slot_118_compares_the_templates_count_with_the_holders_record)test from the original's codeyes
0x00708582 world::GenericFireArm::vslot18_at1c4Wentry, depth 0crates/bf2-server/src/field_heroes.rs:651 (fn fire_on_enable)bfh_client_stealth_firethe counter's weaker proofopen
0x007085dd world::GenericFireArm::vslot23_at1c4Sentry, depth 0crates/bf2-client/src/weapons.rs:891 (fn new)crates/bf2-server/src/customization_heroes.rs:1732 (fn ability_ammo_is_never_the_default)test from the original's codeyes
0x00773468 world::AbilityAmmoComp::isSelectableWentry, depth 0crates/bf2-server/src/abilities_heroes.rs:959 (fn camouflage_wait_left)crates/bf2-server/src/players_input_heroes_usable_tests.rs:6 (fn a_pocket_item_is_refused_where_no_vehicle_fits_before_its_wait_is_asked), crates/bfh-client/src/hud.rs:1015 (fn ability_ammo_comp_is_selectable_0x0072f35a_holds_the_recharge_across_switches)test from the original's codeyes
0x0070a4c7 FUN_0070a4c7W0x0070d6a7, depth 1crates/bf2-server/src/rules.rs:1639 (fn heroes_consumable_asset)bfh_ability_overload, bfh_alt_fire_ammo_poolthe counter's weaker proofopen
0x0070b30b FUN_0070b30bW0x0070d6a7, depth 1crates/bf2-backend/src/heroes_magma.rs:1050 (const CONSUMABLE_ITEMS)scenario bfh_client_itembar_spent_widget (PASS in run 20261027_072630_bfh_client_itembar_spent_widget) (+1 more)play with a recorded pass, state assertsyes
0x0071c867 FUN_0071c867W0x0070d6a7, depth 1trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x0041ad9b FUN_0041ad9bS0x00773468, depth 1crates/bf2-client/src/heroes_teleport.rs:175 (fn heroes_teleport_clock)crates/bf2-client/tests/client_events_bfh126.rs:1146 (fn heroes_game_time_getter_hands_back_the_stored_double)not a line: tested in every game: bf2142 0x00666070, bf2 0x004c4400
0x0069985d FUN_0069985dW0x00773468, depth 1crates/bf2-server/src/pocket_heroes.rs:67 (fn fire)crates/bfh-game/src/abilities/pocket.rs:337 (fn spot_on_the_ground)test from the original's codeyes
0x006fa1d0 FUN_006fa1d0W0x00773468, depth 1not portednoneopen: hub (50 callers): not expanded
0x006fa336 FUN_006fa336W0x00773468, depth 1not portednoneopen
0x0070aeac FUN_0070aeacW0x00773468, depth 1trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x00799c90 world::AmmoComp::isSelectableW0x00773468, depth 11.89 twin 0x0074fe71 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-gameplay/src/weapon/ammo.rs:1931the counter's weaker proofopen
0x009bd22c FUN_009bd22cW0x00773468, depth 1engine utility (>= 100 call sites)not a line
0x009f08fe __EH_prolog3_GSW0x00773468, depth 1CRT / compiler name (scope_rules.LIBNAME)not a line
0x009f0981 FUN_009f0981W0x00773468, depth 1engine utility (>= 100 call sites)not a line
0x00484e71 FUN_00484e71W0x0070a4c7, depth 2thin wrapper (<= 80 bytes, calls only library code)not a line
0x004073a5 FUN_004073a5W0x0069985d, depth 2not a line: engine utility (653 call sites, the counter's rule of 100); the counter has no row for it
0x004073ce ~animationSystem::setCameraSpring.amplitudeW0x0069985d, depth 2engine utility (>= 100 call sites)not a line
Show all 41 functions (the other 21)
The original's functionKindReachedOursProofIts kindChecked
0x004821ae FUN_004821aeW0x0069985d, depth 2engine utility (>= 100 call sites)not a line
0x0049d641 FUN_0049d641S0x0069985d, depth 2crates/bf2-client/src/fx/collision.rs:121 (fn ground_hit_distance)crates/bf2-client/src/fx/mod.rs:4541 (fn heroes_speed_inherit_order)not a line: hub (301 callers): not expanded
0x004a580f FUN_004a580fW0x0069985d, depth 2crates/bf2-core/src/fmath.rs:63 (fn normalize3_heroes)crates/bf2-core/tests/normalize_bfh126.rs:1 (fn hold)not a line: hub (132 callers): not expanded
0x0088f213 FUN_0088f213W0x0069985d, depth 2engine utility (>= 100 call sites)not a line
0x00527c67 world::PlayerManager::vslot16W0x0069985d vt+0x40, depth 2tiny stub (<= 5 bytes)not a line
0x004bd920 FUN_004bd920W0x006fa336, depth 21.89 twin 0x004b1968 is library code (coverage_bfh boilerplate)not a line
0x006f934e FUN_006f934eW0x006fa336, depth 2not portednoneopen
0x006f93af FUN_006f93afW0x006fa336, depth 2not portednoneopen
0x009f0895 __EH_prolog3W0x006fa336, depth 2CRT / compiler name (scope_rules.LIBNAME)not a line
0x009f096d __EH_epilog3W0x006fa336, depth 2CRT / compiler name (scope_rules.LIBNAME)not a line
0x006f7633 FUN_006f7633W0x006f934e, depth 3STL container code, READ: a container's own member by its listing; it calls a body that holds a Dinkumware error string (a stl-read: row of parity_denominator.yaml, H7762)not a line
0x006f8ae8 FUN_006f8ae8W0x006f934e, depth 3forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x009f08c8 __EH_prolog3_catchW0x006f934e, depth 3CRT / compiler name (scope_rules.LIBNAME)not a line
0x006f767a FUN_006f767aW0x006f93af, depth 3STL container code, READ: a container's own member by its listing; it calls a body that holds a Dinkumware error string (a stl-read: row of parity_denominator.yaml, H7762)not a line
0x006f8b01 FUN_006f8b01W0x006f93af, depth 3forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x006f81cf FUN_006f81cfW0x006f8ae8, depth 4forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x006f821f FUN_006f821fW0x006f8b01, depth 4forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x006f729f FUN_006f729fW0x006f81cf, depth 5forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x006f72ec FUN_006f72ecW0x006f821f, depth 5forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x006f6485 FUN_006f6485W0x006f729f, depth 6trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x006f649f FUN_006f649fW0x006f72ec, depth 6trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line

Inner calls#

A call through a virtual table has no line in the call graph; the ledger lists every one it met: 59 here, 58 of them open lines (nobody has named what they call, or what they call is not checked).

What is open#

In a player's words, as the ledger writes them:

  • used on foot (what it does): not checked
  • used on foot (what you see): not checked
  • used at the wheel of a vehicle (what it does): not checked
  • used at the wheel of a vehicle (what you see): not checked
  • used from a passenger's or a gunner's seat (what it does): not checked
  • used from a passenger's or a gunner's seat (what you see): not checked
  • the user dies while it runs (what it does): not checked
  • the user dies while it runs (what you see): not checked
  • after the user respawns (what it does): not checked
  • after the user respawns (what you see): not checked
  • the round ends while it runs, and the next round starts clean (what it does): not checked
  • the round ends while it runs, and the next round starts clean (what you see): not checked
  • the map changes while it runs (what it does): not checked
  • the map changes while it runs (what you see): not checked
  • a player who joins while it runs sees it (what it does): not checked
  • a player who joins while it runs sees it (what you see): not checked
  • watching a team mate who uses it (after dying, or as a spectator) (what it does): not checked
  • watching a team mate who uses it (after dying, or as a spectator) (what you see): not checked
  • team mates against enemies (who gets it and who does not) (what it does): not checked
  • team mates against enemies (who gets it and who does not) (what you see): not checked
  • in water (swimming) (what it does): not checked
  • in water (swimming) (what you see): not checked
  • on a ladder (what it does): not checked
  • on a ladder (what you see): not checked
  • while another effect runs on the same hero (what it does): not checked
  • while another effect runs on the same hero (what you see): not checked
  • the effect on a target or user in a vehicle seat is drawn on the vehicle (what it does): not checked
  • the effect on a target or user in a vehicle seat is drawn on the vehicle (what you see): not checked
  • triggered in a round's last seconds, the next round (what it does): not checked
  • triggered in a round's last seconds, the next round (what you see): not checked
  • bought for valor points at the store (what it does): not checked
  • bought for valor points at the store (what you see): not checked
  • ready again only after its wait (what it does): not checked
  • ready again only after its wait (what you see): not checked
  • held at the account service, put in a widget slot and carried into a game (what it does): not checked
  • held at the account service, put in a widget slot and carried into a game (what you see): not checked
  • a pack's uses count down and the key is refused at none (a kept widget takes none) (what it does): not checked
  • a pack's uses count down and the key is refused at none (a kept widget takes none) (what you see): not checked

And 65 lines about the original's code (the first 25):

  • a step of the original (world::GenericFireArm::vslot18_at1c4): in ours, but no test written from the original's code holds it
  • a step of the original (FUN_0070a4c7): in ours, but no test written from the original's code holds it
  • a step of the original (FUN_006fa1d0): this part of the original is in no count of ours: nobody has placed it
  • a step of the original (FUN_006fa336): this part of the original is in no count of ours: nobody has placed it
  • a step of the original (world::AmmoComp::isSelectable): in ours, but no test written from the original's code holds it
  • a step of the original (FUN_006f934e): this part of the original is in no count of ours: nobody has placed it
  • a step of the original (FUN_006f93af): this part of the original is in no count of ours: nobody has placed it
  • an inner call of the original (in 0x0070d6a7, slot 0x1c) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0x1c) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0x48) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0x54) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0x5c) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0xb0) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0xb8) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0xb8) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0xcc) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0xe4) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0x118) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0x150) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0x1c4) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0x1d8) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0x23c) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070d6a7, slot 0x368) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070b3a4, slot 0x2c) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070b3a4, slot 0x70) is not followed yet: nobody has named what it calls

The other 40 stand in the ledger's file.

How it is tested#

This page is the answer: the tables above name each test and each played scenario that stands for a line, with its kind. The ledger's own tool refuses a status that disagrees with its rows, a tick the rule does not give, and a proof that is not in the tree (feature_ledger.py --check). The wiki's test checks that this page says done only where the ledger does.

In the code#

WhatWhere
this feature's ledgernotes/bfheroes/features/widget/use_tests.toml (its ticks: the folder notes/bfheroes/features/widget/use_tests.ticks)
the ledger's rulenotes/bfheroes/features/README.md
the recorded resultsnotes/bfheroes/features/records/<run>.tsv
the tool that walks the original's call graph and computes the statustools/bfheroes/feature_ledger.py
the counter the ledger was made withbfheroes 83706c0 2026-11-28T22:37:11
this page's makertools/devwiki/features.py
Source: tools/devwiki/features.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.