On this page
Troop Trap: the feature checklist
Troop Trap is a Battlefield Heroes ability, Commando. 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: 24 of 278 lines checked.
Situations: 3 of 16 checked for what the game does, 0 of 16 for what a player sees. The original's code: 21 of 246 checked (72 functions and 174 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#
arms after 5 s, lies 60 to 100 s; 30 / 35 / 40 / 45 / 50 damage within 12 m, trigger 3 m; poison (Commando)
That is this wiki's own line about it, taken at build time from the page that tells it.
| the name a player knows | Troop Trap |
| kind | ability, Commando |
| in the game's data | KegTrap_BRI / KegTrap_GER, levels 1 to 5 (2106 to 2115) |
| what it acts on (the ledger's tags) | targets-enemies |
| its row in the sweeps | notes/bfheroes/ability_sweep.md, the row Troop Trap; notes/bfheroes/abilities_table.md rows C5-L1 to C5-L5 |
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 |
|---|---|---|
0x0078784a | the trigger's victim test: an armored object of the trigger type's class, with a player, not of the thrower's team, by a box or cone test, with a clear line, moving at the minimum speed or faster | 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: has a scenario, no recorded pass (scenario bfh_r0105_troop_trap (no recorded result)) | open: has a scenario, no recorded pass (scenario bfh_r0105_troop_trap (no recorded result)) | |
| used at the wheel of a vehicle | open: not checked | open: not checked | |
| used from a passenger's or a gunner's seat | open: has a scenario, no recorded pass (scenario bfh_r0105_seat_trap_enemy (no recorded result)) | open: has a scenario, no recorded pass (scenario bfh_r0105_seat_trap_enemy (no recorded result)) | played by state: no screenshot is read |
| enemy sitting in a vehicle | checked: play with a recorded pass, state asserts (scenario bfh_keg_trap_jeep (PASS in run 20261118_042615_r11_h24_keg_jeep on b006961)) | open: play with a recorded pass, state asserts (scenario bfh_keg_trap_jeep (PASS in run 20261118_042615_r11_h24_keg_jeep on b006961)) | played by state: no screenshot is read |
| the user dies while it runs | open: not checked | open: not checked | |
| after the user respawns | checked: play with a recorded pass, state asserts (scenario bfh_trap_after_respawn (PASS in run 20261118_042053_r07_h4_trap_respawn on b006961)) | open: play with a recorded pass, state asserts (scenario bfh_trap_after_respawn (PASS in run 20261118_042053_r07_h4_trap_respawn on b006961)) | played by state: no screenshot is read |
| 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) | checked: play with a recorded pass, state asserts (scenario bfh_keg_trap_owner (PASS in run 20261127_034738_f11_ka on 647e1f6)) | open: play with a recorded pass, state asserts (scenario bfh_keg_trap_owner (PASS in run 20261127_034738_f11_ka on 647e1f6)) | played by state: no screenshot is read |
| 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 |
Recorded plays#
9 more scenarios the ledger names have no row in the records file: bfh_keg_trap_mate, bfh_keg_trap_owner, bfh_r0105_troop_trap, bfh_r0105_trap_whole_l2, bfh_keg_trap_enemy, bfh_trap_after_respawn, bfh_r0105_seat_trap_enemy, bfh_r0105_seat_keys_commando, bfh_keg_trap_jeep.
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#
137 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 |
|---|---|---|---|---|---|---|
0x0078784a world::DefaultDetonationComp::checkIfObjectCanTrigger | W | entry, depth 0 | crates/bf2-server/src/damage_trigger.rs:369 (fn player_refuses) | crates/bf2-server/src/damage_trigger.rs:1162 (fn heroes_refuses_a_victim_without_a_player_and_every_team_mate), crates/bf2-server/src/damage_trigger.rs:1163 (fn heroes_refuses_a_victim_without_a_player_and_every_team_mate) | test from the original's code | yes |
0x004073a5 FUN_004073a5 | W | 0x0078784a, depth 1 | not a line: engine utility (653 call sites, the counter's rule of 100); the counter has no row for it | |||
0x0049d641 FUN_0049d641 | S | 0x0078784a, depth 1 | 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 | |
0x004a0e85 FUN_004a0e85 | W | 0x0078784a, depth 1 | 1.89 twin 0x0049550d pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-server/src/damage_trigger.rs:1193, crates/bf2-server/src/radio.rs:990 | not a line: hub (63 callers): not expanded | |
0x004a57d7 FUN_004a57d7 | W | 0x0078784a, depth 1 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x004a580f FUN_004a580f | W | 0x0078784a, depth 1 | crates/bf2-core/src/fmath.rs:36 (fn normalize3) | bfh_normalize3, gen_bfh_normalize3 | not a line: hub (132 callers): not expanded | |
0x00503fbf FUN_00503fbf | W | 0x0078784a, depth 1 | 1.89 twin 0x00510bc5 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/ik_oracle.rs:46, crates/bf2-anim/tests/ragdoll.rs:92 | the counter's weaker proof | open |
0x00533b17 FUN_00533b17 | W | 0x0078784a, depth 1 | crates/bf2-game/src/game_logic_uncalled_bf2.rs:369 (fn float_min_client) | crates/bfh-game/tests/uncalled_rounds_bfh126.rs:550 (fn the_float_min_answers_the_first_only_when_it_is_below) | not a line: hub (74 callers): not expanded | |
0x0069c121 FUN_0069c121 | W | 0x0078784a, depth 1 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x0071e01d FUN_0071e01d | W | 0x0078784a, depth 1 | 1.89 twin 0x006c17b6 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | bfh_apparel_ingame, bfh_client_alt_ammo_bar | the counter's weaker proof | open |
0x0072807d FUN_0072807d | W | 0x0078784a, depth 1 | 1.89 twin 0x006eba61 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | bfh_client_itembar_vehicle | the counter's weaker proof | open |
0x009bd22c FUN_009bd22c | W | 0x0078784a, depth 1 | engine utility (>= 100 call sites) | not a line | ||
0x009bd8dc FUN_009bd8dc | S | 0x0078784a, depth 1 | crates/bf2-client/src/entry_points.rs:194 (fn ray_blocked) | bfh_apparel_ingame, bfh_client_alt_ammo_bar | the counter's weaker proof | open |
0x009f127c MSVCR90.DLL::_CIsqrt | S | 0x0078784a, depth 1 | crates/bf2-anim/src/x87.rs:413 (fn crt_sqrt) | bfh_ability_overload, bfh_apparel_ingame | not a line: hub (253 callers): not expanded | |
0x009f1550 MSVCR90.DLL::_CItan | W | 0x0078784a, depth 1 | import thunk / DLL function (MSVCR90, MEMORYDLL, KERNEL32, ...) | not a line | ||
0x0069bf4c FUN_0069bf4c | W | 0x0069c121, depth 2 | 1.89 twin 0x00668d9e pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-physics/tests/soldier_oracle.rs:1021, crates/bf2-physics/tests/soldier_oracle.rs:1027 | the counter's weaker proof | open |
0x0071c78c FUN_0071c78c | W | 0x0071e01d, depth 2 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x0071cfd7 FUN_0071cfd7 | S | 0x0071e01d, depth 2 | crates/bf2-client/app/src/client.rs:8176 (fn actors_pass) | scenario bfh_client_hit_fx_moving (no recorded result) | has a scenario, no recorded pass | open |
0x009be4d5 world::LineTestPredicator::LineTestPredicator | W | 0x009bd8dc, depth 2 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x004073ce ~animationSystem::setCameraSpring.amplitude | W | 0x0069bf4c, depth 3 | engine utility (>= 100 call sites) | not a line |
Show all 137 functions (the other 117)
| The original's function | Kind | Reached | Ours | Proof | Its kind | Checked |
|---|---|---|---|---|---|---|
0x00496f01 FUN_00496f01 | W | 0x0069bf4c, depth 3 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x004984f5 FUN_004984f5 | W | 0x0069bf4c, depth 3 | crates/bf2-physics/src/culler.rs:945 (fn sub_bfh126) | bfh_ability_overload, bfh_alt_fire_ammo_pool | not a line: hub (144 callers): not expanded | |
0x0069beb8 FUN_0069beb8 | W | 0x0069bf4c, depth 3 | 1.89 twin 0x00668d0a pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-ai/src/physical.rs:587, crates/bf2-client/src/light_rays.rs:1683 | the counter's weaker proof | open |
0x00890993 FUN_00890993 | W | 0x0071c78c, depth 3 | crates/bf2-world/src/vehicle_ray.rs:526 (fn vehicle_exit_ray_start) | bfh_client_itembar_vehicle, bfh_client_kubel_seat | the counter's weaker proof | open |
0x0041ade0 FUN_0041ade0 | W | 0x0071cfd7, depth 3 | engine utility (>= 100 call sites) | not a line | ||
0x007906e8 FUN_007906e8 | S | 0x0071cfd7, depth 3 | crates/bf2-client/src/soldier_frame.rs:1596 (fn third_person_stance) | scenario bfh_client_anim_crouch (no recorded result) | has a scenario, no recorded pass | open |
0x00791d9f FUN_00791d9f | S | 0x0071cfd7, depth 3 | crates/bf2-client/app/src/client/heroes_ctf.rs:99 (fn carried_mesh) | crates/bfh-client/src/item_effects.rs:210 (fn the_mesh_turns_a_quarter_about_the_node_z) | test from the original's code | yes |
0x009f0895 __EH_prolog3 | W | 0x0071cfd7, depth 3 | CRT / compiler name (scope_rules.LIBNAME) | not a line | ||
0x009f096d __EH_epilog3 | W | 0x0071cfd7, depth 3 | CRT / compiler name (scope_rules.LIBNAME) | not a line | ||
0x009c0bc8 world::ObjectFlagPredicator::ObjectFlagPredicator | W | 0x009be4d5, depth 3 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x00890bfd FUN_00890bfd | W | 0x00890993, depth 4 | 1.89 twin 0x00877477 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | bfh_ability_overload, bfh_alt_fire_ammo_pool | the counter's weaker proof | open |
0x004eecfd FUN_004eecfd | S | 0x007906e8, depth 4 | crates/bf2-anim/src/first_person.rs:55 (fn is_zero) | bfh_vec3_is_zero, gen_bfh_vec3_is_zero | not a line: hub (55 callers): not expanded | |
0x004f34e9 FUN_004f34e9 | W | 0x007906e8, depth 4 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x0069e9f3 FUN_0069e9f3 | W | 0x007906e8, depth 4 | crates/bf2-gameplay/src/vehicle/rotational.rs:1123 (fn sign) | crates/bf2-gameplay/tests/rotational_axis_oracle_bfh126.rs:24 (fn fb) | test from the original's code | yes |
0x0072016c FUN_0072016c | S | 0x007906e8, depth 4 | crates/bf2-client/src/ragdoll.rs:197 (fn damage_animation_trigger) | crates/bf2-physics/tests/heroes_movement_matrix.rs:22 (fn heroes_movement_matrix_is_the_camera_childs_transformation_in_the_world) | test from the original's code | yes |
0x007219ca FUN_007219ca | W | 0x007906e8, depth 4 | 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 |
0x0078ed21 FUN_0078ed21 | W | 0x007906e8, depth 4 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x0078f687 FUN_0078f687 | W | 0x007906e8, depth 4 | 1.89 twin 0x00746cf7 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/ik_oracle.rs:46 | the counter's weaker proof | open |
0x00790442 FUN_00790442 | S | 0x007906e8, depth 4 | crates/bf2-client/src/fx/client.rs:4313 (fn soldier_jumps) | bfh_apparel_ingame, bfh_client_alt_ammo_bar | the counter's weaker proof | open |
0x0088f213 FUN_0088f213 | W | 0x007906e8, depth 4 | engine utility (>= 100 call sites) | not a line | ||
0x00460d7b FUN_00460d7b | W | 0x00791d9f, depth 4 | engine utility (>= 100 call sites) | not a line | ||
0x004821ae FUN_004821ae | W | 0x00791d9f, depth 4 | engine utility (>= 100 call sites) | not a line | ||
0x0078edd7 FUN_0078edd7 | W | 0x00791d9f, depth 4 | 1.89 twin 0x007464f2 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | bfh_apparel_ingame, bfh_client_alt_ammo_bar | the counter's weaker proof | open |
0x0078ff30 FUN_0078ff30 | S | 0x00791d9f, depth 4 | crates/bf2-anim/src/first_person.rs:225 (fn spring_root) | crates/bf2-anim/tests/spring_root_bfh126.rs:1 (fn f) | test from the original's code | yes |
0x007912db FUN_007912db | S | 0x00791d9f, depth 4 | crates/bf2-anim/src/aim.rs:122 (fn for_game) | crates/bf2-anim/src/aim.rs:372 (fn heroes_upper_body_follows_the_view_yaw) | test from the original's code | yes |
0x00792cfd FUN_00792cfd | W | 0x00791d9f, depth 4 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x008176e9 FUN_008176e9 | S | 0x00791d9f, depth 4 | crates/bfh-client/src/emote_prop.rs:207 (fn drawn) | scenario bfh_client_emote_prop (FAIL in run 20261120_165953_p17_L1 on c6903d3) | has a scenario, its last recorded result is not a pass | open |
0x0088f5ff FUN_0088f5ff | S | 0x00791d9f, depth 4 | crates/bf2-client/src/soldiers.rs:285 (fn mat_mul4) | crates/bf2-client/tests/wheel_effect_deadline_bfh126.rs:342 (fn heroes_full_matrix_product_sums_x_y_z_w_in_that_order_bit_for_bit) | test from the original's code | yes |
0x009bd1c1 FUN_009bd1c1 | W | 0x00791d9f, depth 4 | 1.89 twin 0x009433d8 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-server/src/players_input.rs:4943, crates/bf2-world/src/soldier_inventory.rs:908 | the counter's weaker proof | open |
0x00890b99 FUN_00890b99 | W | 0x00890bfd, depth 5 | by design: constructor copying four vectors (0x0040742d each), a matrix by rows; Rust array copy | not a line | ||
0x004f34d6 FUN_004f34d6 | W | 0x004f34e9, depth 5 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x00403601 FUN_00403601 | W | 0x0072016c, depth 5 | not ported | none | open | |
0x00b1edb2 FUN_00b1edb2 | W | 0x0072016c, depth 5 | engine utility (>= 100 call sites) | not a line | ||
0x00b1f1a2 FUN_00b1f1a2 | W | 0x0072016c, depth 5 | engine utility (>= 100 call sites) | not a line | ||
0x0071d0d0 FUN_0071d0d0 | S | 0x007219ca, depth 5 | 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 |
0x0071f849 FUN_0071f849 | S | 0x007219ca, depth 5 | 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 |
0x0078f4c5 FUN_0078f4c5 | W | 0x0078f687, depth 5 | 1.89 twin 0x00746b34 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/ik_oracle.rs:46 | the counter's weaker proof | open |
0x00792a7a world::anon::JumpTestPredicator::JumpTestPredicator | W | 0x00790442, depth 5 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x009ed858 FUN_009ed858 | S | 0x00790442, depth 5 | crates/bf2-client/src/fx/footsteps.rs:370 (fn play_heroes_jump) | crates/bf2-client/src/fx/footsteps.rs:864 (fn heroes_jump_and_land_sounds) | test from the original's code | yes |
0x009edae2 FUN_009edae2 | W | 0x00790442, depth 5 | 1.89 twin 0x0089f37b pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-client/src/fx/sound.rs:1837 | the counter's weaker proof | open |
0x009eddb9 FUN_009eddb9 | W | 0x00790442, depth 5 | 1.89 twin 0x0089f65c pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-client/src/fx/sound.rs:1837 | the counter's weaker proof | open |
0x00497864 FUN_00497864 | W | 0x0078ff30, depth 5 | crates/bf2-physics/src/soldier.rs:866 (fn add_acceleration_in) | crates/bf2-physics/tests/heroes_movement_matrix.rs:94 (fn heroes_vec3_add_assign_adds_each_component_into_the_nodes_acceleration) | not a line: hub (74 callers): not expanded | |
0x0049d61d FUN_0049d61d | W | 0x0078ff30, depth 5 | 1.89 twin 0x00491e76 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-gameplay/tests/dot_bfh126.rs:1 (fn the_dot_product_is_heroes_machine_code_bit_for_bit), crates/bf2-world/src/wind_affector.rs:372 (fn heroes_cylinder_sums) | not a line: hub (112 callers): not expanded | |
0x0052a329 FUN_0052a329 | W | 0x0078ff30, depth 5 | crates/bf2-physics/src/geom.rs:389 (fn rotate_row_vector_p) | crates/bf2-physics/tests/vehicle_nodes_bfh.rs:1491 (fn heroes_vector_turn_sums_x_and_y_then_z_bit_for_bit), crates/bf2-server/src/vehicles_armor.rs:4783 (fn hit_place_local_adds_the_z_product_first_and_heroes_adds_it_last) | not a line: hub (43 callers): not expanded | |
0x0071cf95 FUN_0071cf95 | W | 0x0078ff30, depth 5 | 1.89 twin 0x006c0810 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | bfh_ability_overload, bfh_alt_fire_ammo_pool | the counter's weaker proof | open |
0x0071fb8c FUN_0071fb8c | W | 0x0078ff30, depth 5 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x0072b76b FUN_0072b76b | W | 0x0078ff30, depth 5 | crates/bf2-physics/src/vecmath.rs:34 (fn zero_tiny) | crates/bf2-physics/tests/zero_tiny_bfh126.rs:1 (fn heroes) | not a line: hub (40 callers): not expanded | |
0x0078f2ff FUN_0078f2ff | W | 0x0078ff30, depth 5 | 1.89 twin 0x0074696a pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/spring_step_bfh126.rs:1 (fn f) | test from the original's code | yes |
0x00792d17 FUN_00792d17 | W | 0x0078ff30, depth 5 | not ported | none | open | |
0x0088f817 FUN_0088f817 | S | 0x0078ff30, depth 5 | crates/bf2-anim/src/pose.rs:189 (fn mat_mul) | crates/bf2-anim/tests/quat_normalize_bfh126.rs:90 (fn bfh126_affine_product_of_the_pose_sums_x_and_y_then_z_bit_for_bit), crates/bf2-gameplay/tests/fire_comps_bfh126.rs:895 (fn heroes_affine_product_sums_x_and_y_then_z_and_adds_the_translation_last_bit_for_bit) | test from the original's code | yes |
0x00b0867b FUN_00b0867b | W | 0x0078ff30, depth 5 | 1.89 twin 0x008bb50f pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/src/aim.rs:374 | the counter's weaker proof | open |
0x00b0efa4 FUN_00b0efa4 | S | 0x0078ff30, depth 5 | crates/bf2-anim/src/system/mod.rs:958 (struct CameraSpring) | crates/bf2-anim/tests/camera_spring_heroes.rs:38 (fn heroes_camera_spring_is_twenty_zero_dwords_when_use_1_makes_it) | test from the original's code | yes |
0x00b0efe4 FUN_00b0efe4 | W | 0x0078ff30, depth 5 | 1.89 twin 0x008c1ae6 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/spring_merge_bfh126.rs:1 (fn spring) | test from the original's code | yes |
0x00464319 FUN_00464319 | W | 0x007912db, depth 5 | thin wrapper (<= 80 bytes, calls only library code) | not a line | ||
0x00468701 FUN_00468701 | W | 0x007912db, depth 5 | 1.89 twin 0x00456e91 is library code (coverage_bfh boilerplate) | not a line | ||
0x00484407 ~Mat4::setIdentity | W | 0x007912db, depth 5 | small helper: math leaf (no branches, no calls: FPU arithmetic) (< 64 bytes) | not a line | ||
0x00709186 FUN_00709186 | W | 0x007912db, depth 5 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x00725faf FUN_00725faf | W | 0x007912db, depth 5 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x0075c28d FUN_0075c28d | W | 0x007912db, depth 5 | 1.89 twin 0x007192aa pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-client/src/antenna.rs:400 | the counter's weaker proof | open |
0x0078eb87 FUN_0078eb87 | W | 0x007912db, depth 5 | thin wrapper (<= 80 bytes, calls only library code) | not a line | ||
0x007933ab FUN_007933ab | W | 0x007912db, depth 5 | 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 | ||
0x0088f965 FUN_0088f965 | W | 0x007912db, depth 5 | 1.89 twin 0x008761f4 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/rot_xy_bfh126.rs:1 (fn the_turns_about_x_and_y_by_degrees_are_heroes_machine_code_bit_for_bit) | test from the original's code | yes |
0x0088f9be FUN_0088f9be | W | 0x007912db, depth 5 | 1.89 twin 0x0087624c pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/rot_xy_bfh126.rs:2 (fn the_turns_about_x_and_y_by_degrees_are_heroes_machine_code_bit_for_bit) | test from the original's code | yes |
0x0088fc8f FUN_0088fc8f | S | 0x007912db, depth 5 | crates/bf2-anim/src/pose.rs:209 (fn rot3) | crates/bf2-anim/tests/quat_normalize_bfh126.rs:304 (fn bfh126_3x3_product_of_the_pose_sums_x_and_y_then_z_and_writes_nothing_else), crates/bf2-gameplay/tests/fire_comps_bfh126.rs:746 (fn heroes_3x3_product_sums_x_and_y_then_z_bit_for_bit) | test from the original's code | yes |
0x00b08e10 ~anim::Skeleton::transformUsedBones | S | 0x007912db, depth 5 | crates/bf2-anim/src/pose.rs:849 (fn transform_used_bones) | crates/bf2-anim/src/pose.rs:1141, crates/bf2-anim/src/pose.rs:1174 | link line only | open |
0x00b08fc1 FUN_00b08fc1 | W | 0x007912db, depth 5 | 1.89 twin 0x008bbd4c pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/ik_oracle.rs:47 | the counter's weaker proof | open |
0x0048861d FUN_0048861d | W | 0x00792cfd, depth 5 | 1.89 twin 0x0047d4b1 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/retail_runtime.rs:143 | not a line: hub (75 callers): not expanded | |
0x0041ad9b FUN_0041ad9b | S | 0x008176e9, depth 5 | crates/bf2-client/src/heroes_teleport.rs:152 (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: hub (152 callers): not expanded | |
0x00403552 FUN_00403552 | W | 0x00403601, depth 6 | 1.89 twin 0x004034c1 is library code (coverage_bfh boilerplate) | not a line | ||
0x004035bb FUN_004035bb | W | 0x00403601, depth 6 | not ported | none | open | |
0x009f08c8 __EH_prolog3_catch | W | 0x00403601, depth 6 | CRT / compiler name (scope_rules.LIBNAME) | not a line | ||
0x007be2c9 FUN_007be2c9 | W | 0x0078f4c5, depth 6 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x007be2d0 FUN_007be2d0 | W | 0x0078f4c5, depth 6 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x007be2d7 FUN_007be2d7 | W | 0x0078f4c5, depth 6 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x007be544 FUN_007be544 | W | 0x0078f4c5, depth 6 | 1.89 twin 0x007742d7 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-client/src/hud_vehicle.rs:2080, crates/bf2-gameplay/src/vehicle/rotational.rs:1333 | the counter's weaker proof | open |
0x009eda1a FUN_009eda1a | W | 0x009edae2, depth 6 | crates/bfh-game/src/uncalled_client.rs:276 (fn gate_of_three_tests_bfh) | crates/bfh-game/tests/uncalled_client_bfh126.rs:360 (fn the_heroes_gate_of_three_tests_asks_the_third_only_behind_the_first_two) | test from the original's code | yes |
0x00b07388 FUN_00b07388 | W | 0x00b0867b, depth 6 | 1.89 twin 0x008ba273 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/ragdoll.rs:96, crates/bf2-anim/tests/retail_runtime.rs:30 | the counter's weaker proof | open |
0x00b08325 FUN_00b08325 | S | 0x00b0867b, depth 6 | crates/bf2-anim/src/pose.rs:62 (const HEROES_MOTHER_NODE) | crates/bf2-anim/src/pose.rs:958 (fn heroes_mother_turn_undoes_the_hips_bind) | test from the original's code | yes |
0x007d349d FUN_007d349d | S | 0x00b0efe4, depth 6 | crates/bf2-hud/src/render/map_orders.rs:523 (fn order_end_unset) | bfh_client_alt_ammo_bar, bfh_client_ambient_leaves | the counter's weaker proof | open |
0x0041b7fd FUN_0041b7fd | W | 0x0075c28d, depth 6 | engine utility (>= 100 call sites) | not a line | ||
0x00b09f68 FUN_00b09f68 | W | 0x00b08fc1, depth 6 | 1.89 twin 0x008bcc7d pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/ik_oracle.rs:47 | the counter's weaker proof | open |
0x004034d0 FUN_004034d0 | W | 0x004035bb, depth 7 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x007be31f FUN_007be31f | W | 0x007be544, depth 7 | 1.89 twin 0x007740af pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-gameplay/src/vehicle/rotational.rs:1333, crates/bf2-gameplay/src/vehicle/rotational.rs:1367 | the counter's weaker proof | open |
0x007168f5 FUN_007168f5 | W | 0x00b07388, depth 7 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x00b16c0d FUN_00b16c0d | W | 0x00b07388, depth 7 | 1.89 twin 0x008c9463 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/ik_oracle.rs:47 | the counter's weaker proof | open |
0x0049857d FUN_0049857d | W | 0x00b08325, depth 7 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x004985bb FUN_004985bb | W | 0x00b08325, depth 7 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x0071a1f2 FUN_0071a1f2 | W | 0x00b08325, depth 7 | thin wrapper (<= 80 bytes, calls only library code) | not a line | ||
0x007bd535 FUN_007bd535 | W | 0x00b08325, depth 7 | thin wrapper (<= 80 bytes, calls only library code) | not a line | ||
0x00890dc4 FUN_00890dc4 | W | 0x00b08325, depth 7 | 1.89 twin 0x0087763e pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/remove_animation_bfh126.rs:84 | the counter's weaker proof | open |
0x00890ed4 FUN_00890ed4 | W | 0x00b08325, depth 7 | 1.89 twin 0x0087774e pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-client/src/local_projectiles.rs:2990, crates/bf2-world/src/mech_legs.rs:2146 | the counter's weaker proof | open |
0x00b076c2 FUN_00b076c2 | S | 0x00b08325, depth 7 | crates/bf2-anim/src/pose.rs:66 (const HEROES_MOTHER_TURN) | crates/bf2-anim/src/pose.rs:958 (fn heroes_mother_turn_undoes_the_hips_bind) | test from the original's code | yes |
0x00b082cd FUN_00b082cd | W | 0x00b08325, depth 7 | 1.89 twin 0x008bb192 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/retail_runtime.rs:30 | the counter's weaker proof | open |
0x00b15c41 FUN_00b15c41 | S | 0x00b08325, depth 7 | crates/bf2-anim/src/sample.rs:635 (fn sample_with_noise) | crates/bf2-anim/tests/sample_pair.rs:170, crates/bf2-anim/tests/sample_pair.rs:225 | link line only | open |
0x00b09465 FUN_00b09465 | W | 0x00b09f68, depth 7 | thin wrapper (<= 80 bytes, calls only library code) | not a line | ||
0x00b09f23 FUN_00b09f23 | W | 0x00b09f68, depth 7 | not ported | none | open | |
0x00b166e5 FUN_00b166e5 | W | 0x00b16c0d, depth 8 | small helper: math leaf (no branches, no calls: FPU arithmetic) (< 64 bytes) | not a line | ||
0x00b1678c FUN_00b1678c | W | 0x00b16c0d, depth 8 | 1.89 twin 0x008c903c pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/src/ik.rs:1913 | the counter's weaker proof | open: WALK CUT at depth 8: 14 calls and 0 slots not followed |
0x00b1a3da FUN_00b1a3da | W | 0x00b16c0d, depth 8 | 1.89 twin 0x008ccaae pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/src/ik.rs:1839 | the counter's weaker proof | open |
0x00b1a4c3 FUN_00b1a4c3 | S | 0x00b16c0d, depth 8 | crates/bf2-anim/src/ik.rs:256 (fn axis_angle) | bfh_ik_axis_angle, gen_bfh_ik_axis_angle | test from the original's code | open: WALK CUT at depth 8: 5 calls and 0 slots not followed |
0x00b1a57b FUN_00b1a57b | S | 0x00b16c0d, depth 8 | crates/bf2-anim/src/ik.rs:613 (fn quat_to_axis_angle) | bfh_ik_axis_angle_of, gen_bfh_ik_axis_angle_of | test from the original's code | open: WALK CUT at depth 8: 5 calls and 0 slots not followed |
0x0049853d FUN_0049853d | S | 0x0049857d, depth 8 | crates/bf2-client/src/networld.rs:2017 (fn lerp3) | crates/bf2-client/tests/client_events_bfh126.rs:1193 (fn heroes_point_toward_a_point_rounds_to_a_single_after_every_step) | test from the original's code | open: WALK CUT at depth 8: 2 calls and 0 slots not followed |
0x00890c38 FUN_00890c38 | W | 0x004985bb, depth 8 | 1.89 twin 0x008774b2 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via') | crates/bf2-anim/tests/oracle.rs:40 | the counter's weaker proof | open: WALK CUT at depth 8: 2 calls and 0 slots not followed |
0x006fcb5e FUN_006fcb5e | W | 0x00890ed4, depth 8 | thin wrapper (<= 80 bytes, calls only library code) | not a line | ||
0x009f154a MSVCR90.DLL::_CIsin | S | 0x00890ed4, depth 8 | crates/bf2-anim/src/x87.rs:397 (fn crt90_op) | bfh_ability_overload, bfh_apparel_ingame | not a line: hub (40 callers): not expanded | |
0x009f1544 MSVCR90.DLL::_CIcos | S | 0x00b076c2, depth 8 | crates/bf2-anim/src/x87.rs:397 (fn crt90_op) | bfh_ability_overload, bfh_apparel_ingame | the counter's weaker proof | open |
0x00b07171 FUN_00b07171 | S | 0x00b076c2, depth 8 | crates/bf2-anim/src/pose.rs:422 (fn quat_inverse_bfh) | bfh_quat_inverse, gen_bfh_quat_inverse | test from the original's code | open: WALK CUT at depth 8: 2 calls and 0 slots not followed |
0x00b09370 FUN_00b09370 | S | 0x00b076c2, depth 8 | crates/bf2-anim/src/pose.rs:381 (fn quat_mul_bfh) | bfh_quat_mul, gen_bfh_quat_mul | test from the original's code | open: WALK CUT at depth 8: 3 calls and 0 slots not followed |
0x00b0727d FUN_00b0727d | S | 0x00b082cd, depth 8 | crates/bf2-anim/src/pose.rs:79 (fn layers_per_node) | bfh_ability_overload, bfh_apparel_ingame | the counter's weaker proof | open |
0x00b07a7e FUN_00b07a7e | S | 0x00b082cd, depth 8 | crates/bf2-anim/src/pose.rs:79 (fn layers_per_node) | crates/bf2-anim/src/pose.rs:934 (fn heroes_item_layer_reaches_the_spine) | test from the original's code | yes |
0x00b09aeb FUN_00b09aeb | W | 0x00b082cd, depth 8 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line: WALK CUT at depth 8: 1 calls and 0 slots not followed | ||
0x009687a7 ~world::PhysicsNode::getLatencyCompensatedTransformation::helper_009687a7 | W | 0x00b15c41, depth 8 | small helper: CRT wrapper (no branches; calls only CRT / allocator / string / allow-listed code) (< 64 bytes) | not a line | ||
0x009f11d0 FUN_009f11d0 | W | 0x00b15c41, depth 8 | crates/bf2-gameplay/src/tools/replenish.rs:588 (fn max_nr_of_mags) | bfh_client_cdm_late_events, bfh_client_chat_eor | not a line: hub (180 callers): not expanded | |
0x00b19e50 FUN_00b19e50 | S | 0x00b15c41, depth 8 | crates/bf2-anim/src/sample.rs:10 | bfh_ability_overload, bfh_apparel_ingame | the counter's weaker proof | open: WALK CUT at depth 8: 1 calls and 0 slots not followed |
0x00b19e8d FUN_00b19e8d | S | 0x00b15c41, depth 8 | crates/bf2-anim/src/sample.rs:10 | bfh_ability_overload, bfh_apparel_ingame | the counter's weaker proof | open: WALK CUT at depth 8: 1 calls and 0 slots not followed |
0x00b09a6f FUN_00b09a6f | W | 0x00b09f23, depth 8 | not ported | none | open: WALK CUT at depth 8: 1 calls and 0 slots not followed | |
0x00b09d2b FUN_00b09d2b | W | 0x00b09f23, depth 8 | 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 |
Inner calls#
A call through a virtual table has no line in the call graph; the ledger lists every one it met: 174 here, 174 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): has a scenario, no recorded pass
- used on foot (what you see): has a scenario, no recorded pass
- 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): has a scenario, no recorded pass
- used from a passenger's or a gunner's seat (what you see): has a scenario, no recorded pass
- enemy sitting in a vehicle (what you see): played and passed, but no assert read the screen and nobody wrote that they looked
- 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 you see): played and passed, but no assert read the screen and nobody wrote that they looked
- 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 you see): played and passed, but no assert read the screen and nobody wrote that they looked
- 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
And 225 lines about the original's code (the first 25):
- a step of the original (FUN_00503fbf): in ours, but no test written from the original's code holds it
- a step of the original (FUN_0071e01d): in ours, but no test written from the original's code holds it
- a step of the original (FUN_0072807d): in ours, but no test written from the original's code holds it
- a step of the original (FUN_009bd8dc): in ours, but no test written from the original's code holds it
- a step of the original (FUN_0069bf4c): in ours, but no test written from the original's code holds it
- a step of the original (FUN_0071cfd7): in ours; a scenario names it, with no recorded pass; no test written from the original
- a step of the original (FUN_0069beb8): in ours, but no test written from the original's code holds it
- a step of the original (FUN_00890993): in ours, but no test written from the original's code holds it
- a step of the original (FUN_007906e8): in ours; a scenario names it, with no recorded pass; no test written from the original
- a step of the original (FUN_00890bfd): in ours, but no test written from the original's code holds it
- a step of the original (FUN_0078f687): in ours, but no test written from the original's code holds it
- a step of the original (FUN_00790442): in ours, but no test written from the original's code holds it
- a step of the original (FUN_0078edd7): in ours, but no test written from the original's code holds it
- a step of the original (FUN_008176e9): in ours; a scenario names it, with no recorded pass; no test written from the original
- a step of the original (FUN_009bd1c1): in ours, but no test written from the original's code holds it
- 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 (FUN_0071f849): played and passed, but no test written from the original and nothing read the screen
- a step of the original (FUN_0078f4c5): in ours, but no test written from the original's code holds it
- a step of the original (FUN_009edae2): in ours, but no test written from the original's code holds it
- a step of the original (FUN_009eddb9): in ours, but no test written from the original's code holds it
- a step of the original (FUN_0071cf95): in ours, but no test written from the original's code holds it
- a step of the original (FUN_00792d17): this part of the original is in no count of ours: nobody has placed it
- a step of the original (FUN_00b0867b): in ours, but no test written from the original's code holds it
- a step of the original (FUN_0075c28d): in ours, but no test written from the original's code holds it
- a step of the original (~anim::Skeleton::transformUsedBones): in ours, but no test written from the original's code holds it
The other 200 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/ability/troop_trap.toml (its ticks: the folder notes/bfheroes/features/ability/troop_trap.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.