On this page
When a widget's key works (the use tests of every widget): the feature checklist
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.
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.
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 knows | When a widget's key works (the use tests of every widget) |
| kind | widget |
| in the game's data | disableInsideVehicle, disableOutsideVehicle, disableInAllVehiclePositions, disableWhileOffGround, allowInWater, allowInParachute, allowInSkyDive, delayToUse, ammo.usageInterval |
| its row in the sweeps | notes/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.
| Address | What it is, in the ledger's words | Followed |
|---|---|---|
0x0070d6a7 | the fire arm's selectable test | whole |
0x0070b3a4 | its team limit | whole |
0x00708582 | its first forward | whole |
0x007085dd | its second forward | whole |
0x00773468 | the ability ammo's selectable test with its vehicle type block | whole |
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.
| Situation | What the game does (W) | What a player sees (S) | Note |
|---|---|---|---|
| used on foot | open: not checked | open: not checked | |
| used at the wheel of a vehicle | open: not checked | open: not checked | |
| used from a passenger's or a gunner's seat | open: not checked | open: not checked | |
| the user dies while it runs | open: not checked | open: not checked | |
| after the user respawns | open: not checked | open: not checked | |
| the round ends while it runs, and the next round starts clean | open: not checked | open: not checked | |
| the map changes while it runs | open: not checked | open: not checked | |
| a player who joins while it runs sees it | open: not checked | open: not checked | |
| watching a team mate who uses it (after dying, or as a spectator) | open: not checked | open: not checked | |
| team mates against enemies (who gets it and who does not) | open: not checked | open: not checked | |
| in water (swimming) | open: not checked | open: not checked | |
| on a ladder | open: not checked | open: not checked | |
| while another effect runs on the same hero | open: not checked | open: not checked | |
| the effect on a target or user in a vehicle seat is drawn on the vehicle | open: not checked | open: not checked | |
| triggered in a round's last seconds, the next round | open: not checked | open: not checked | |
| bought for valor points at the store | open: not checked | open: not checked | |
| ready again only after its wait | open: not checked | open: not checked | |
| held at the account service, put in a widget slot and carried into a game | open: not checked | open: not checked | |
| a pack's uses count down and the key is refused at none (a kept widget takes none) | open: not checked | open: 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 function | Kind | Reached | Ours | Proof | Its kind | Checked |
|---|---|---|---|---|---|---|
0x0070d6a7 world::GenericFireArm::vslot108_at1c4 | S | entry, depth 0 | crates/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 code | yes |
0x0070b3a4 world::GenericFireArm::vslot118_at1c4 | W | entry, depth 0 | crates/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 code | yes |
0x00708582 world::GenericFireArm::vslot18_at1c4 | W | entry, depth 0 | crates/bf2-server/src/field_heroes.rs:651 (fn fire_on_enable) | bfh_client_stealth_fire | the counter's weaker proof | open |
0x007085dd world::GenericFireArm::vslot23_at1c4 | S | entry, depth 0 | crates/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 code | yes |
0x00773468 world::AbilityAmmoComp::isSelectable | W | entry, depth 0 | crates/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 code | yes |
0x0070a4c7 FUN_0070a4c7 | W | 0x0070d6a7, depth 1 | crates/bf2-server/src/rules.rs:1639 (fn heroes_consumable_asset) | bfh_ability_overload, bfh_alt_fire_ammo_pool | the counter's weaker proof | open |
0x0070b30b FUN_0070b30b | W | 0x0070d6a7, depth 1 | crates/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 asserts | yes |
0x0071c867 FUN_0071c867 | W | 0x0070d6a7, depth 1 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x0041ad9b FUN_0041ad9b | S | 0x00773468, depth 1 | crates/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_0069985d | W | 0x00773468, depth 1 | crates/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 code | yes |
0x006fa1d0 FUN_006fa1d0 | W | 0x00773468, depth 1 | not ported | none | open: hub (50 callers): not expanded | |
0x006fa336 FUN_006fa336 | W | 0x00773468, depth 1 | not ported | none | open | |
0x0070aeac FUN_0070aeac | W | 0x00773468, depth 1 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x00799c90 world::AmmoComp::isSelectable | W | 0x00773468, depth 1 | 1.89 twin 0x0074fe71 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-gameplay/src/weapon/ammo.rs:1931 | the counter's weaker proof | open |
0x009bd22c FUN_009bd22c | W | 0x00773468, depth 1 | engine utility (>= 100 call sites) | not a line | ||
0x009f08fe __EH_prolog3_GS | W | 0x00773468, depth 1 | CRT / compiler name (scope_rules.LIBNAME) | not a line | ||
0x009f0981 FUN_009f0981 | W | 0x00773468, depth 1 | engine utility (>= 100 call sites) | not a line | ||
0x00484e71 FUN_00484e71 | W | 0x0070a4c7, depth 2 | thin wrapper (<= 80 bytes, calls only library code) | not a line | ||
0x004073a5 FUN_004073a5 | W | 0x0069985d, depth 2 | not a line: engine utility (653 call sites, the counter's rule of 100); the counter has no row for it | |||
0x004073ce ~animationSystem::setCameraSpring.amplitude | W | 0x0069985d, depth 2 | engine utility (>= 100 call sites) | not a line |
Show all 41 functions (the other 21)
| The original's function | Kind | Reached | Ours | Proof | Its kind | Checked |
|---|---|---|---|---|---|---|
0x004821ae FUN_004821ae | W | 0x0069985d, depth 2 | engine utility (>= 100 call sites) | not a line | ||
0x0049d641 FUN_0049d641 | S | 0x0069985d, depth 2 | crates/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_004a580f | W | 0x0069985d, depth 2 | crates/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_0088f213 | W | 0x0069985d, depth 2 | engine utility (>= 100 call sites) | not a line | ||
0x00527c67 world::PlayerManager::vslot16 | W | 0x0069985d vt+0x40, depth 2 | tiny stub (<= 5 bytes) | not a line | ||
0x004bd920 FUN_004bd920 | W | 0x006fa336, depth 2 | 1.89 twin 0x004b1968 is library code (coverage_bfh boilerplate) | not a line | ||
0x006f934e FUN_006f934e | W | 0x006fa336, depth 2 | not ported | none | open | |
0x006f93af FUN_006f93af | W | 0x006fa336, depth 2 | not ported | none | open | |
0x009f0895 __EH_prolog3 | W | 0x006fa336, depth 2 | CRT / compiler name (scope_rules.LIBNAME) | not a line | ||
0x009f096d __EH_epilog3 | W | 0x006fa336, depth 2 | CRT / compiler name (scope_rules.LIBNAME) | not a line | ||
0x006f7633 FUN_006f7633 | W | 0x006f934e, depth 3 | STL 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_006f8ae8 | W | 0x006f934e, depth 3 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x009f08c8 __EH_prolog3_catch | W | 0x006f934e, depth 3 | CRT / compiler name (scope_rules.LIBNAME) | not a line | ||
0x006f767a FUN_006f767a | W | 0x006f93af, depth 3 | STL 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_006f8b01 | W | 0x006f93af, depth 3 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x006f81cf FUN_006f81cf | W | 0x006f8ae8, depth 4 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x006f821f FUN_006f821f | W | 0x006f8b01, depth 4 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x006f729f FUN_006f729f | W | 0x006f81cf, depth 5 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x006f72ec FUN_006f72ec | W | 0x006f821f, depth 5 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x006f6485 FUN_006f6485 | W | 0x006f729f, depth 6 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x006f649f FUN_006f649f | W | 0x006f72ec, depth 6 | trivial 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#
| What | Where |
|---|---|
| this feature's ledger | notes/bfheroes/features/widget/use_tests.toml (its ticks: the folder notes/bfheroes/features/widget/use_tests.ticks) |
| the ledger's rule | notes/bfheroes/features/README.md |
| the recorded results | notes/bfheroes/features/records/<run>.tsv |
| the tool that walks the original's call graph and computes the status | tools/bfheroes/feature_ledger.py |
| the counter the ledger was made with | bfheroes 83706c0 2026-11-28T22:37:11 |
| this page's maker | tools/devwiki/features.py |
tools/devwiki/features.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.