On this page
Speed boosts and slows (what a hero moves at): the feature checklist
Speed boosts and slows (what a hero moves at) is a Battlefield Heroes class. 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: 9 of 95 lines checked.
Situations: 2 of 14 checked for what the game does, 0 of 14 for what a player sees. The original's code: 7 of 67 checked (14 functions and 53 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 11:55.
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#
The six soldier templates of Battlefield Heroes 1.126 (two teams, three classes) differ between the classes in three values only: the run speed, the acceleration and the hit points. Everything else a class feels like comes from its weapons and its abilities. This page gives the numbers, the function of the original that applies each, and a verdict for each: the same in the port, or filed as differing.
That is this wiki's own line about it, taken at build time from the page that tells it.
| the name a player knows | Speed boosts and slows (what a hero moves at) |
| kind | class |
| in the game's data | SoldierRunspeed, SoldierWalkSpeed .. of <team>_male_<class>.tweak; addUserSpeedModItem; speedModWhenBelowHealth |
| what it acts on (the ledger's tags) | affects-mates |
| its row in the sweeps | notes/bfheroes/class_sweep.md, the rows of the speeds |
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 |
|---|---|---|
0x0071d0d0 | the soldier's speed getter: the state's speed times the factor (an item, a field, the fire arm's below-health factor) | whole |
0x0071f2d8 | the speed state's update: standing and zoomed walk, crouched, lying, swimming | whole |
0x00721ba7 | the movement step, a shared step of every soldier: this feature's part is the acceleration, the deceleration, the speed in the air and the ramp at a stance change | as a part: its calls are not followed |
0x007219ca | the crouched speed's factor | whole |
0x0070bcc2 | the fire arm's vt+0x1ec: the below-health speed factor | whole |
0x0071f849 | the crouched aim's factor | whole |
0x00737ccc | a slow's attach: ends the effect items of the kinds 0x100 and 0x80 | whole |
0x0073929e | the movement item's attach (Leg It, the Speed Boost): the class's speed for the item's time | 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 | checked: play with a recorded pass, state asserts (scenario bfh_r0105_leg_it (PASS in run 20261119_132712_h7g5 on bfc1cc4)) | open: play with a recorded pass, state asserts (scenario bfh_r0105_leg_it (PASS in run 20261119_132712_h7g5 on bfc1cc4)) | |
| 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 | |
| team mate sitting in a vehicle | 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 | checked: play with a recorded pass, state asserts (scenario bfh_r0105_leg_it_slowed (PASS in run 20261119_132712_h7g5 on bfc1cc4)) | open: play with a recorded pass, state asserts (scenario bfh_r0105_leg_it_slowed (PASS in run 20261119_132712_h7g5 on bfc1cc4)) | a slow while a boost runs, and a boost pressed while slowed |
Recorded plays#
3 more scenarios the ledger names have no row in the records file: bfh_r0105_leg_it, bfh_r0105_leg_it_slowed, bfh_r0105_leg_it_hit.
A recorded pass on a commit that is not in the tree's history counts, in the ledger's words, as "passed on a branch not landed", and is not a check. A run is named by its folder's name; the runs themselves are not published, so a row links to nothing. The ledger also reads run folders that this file does not hold; the tables above carry its verdicts.
The code behind it#
32 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 |
|---|---|---|---|---|---|---|
0x0071d0d0 FUN_0071d0d0 | S | entry, depth 0 | crates/bf2-client/src/predict.rs:3764 (fn step) | crates/bf2-physics/src/soldier.rs:2607 (fn heroes_speed_factor_spares_swimming_from_slows) | test from the original's code | yes |
0x0071f2d8 FUN_0071f2d8 | W | entry, depth 0 | 1.89 twin 0x006c2a61 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | scenario bfh_railgun_zoom_walk (no recorded result) | has a scenario, no recorded pass | open |
0x00721ba7 FUN_00721ba7 | S | entry, depth 0 | crates/bf2-client/src/predict.rs:1888 (fn new) | scenario bfh_client_browser_seated_widget_sound (no recorded result) | has a scenario, no recorded pass | open: PART: entered without its calls (expand = false) |
0x007219ca FUN_007219ca | W | entry, depth 0 | crates/bfh-game/src/uncalled_client.rs:292 (fn value_scaled_in_mode_one_bfh) | crates/bfh-game/tests/uncalled_client_bfh126.rs:391 (fn the_heroes_value_is_scaled_only_in_mode_one_with_the_part_answering) | test from the original's code | yes |
0x0070bcc2 world::GenericFireArm::vslot123_at1c4 | S | entry, depth 0 | crates/bf2-client/src/game.rs:7815 (fn tick) | crates/bfh-game/src/customization/weapon_gear/tests.rs:497 (fn meepmeep_speed_below_health) | test from the original's code | yes |
0x0071f849 FUN_0071f849 | S | entry, depth 0 | crates/bf2-client/src/predict.rs:2047 (fn env) | scenario bfh_client_view_sweep (PASS in run 20261126_225254_verify_a4b2f8e_lane4 on a4b2f8e) | play with a recorded pass, state asserts | open |
0x00737ccc world::VictimMovementSpeedModItem::vslot4 | W | entry, depth 0 | crates/bf2-server/src/abilities_heroes.rs:3948 (fn victim_slow) | scenario bfh_client_victim_slow_escape (PASS in run 20261120_011757_c7_bfhc_bfh_client_victim_slow_escape on d805dc5) (+6 more) | play with a recorded pass, state asserts | yes |
0x0073929e world::MovementStatusItem::vslot4 | S | entry, depth 0 | crates/bf2-client/app/src/client/heroes_hud.rs:3132 (fn heroes_weapon_bar) | crates/bfh-game/src/abilities/tests.rs:215 (fn spread_speed_gives_the_victim_effect), crates/bfh-game/src/abilities/victim.rs:598 (fn a_movement_item_ends_the_slow_and_its_effect_before_it_sets_the_speed) | test from the original's code | yes |
0x004f34e9 FUN_004f34e9 | W | 0x0071d0d0, depth 1 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x00403601 FUN_00403601 | W | 0x0071f2d8, depth 1 | not ported | none | open | |
0x0071cd5a FUN_0071cd5a | S | 0x0071f2d8, depth 1 | crates/bf2-client/src/predict.rs:2063 (fn env) | crates/bf2-client/tests/heroes_list0_return.rs:179 (fn the_transition_cameras_zoomed_byte_is_the_clients_second_arm_of_is_walking), crates/bf2-server/tests/stay_active_return_heroes.rs:260 (fn heroes_is_walking_reads_the_zoom_level_or_the_transition_cameras_zoomed_byte) | test from the original's code | yes |
0x009f0895 __EH_prolog3 | W | 0x0071f2d8, depth 1 | CRT / compiler name (scope_rules.LIBNAME) | not a line | ||
0x009f096d __EH_epilog3 | W | 0x0071f2d8, depth 1 | CRT / compiler name (scope_rules.LIBNAME) | not a line | ||
0x00b1edb2 FUN_00b1edb2 | W | 0x0071f2d8, depth 1 | engine utility (>= 100 call sites) | not a line | ||
0x00b1f1a2 FUN_00b1f1a2 | W | 0x0071f2d8, depth 1 | engine utility (>= 100 call sites) | not a line | ||
0x0050e4cb FUN_0050e4cb | W | 0x0070bcc2, depth 1 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x00707d97 FUN_00707d97 | W | 0x0070bcc2, depth 1 | crates/bfh-game/src/abilities/victim.rs:330 (fn kit_class) | crates/bfh-game/tests/small_helpers_bfh126.rs:4 (fn heroes) | test from the original's code | yes |
0x0070aeac FUN_0070aeac | W | 0x0070bcc2, depth 1 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x0041b7fd FUN_0041b7fd | W | 0x00737ccc, depth 1 | engine utility (>= 100 call sites) | not a line | ||
0x0050e4ff FUN_0050e4ff | W | 0x00737ccc, depth 1 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line |
Show all 32 functions (the other 12)
| The original's function | Kind | Reached | Ours | Proof | Its kind | Checked |
|---|---|---|---|---|---|---|
0x00737afe world::EffectStatusItem::EffectStatusItem | W | 0x00737ccc, depth 1 | crates/bf2-server/src/abilities_heroes.rs:741 (fn add_status_effect) | scenario bfh_client_prestige_hud (PASS in run 20261128_113209_verify_b82b444_lane4 on b82b444) | has a scenario; its recorded pass is on a branch not landed | open |
0x00428d62 FUN_00428d62 | W | 0x0073929e, depth 1 | engine utility (>= 100 call sites) | not a line | ||
0x009bd22c FUN_009bd22c | W | 0x0073929e, depth 1 | engine utility (>= 100 call sites) | not a line | ||
0x009c0bc8 world::ObjectFlagPredicator::ObjectFlagPredicator | W | 0x0073929e, depth 1 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x004f34d6 FUN_004f34d6 | W | 0x004f34e9, depth 2 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x00403552 FUN_00403552 | W | 0x00403601, depth 2 | 1.89 twin 0x004034c1 is library code (coverage_bfh boilerplate) | not a line | ||
0x004035bb FUN_004035bb | W | 0x00403601, depth 2 | not ported | none | open | |
0x009f08c8 __EH_prolog3_catch | W | 0x00403601, depth 2 | CRT / compiler name (scope_rules.LIBNAME) | not a line | ||
0x00737a77 FUN_00737a77 | W | 0x00737afe, depth 2 | crates/bfh-game/src/abilities/mod.rs:709 (fn is_set) | scenario bfh_client_browser_seated_widget_sound (no recorded result) | has a scenario, no recorded pass | open |
0x004034d0 FUN_004034d0 | W | 0x004035bb, depth 3 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x0041b829 FUN_0041b829 | W | 0x00737a77, depth 3 | engine utility (>= 100 call sites) | not a line | ||
0x004b3cf5 FUN_004b3cf5 | W | 0x00737a77, depth 3 | engine utility (>= 100 call sites) | 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: 53 here, 53 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 you see): played and passed, but no assert read the screen and nobody wrote that they looked
- 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
- team mate sitting in a vehicle (what it does): not checked
- team mate sitting in a vehicle (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 you see): played and passed, but no assert read the screen and nobody wrote that they looked
And 60 lines about the original's code (the first 25):
- a step of the original (FUN_0071f2d8): in ours; a scenario names it, with no recorded pass; no test written from the original
- a step of the original (FUN_00721ba7): in ours; a scenario names it, with no recorded pass; no test written from the original
- a step of the original (FUN_0071f849): played and passed, but no test written from the original and nothing read the screen
- a step of the original (FUN_00403601): this part of the original is in no count of ours: nobody has placed it
- a step of the original (world::EffectStatusItem::EffectStatusItem): in ours; a scenario names it, with no recorded pass; no test written from the original
- a step of the original (FUN_004035bb): this part of the original is in no count of ours: nobody has placed it
- a step of the original (FUN_00737a77): in ours; a scenario names it, with no recorded pass; no test written from the original
- an inner call of the original (in 0x0071d0d0, slot 0xc) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x10) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x54) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x70) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x78) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0xcc) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x110) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x1ec) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x244) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x248) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x24c) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x250) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x254) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x258) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071d0d0, slot 0x25c) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x0071f2d8, slot 0x120) is not followed yet: nobody has named what it calls
- a large shared step of the original (0x00721ba7) is on the list by itself: what it calls for this feature is not followed yet
- an inner call of the original (in 0x007219ca, slot 0x10) is not followed yet: nobody has named what it calls
The other 35 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/class/speed.toml (its ticks: the folder notes/bfheroes/features/class/speed.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 e7ed773 2026-11-28T11:50:06 |
| 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.