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

Troop Trap: the feature checklist

Heroes

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.

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.

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#

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 knowsTroop Trap
kindability, Commando
in the game's dataKegTrap_BRI / KegTrap_GER, levels 1 to 5 (2106 to 2115)
what it acts on (the ledger's tags)targets-enemies
its row in the sweepsnotes/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.

AddressWhat it is, in the ledger's wordsFollowed
0x0078784athe 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 fasterwhole

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: 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 vehicleopen: not checkedopen: not checked
used from a passenger's or a gunner's seatopen: 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 vehiclechecked: 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 runsopen: not checkedopen: not checked
after the user respawnschecked: 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 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)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 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

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 functionKindReachedOursProofIts kindChecked
0x0078784a world::DefaultDetonationComp::checkIfObjectCanTriggerWentry, depth 0crates/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 codeyes
0x004073a5 FUN_004073a5W0x0078784a, depth 1not a line: engine utility (653 call sites, the counter's rule of 100); the counter has no row for it
0x0049d641 FUN_0049d641S0x0078784a, depth 1crates/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_004a0e85W0x0078784a, depth 11.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:990not a line: hub (63 callers): not expanded
0x004a57d7 FUN_004a57d7W0x0078784a, depth 1trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x004a580f FUN_004a580fW0x0078784a, depth 1crates/bf2-core/src/fmath.rs:36 (fn normalize3)bfh_normalize3, gen_bfh_normalize3not a line: hub (132 callers): not expanded
0x00503fbf FUN_00503fbfW0x0078784a, depth 11.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:92the counter's weaker proofopen
0x00533b17 FUN_00533b17W0x0078784a, depth 1crates/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_0069c121W0x0078784a, depth 1forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x0071e01d FUN_0071e01dW0x0078784a, depth 11.89 twin 0x006c17b6 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')bfh_apparel_ingame, bfh_client_alt_ammo_barthe counter's weaker proofopen
0x0072807d FUN_0072807dW0x0078784a, depth 11.89 twin 0x006eba61 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')bfh_client_itembar_vehiclethe counter's weaker proofopen
0x009bd22c FUN_009bd22cW0x0078784a, depth 1engine utility (>= 100 call sites)not a line
0x009bd8dc FUN_009bd8dcS0x0078784a, depth 1crates/bf2-client/src/entry_points.rs:194 (fn ray_blocked)bfh_apparel_ingame, bfh_client_alt_ammo_barthe counter's weaker proofopen
0x009f127c MSVCR90.DLL::_CIsqrtS0x0078784a, depth 1crates/bf2-anim/src/x87.rs:413 (fn crt_sqrt)bfh_ability_overload, bfh_apparel_ingamenot a line: hub (253 callers): not expanded
0x009f1550 MSVCR90.DLL::_CItanW0x0078784a, depth 1import thunk / DLL function (MSVCR90, MEMORYDLL, KERNEL32, ...)not a line
0x0069bf4c FUN_0069bf4cW0x0069c121, depth 21.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:1027the counter's weaker proofopen
0x0071c78c FUN_0071c78cW0x0071e01d, depth 2forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x0071cfd7 FUN_0071cfd7S0x0071e01d, depth 2crates/bf2-client/app/src/client.rs:8176 (fn actors_pass)scenario bfh_client_hit_fx_moving (no recorded result)has a scenario, no recorded passopen
0x009be4d5 world::LineTestPredicator::LineTestPredicatorW0x009bd8dc, depth 2forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x004073ce ~animationSystem::setCameraSpring.amplitudeW0x0069bf4c, depth 3engine utility (>= 100 call sites)not a line
Show all 137 functions (the other 117)
The original's functionKindReachedOursProofIts kindChecked
0x00496f01 FUN_00496f01W0x0069bf4c, depth 3trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x004984f5 FUN_004984f5W0x0069bf4c, depth 3crates/bf2-physics/src/culler.rs:945 (fn sub_bfh126)bfh_ability_overload, bfh_alt_fire_ammo_poolnot a line: hub (144 callers): not expanded
0x0069beb8 FUN_0069beb8W0x0069bf4c, depth 31.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:1683the counter's weaker proofopen
0x00890993 FUN_00890993W0x0071c78c, depth 3crates/bf2-world/src/vehicle_ray.rs:526 (fn vehicle_exit_ray_start)bfh_client_itembar_vehicle, bfh_client_kubel_seatthe counter's weaker proofopen
0x0041ade0 FUN_0041ade0W0x0071cfd7, depth 3engine utility (>= 100 call sites)not a line
0x007906e8 FUN_007906e8S0x0071cfd7, depth 3crates/bf2-client/src/soldier_frame.rs:1596 (fn third_person_stance)scenario bfh_client_anim_crouch (no recorded result)has a scenario, no recorded passopen
0x00791d9f FUN_00791d9fS0x0071cfd7, depth 3crates/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 codeyes
0x009f0895 __EH_prolog3W0x0071cfd7, depth 3CRT / compiler name (scope_rules.LIBNAME)not a line
0x009f096d __EH_epilog3W0x0071cfd7, depth 3CRT / compiler name (scope_rules.LIBNAME)not a line
0x009c0bc8 world::ObjectFlagPredicator::ObjectFlagPredicatorW0x009be4d5, depth 3trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x00890bfd FUN_00890bfdW0x00890993, depth 41.89 twin 0x00877477 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')bfh_ability_overload, bfh_alt_fire_ammo_poolthe counter's weaker proofopen
0x004eecfd FUN_004eecfdS0x007906e8, depth 4crates/bf2-anim/src/first_person.rs:55 (fn is_zero)bfh_vec3_is_zero, gen_bfh_vec3_is_zeronot a line: hub (55 callers): not expanded
0x004f34e9 FUN_004f34e9W0x007906e8, depth 4forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x0069e9f3 FUN_0069e9f3W0x007906e8, depth 4crates/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 codeyes
0x0072016c FUN_0072016cS0x007906e8, depth 4crates/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 codeyes
0x007219ca FUN_007219caW0x007906e8, depth 4crates/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 codeyes
0x0078ed21 FUN_0078ed21W0x007906e8, depth 4trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x0078f687 FUN_0078f687W0x007906e8, depth 41.89 twin 0x00746cf7 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-anim/tests/ik_oracle.rs:46the counter's weaker proofopen
0x00790442 FUN_00790442S0x007906e8, depth 4crates/bf2-client/src/fx/client.rs:4313 (fn soldier_jumps)bfh_apparel_ingame, bfh_client_alt_ammo_barthe counter's weaker proofopen
0x0088f213 FUN_0088f213W0x007906e8, depth 4engine utility (>= 100 call sites)not a line
0x00460d7b FUN_00460d7bW0x00791d9f, depth 4engine utility (>= 100 call sites)not a line
0x004821ae FUN_004821aeW0x00791d9f, depth 4engine utility (>= 100 call sites)not a line
0x0078edd7 FUN_0078edd7W0x00791d9f, depth 41.89 twin 0x007464f2 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')bfh_apparel_ingame, bfh_client_alt_ammo_barthe counter's weaker proofopen
0x0078ff30 FUN_0078ff30S0x00791d9f, depth 4crates/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 codeyes
0x007912db FUN_007912dbS0x00791d9f, depth 4crates/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 codeyes
0x00792cfd FUN_00792cfdW0x00791d9f, depth 4forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x008176e9 FUN_008176e9S0x00791d9f, depth 4crates/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 passopen
0x0088f5ff FUN_0088f5ffS0x00791d9f, depth 4crates/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 codeyes
0x009bd1c1 FUN_009bd1c1W0x00791d9f, depth 41.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:908the counter's weaker proofopen
0x00890b99 FUN_00890b99W0x00890bfd, depth 5by design: constructor copying four vectors (0x0040742d each), a matrix by rows; Rust array copynot a line
0x004f34d6 FUN_004f34d6W0x004f34e9, depth 5trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x00403601 FUN_00403601W0x0072016c, depth 5not portednoneopen
0x00b1edb2 FUN_00b1edb2W0x0072016c, depth 5engine utility (>= 100 call sites)not a line
0x00b1f1a2 FUN_00b1f1a2W0x0072016c, depth 5engine utility (>= 100 call sites)not a line
0x0071d0d0 FUN_0071d0d0S0x007219ca, depth 5crates/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 codeyes
0x0071f849 FUN_0071f849S0x007219ca, depth 5crates/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 assertsopen
0x0078f4c5 FUN_0078f4c5W0x0078f687, depth 51.89 twin 0x00746b34 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-anim/tests/ik_oracle.rs:46the counter's weaker proofopen
0x00792a7a world::anon::JumpTestPredicator::JumpTestPredicatorW0x00790442, depth 5forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x009ed858 FUN_009ed858S0x00790442, depth 5crates/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 codeyes
0x009edae2 FUN_009edae2W0x00790442, depth 51.89 twin 0x0089f37b pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-client/src/fx/sound.rs:1837the counter's weaker proofopen
0x009eddb9 FUN_009eddb9W0x00790442, depth 51.89 twin 0x0089f65c pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-client/src/fx/sound.rs:1837the counter's weaker proofopen
0x00497864 FUN_00497864W0x0078ff30, depth 5crates/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_0049d61dW0x0078ff30, depth 51.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_0052a329W0x0078ff30, depth 5crates/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_0071cf95W0x0078ff30, depth 51.89 twin 0x006c0810 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')bfh_ability_overload, bfh_alt_fire_ammo_poolthe counter's weaker proofopen
0x0071fb8c FUN_0071fb8cW0x0078ff30, depth 5trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x0072b76b FUN_0072b76bW0x0078ff30, depth 5crates/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_0078f2ffW0x0078ff30, depth 51.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 codeyes
0x00792d17 FUN_00792d17W0x0078ff30, depth 5not portednoneopen
0x0088f817 FUN_0088f817S0x0078ff30, depth 5crates/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 codeyes
0x00b0867b FUN_00b0867bW0x0078ff30, depth 51.89 twin 0x008bb50f pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-anim/src/aim.rs:374the counter's weaker proofopen
0x00b0efa4 FUN_00b0efa4S0x0078ff30, depth 5crates/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 codeyes
0x00b0efe4 FUN_00b0efe4W0x0078ff30, depth 51.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 codeyes
0x00464319 FUN_00464319W0x007912db, depth 5thin wrapper (<= 80 bytes, calls only library code)not a line
0x00468701 FUN_00468701W0x007912db, depth 51.89 twin 0x00456e91 is library code (coverage_bfh boilerplate)not a line
0x00484407 ~Mat4::setIdentityW0x007912db, depth 5small helper: math leaf (no branches, no calls: FPU arithmetic) (< 64 bytes)not a line
0x00709186 FUN_00709186W0x007912db, depth 5trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x00725faf FUN_00725fafW0x007912db, depth 5trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x0075c28d FUN_0075c28dW0x007912db, depth 51.89 twin 0x007192aa pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-client/src/antenna.rs:400the counter's weaker proofopen
0x0078eb87 FUN_0078eb87W0x007912db, depth 5thin wrapper (<= 80 bytes, calls only library code)not a line
0x007933ab FUN_007933abW0x007912db, depth 5STL 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_0088f965W0x007912db, depth 51.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 codeyes
0x0088f9be FUN_0088f9beW0x007912db, depth 51.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 codeyes
0x0088fc8f FUN_0088fc8fS0x007912db, depth 5crates/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 codeyes
0x00b08e10 ~anim::Skeleton::transformUsedBonesS0x007912db, depth 5crates/bf2-anim/src/pose.rs:849 (fn transform_used_bones)crates/bf2-anim/src/pose.rs:1141, crates/bf2-anim/src/pose.rs:1174link line onlyopen
0x00b08fc1 FUN_00b08fc1W0x007912db, depth 51.89 twin 0x008bbd4c pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-anim/tests/ik_oracle.rs:47the counter's weaker proofopen
0x0048861d FUN_0048861dW0x00792cfd, depth 51.89 twin 0x0047d4b1 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-anim/tests/retail_runtime.rs:143not a line: hub (75 callers): not expanded
0x0041ad9b FUN_0041ad9bS0x008176e9, depth 5crates/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_00403552W0x00403601, depth 61.89 twin 0x004034c1 is library code (coverage_bfh boilerplate)not a line
0x004035bb FUN_004035bbW0x00403601, depth 6not portednoneopen
0x009f08c8 __EH_prolog3_catchW0x00403601, depth 6CRT / compiler name (scope_rules.LIBNAME)not a line
0x007be2c9 FUN_007be2c9W0x0078f4c5, depth 6trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x007be2d0 FUN_007be2d0W0x0078f4c5, depth 6trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x007be2d7 FUN_007be2d7W0x0078f4c5, depth 6trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x007be544 FUN_007be544W0x0078f4c5, depth 61.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:1333the counter's weaker proofopen
0x009eda1a FUN_009eda1aW0x009edae2, depth 6crates/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 codeyes
0x00b07388 FUN_00b07388W0x00b0867b, depth 61.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:30the counter's weaker proofopen
0x00b08325 FUN_00b08325S0x00b0867b, depth 6crates/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 codeyes
0x007d349d FUN_007d349dS0x00b0efe4, depth 6crates/bf2-hud/src/render/map_orders.rs:523 (fn order_end_unset)bfh_client_alt_ammo_bar, bfh_client_ambient_leavesthe counter's weaker proofopen
0x0041b7fd FUN_0041b7fdW0x0075c28d, depth 6engine utility (>= 100 call sites)not a line
0x00b09f68 FUN_00b09f68W0x00b08fc1, depth 61.89 twin 0x008bcc7d pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-anim/tests/ik_oracle.rs:47the counter's weaker proofopen
0x004034d0 FUN_004034d0W0x004035bb, depth 7trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x007be31f FUN_007be31fW0x007be544, depth 71.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:1367the counter's weaker proofopen
0x007168f5 FUN_007168f5W0x00b07388, depth 7forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x00b16c0d FUN_00b16c0dW0x00b07388, depth 71.89 twin 0x008c9463 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-anim/tests/ik_oracle.rs:47the counter's weaker proofopen
0x0049857d FUN_0049857dW0x00b08325, depth 7forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x004985bb FUN_004985bbW0x00b08325, depth 7forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x0071a1f2 FUN_0071a1f2W0x00b08325, depth 7thin wrapper (<= 80 bytes, calls only library code)not a line
0x007bd535 FUN_007bd535W0x00b08325, depth 7thin wrapper (<= 80 bytes, calls only library code)not a line
0x00890dc4 FUN_00890dc4W0x00b08325, depth 71.89 twin 0x0087763e pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-anim/tests/remove_animation_bfh126.rs:84the counter's weaker proofopen
0x00890ed4 FUN_00890ed4W0x00b08325, depth 71.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:2146the counter's weaker proofopen
0x00b076c2 FUN_00b076c2S0x00b08325, depth 7crates/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 codeyes
0x00b082cd FUN_00b082cdW0x00b08325, depth 71.89 twin 0x008bb192 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-anim/tests/retail_runtime.rs:30the counter's weaker proofopen
0x00b15c41 FUN_00b15c41S0x00b08325, depth 7crates/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:225link line onlyopen
0x00b09465 FUN_00b09465W0x00b09f68, depth 7thin wrapper (<= 80 bytes, calls only library code)not a line
0x00b09f23 FUN_00b09f23W0x00b09f68, depth 7not portednoneopen
0x00b166e5 FUN_00b166e5W0x00b16c0d, depth 8small helper: math leaf (no branches, no calls: FPU arithmetic) (< 64 bytes)not a line
0x00b1678c FUN_00b1678cW0x00b16c0d, depth 81.89 twin 0x008c903c pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-anim/src/ik.rs:1913the counter's weaker proofopen: WALK CUT at depth 8: 14 calls and 0 slots not followed
0x00b1a3da FUN_00b1a3daW0x00b16c0d, depth 81.89 twin 0x008ccaae pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-anim/src/ik.rs:1839the counter's weaker proofopen
0x00b1a4c3 FUN_00b1a4c3S0x00b16c0d, depth 8crates/bf2-anim/src/ik.rs:256 (fn axis_angle)bfh_ik_axis_angle, gen_bfh_ik_axis_angletest from the original's codeopen: WALK CUT at depth 8: 5 calls and 0 slots not followed
0x00b1a57b FUN_00b1a57bS0x00b16c0d, depth 8crates/bf2-anim/src/ik.rs:613 (fn quat_to_axis_angle)bfh_ik_axis_angle_of, gen_bfh_ik_axis_angle_oftest from the original's codeopen: WALK CUT at depth 8: 5 calls and 0 slots not followed
0x0049853d FUN_0049853dS0x0049857d, depth 8crates/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 codeopen: WALK CUT at depth 8: 2 calls and 0 slots not followed
0x00890c38 FUN_00890c38W0x004985bb, depth 81.89 twin 0x008774b2 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-anim/tests/oracle.rs:40the counter's weaker proofopen: WALK CUT at depth 8: 2 calls and 0 slots not followed
0x006fcb5e FUN_006fcb5eW0x00890ed4, depth 8thin wrapper (<= 80 bytes, calls only library code)not a line
0x009f154a MSVCR90.DLL::_CIsinS0x00890ed4, depth 8crates/bf2-anim/src/x87.rs:397 (fn crt90_op)bfh_ability_overload, bfh_apparel_ingamenot a line: hub (40 callers): not expanded
0x009f1544 MSVCR90.DLL::_CIcosS0x00b076c2, depth 8crates/bf2-anim/src/x87.rs:397 (fn crt90_op)bfh_ability_overload, bfh_apparel_ingamethe counter's weaker proofopen
0x00b07171 FUN_00b07171S0x00b076c2, depth 8crates/bf2-anim/src/pose.rs:422 (fn quat_inverse_bfh)bfh_quat_inverse, gen_bfh_quat_inversetest from the original's codeopen: WALK CUT at depth 8: 2 calls and 0 slots not followed
0x00b09370 FUN_00b09370S0x00b076c2, depth 8crates/bf2-anim/src/pose.rs:381 (fn quat_mul_bfh)bfh_quat_mul, gen_bfh_quat_multest from the original's codeopen: WALK CUT at depth 8: 3 calls and 0 slots not followed
0x00b0727d FUN_00b0727dS0x00b082cd, depth 8crates/bf2-anim/src/pose.rs:79 (fn layers_per_node)bfh_ability_overload, bfh_apparel_ingamethe counter's weaker proofopen
0x00b07a7e FUN_00b07a7eS0x00b082cd, depth 8crates/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 codeyes
0x00b09aeb FUN_00b09aebW0x00b082cd, depth 8forwarder (<= 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_009687a7W0x00b15c41, depth 8small helper: CRT wrapper (no branches; calls only CRT / allocator / string / allow-listed code) (< 64 bytes)not a line
0x009f11d0 FUN_009f11d0W0x00b15c41, depth 8crates/bf2-gameplay/src/tools/replenish.rs:588 (fn max_nr_of_mags)bfh_client_cdm_late_events, bfh_client_chat_eornot a line: hub (180 callers): not expanded
0x00b19e50 FUN_00b19e50S0x00b15c41, depth 8crates/bf2-anim/src/sample.rs:10bfh_ability_overload, bfh_apparel_ingamethe counter's weaker proofopen: WALK CUT at depth 8: 1 calls and 0 slots not followed
0x00b19e8d FUN_00b19e8dS0x00b15c41, depth 8crates/bf2-anim/src/sample.rs:10bfh_ability_overload, bfh_apparel_ingamethe counter's weaker proofopen: WALK CUT at depth 8: 1 calls and 0 slots not followed
0x00b09a6f FUN_00b09a6fW0x00b09f23, depth 8not portednoneopen: WALK CUT at depth 8: 1 calls and 0 slots not followed
0x00b09d2b FUN_00b09d2bW0x00b09f23, depth 8STL 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#

WhatWhere
this feature's ledgernotes/bfheroes/features/ability/troop_trap.toml (its ticks: the folder notes/bfheroes/features/ability/troop_trap.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 e7ed773 2026-11-28T11:50:06
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.