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

Teleport: the feature checklist

Heroes

Teleport is a Battlefield Heroes widget. This page is its checklist from the project's feature ledger: every step of the original's code behind it and every situation it must work in, each with the proof that stands for it, or none. The ledger's status today: 9 of 139 lines checked.

checked

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

What a check is

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

What it is for a player#

a device to throw; the hero is put at it after a delay

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

the name a player knowsTeleport
kindwidget
in the game's dataTeleport (2196)
its row in the sweepsnotes/bfheroes/widget_sweep.md, the row Teleport; notes/bfheroes/abilities_table.md row W25

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
0x0070ccd5the activationwhole
0x0070d94ethe update stepwhole
0x0070ceadthe server's teleportwhole
0x006ebeafthe put (Player vt+0x660)whole
0x0070aebdthe cancel, called by the fire arm's disable and by its firewhole

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 footchecked: play with a recorded pass, state asserts (scenario bfh_r0105_teleport (PASS in run 20261119_115044_h13_r0105_tp_t1 on 6fb6300))open: play with a recorded pass, state asserts (scenario bfh_r0105_teleport (PASS in run 20261119_115044_h13_r0105_tp_t1 on 6fb6300))played by state: no screenshot is read
used at the wheel of a vehicleopen: not checkedopen: not checked
used from a passenger's or a gunner's seatopen: not checkedopen: not checked
the user dies while it runsopen: not checkedopen: not checked
after the user respawnsopen: not checkedopen: not checked
the round ends while it runs, and the next round starts cleanopen: not checkedopen: not checked
the map changes while it runsopen: not checkedopen: not checked
a player who joins while it runs sees itopen: not checkedopen: not checked
watching a team mate who uses it (after dying, or as a spectator)open: not checkedopen: not checked
team mates against enemies (who gets it and who does not)open: not checkedopen: not checked
in water (swimming)open: not checkedopen: not checked
on a ladderopen: not checkedopen: not checked
while another effect runs on the same heroopen: not checkedopen: not checked
the effect on a target or user in a vehicle seat is drawn on the vehicleopen: not checkedopen: not checked
triggered in a round's last seconds, the next roundopen: not checkedopen: not checked
bought for valor points at the storeopen: not checkedopen: not checked
ready again only after its waitopen: not checkedopen: not checked
held at the account service, put in a widget slot and carried into a gameopen: not checkedopen: not checked
a pack's uses count down and the key is refused at none (a kept widget takes none)open: not checkedopen: not checked

Recorded plays#

2 more scenarios the ledger names have no row in the records file: bfh_r0105_teleport, bfh_teleport.

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#

59 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
0x0070ccd5 FUN_0070ccd5Sentry, depth 0crates/bf2-client/src/fx/client.rs:2589 (fn heroes_teleport_activations)scenario bfh_client_teleport (PASS in run 20261022_184604_bfh_client_chat_keysxbfh_client_gate_sky) (+2 more)play with a recorded pass, state assertsopen
0x0070d94e FUN_0070d94eWentry, depth 0crates/bf2-server/src/teleport_heroes.rs:109 (fn tick)crates/bfh-game/tests/teleport_tick_bfh126.rs:1 (fn hold)test from the original's codeyes
0x0070cead FUN_0070ceadSentry, depth 0crates/bf2-client/src/fx/client.rs:3059 (fn heroes_teleports)scenario bfh_r0105_teleport (PASS in run 20261119_115044_h13_r0105_tp_t1 on 6fb6300) (+1 more)play with a recorded pass, state assertsopen
0x006ebeaf Player::vslot408Wentry, depth 0crates/bf2-net/src/bfh_events.rs:538 (struct TeleportEvent)scenario bfh_gate_jeep (PASS in run 20261127_064841_c12_3 on e5b0d9c) (+1 more)play with a recorded pass, state assertsyes
0x0070aebd FUN_0070aebdSentry, depth 0crates/bf2-client/src/weapons.rs:6256 (fn disable)bfh_ability_overload, bfh_alt_fire_ammo_poolthe counter's weaker proofopen
0x0041ad9b FUN_0041ad9bS0x0070ccd5, depth 1crates/bf2-client/src/heroes_teleport.rs:175 (fn heroes_teleport_clock)crates/bf2-client/tests/client_events_bfh126.rs:1146 (fn heroes_game_time_getter_hands_back_the_stored_double)not a line: tested in every game: bf2142 0x00666070, bf2 0x004c4400
0x0041b829 FUN_0041b829W0x0070ccd5, depth 1engine utility (>= 100 call sites)not a line
0x0045d160 FUN_0045d160S0x0070ccd5, depth 1crates/bfh-client/src/sound_comp.rs:88 (fn init)bfh_client_ctf_sounds, bfh_client_footstepsnot a line: tested in every game: bf2142 0x0042b800, bf2 0x00440510
0x004b3cf5 FUN_004b3cf5W0x0070ccd5, depth 1engine utility (>= 100 call sites)not a line
0x0070aeac FUN_0070aeacW0x0070ccd5, depth 1trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x0070bc27 FUN_0070bc27S0x0070ccd5, depth 1crates/bf2-client/app/src/client/heroes_hud.rs:3264 (fn heroes_weapon_bar)bfh_apparel_ingame, bfh_client_alt_ammo_barthe counter's weaker proofopen
0x004821ae FUN_004821aeW0x0070cead, depth 1engine utility (>= 100 call sites)not a line
0x006a86fb FUN_006a86fbW0x0070cead, depth 1crates/bfh-game/src/ctf.rs:634 (fn drop)scenario bfh_client_browser_seated_widget_sound (no recorded result)has a scenario, no recorded passopen
0x006a9ceb FUN_006a9cebW0x0070cead, depth 1crates/bf2-net/src/bfh_ctf.rs:24scenario bfh_client_browser_seated_widget_sound (no recorded result)has a scenario, no recorded passopen
0x006aa06e FUN_006aa06eW0x0070cead, depth 1crates/bfh-game/src/ctf.rs:11bf2_rotation_eor_camera, bfh_client_cdm_late_eventsthe counter's weaker proofopen
0x0070bbd7 FUN_0070bbd7S0x0070cead, depth 1crates/bf2-client/src/heroes_teleport.rs:4scenario bfh_client_teleport (PASS in run 20261022_184604_bfh_client_chat_keysxbfh_client_gate_sky) (+2 more)play with a recorded pass, state assertsopen
0x004073ce ~animationSystem::setCameraSpring.amplitudeW0x006ebeaf, depth 1engine utility (>= 100 call sites)not a line
0x0041b7fd FUN_0041b7fdW0x006ebeaf, depth 1engine utility (>= 100 call sites)not a line
0x0049d641 FUN_0049d641S0x006ebeaf, 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
0x004edc76 FUN_004edc76W0x006ebeaf, depth 1crates/bf2-net/src/join.rs:248 (fn post_remote)crates/bf2-net/tests/net_record_bfh126.rs:1875 (fn post_remote_event_run_flag_senders_write_the_delay_zero_bfh126)not a line: hub (77 callers): not expanded
Show all 59 functions (the other 39)
The original's functionKindReachedOursProofIts kindChecked
0x0071d6f8 FUN_0071d6f8W0x006ebeaf, depth 1crates/bf2-server/src/soldier_phys.rs:3153 (fn teleport_to)scenario bfh_client_teleport (PASS in run 20261022_184604_bfh_client_chat_keysxbfh_client_gate_sky)play with a recorded pass, state assertsyes
0x00721aae FUN_00721aaeW0x006ebeaf, depth 1forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x009bd22c FUN_009bd22cW0x006ebeaf, depth 1engine utility (>= 100 call sites)not a line
0x009f0895 __EH_prolog3W0x006ebeaf, depth 1CRT / compiler name (scope_rules.LIBNAME)not a line
0x009f096d __EH_epilog3W0x006ebeaf, depth 1CRT / compiler name (scope_rules.LIBNAME)not a line
0x009f127c MSVCR90.DLL::_CIsqrtS0x006ebeaf, depth 1crates/bf2-anim/src/x87.rs:413 (fn crt_sqrt)bfh_ability_overload, bfh_apparel_ingamenot a line: hub (253 callers): not expanded
0x006e8894 Player::vslot21S0x006ebeaf vt+0x54, depth 1crates/bfh-client/src/outline.rs:35 (struct OutlinePlayer)scenario bfh_r0105_sixth_sense_seated_mate (FAIL in run 20261128_132429_site1_r2b on 93b1ab6)has a scenario, its last recorded result is not a passopen
0x006fb574 Player::vslot24W0x006ebeaf vt+0x60, depth 1trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x006e9db6 Player::vslot51S0x006ebeaf vt+0xcc, depth 1crates/bfh-client/src/outline.rs:34 (struct OutlinePlayer)scenario bfh_r0105_sixth_sense_seated_mate (FAIL in run 20261128_132429_site1_r2b on 93b1ab6)has a scenario, its last recorded result is not a passopen
0x004073a5 FUN_004073a5W0x006a86fb, depth 2not a line: engine utility (653 call sites, the counter's rule of 100); the counter has no row for it
0x0053410c FUN_0053410cW0x006a86fb, depth 2crates/bf2-net/src/bfh_ctf.rs:16scenario bfh_client_browser_seated_widget_sound (no recorded result)has a scenario, no recorded passopen
0x006a7fe1 FUN_006a7fe1W0x006a86fb, depth 2crates/bfh-game/src/ctf.rs:29 (type Ground)bfh_client_ctf_sounds, bfh_ctf_pickup_nationalthe counter's weaker proofopen
0x0088f213 FUN_0088f213W0x006a86fb, depth 2engine utility (>= 100 call sites)not a line
0x00528583 world::PlayerManager::getPlayerFromIdW0x006a86fb vt+0x20, depth 21.89 twin 0x004f9b61 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')crates/bf2-world/src/player.rs:1239, crates/bf2-world/src/player.rs:1365the counter's weaker proofopen
0x006aa0ad FUN_006aa0adW0x006a9ceb, depth 2not portednoneopen
0x006aa038 FUN_006aa038W0x006aa06e, depth 2by design: constructor of a GameLogic record (two members 0x006aa122, one 0x006aa31a); Rust Defaultnot a line
0x009f0a57 _atexitW0x006aa06e, depth 2CRT / compiler name (scope_rules.LIBNAME)not a line
0x004a580f FUN_004a580fW0x0071d6f8, depth 2crates/bf2-core/src/fmath.rs:63 (fn normalize3_heroes)crates/bf2-core/tests/normalize_bfh126.rs:1 (fn hold)not a line: hub (132 callers): not expanded
0x00503f2f FUN_00503f2fW0x0071d6f8, depth 2thin wrapper (<= 80 bytes, calls only library code)not a line
0x0072021e FUN_0072021eS0x00721aae, depth 2crates/bf2-client/src/predict.rs:1826 (fn bounding_radius)crates/bf2-physics/src/soldier.rs:3166 (fn hero_camera_pitch_stops_at_retail_limits), crates/bf2-physics/src/soldier_control.rs:1914 (fn hero_seat_look_stops_at_the_seat_limits)test from the original's codeyes
0x00529c0e FUN_00529c0eW0x00528583, depth 3not portednoneopen
0x006a9877 ~std::_Tree::_Lbound_006a9877W0x006aa0ad, depth 3small helper: STL tree walk (MSVC std::_Tree: tests or sets the node's _Isnil byte; find / erase / iterate / buy a node) (< 64 bytes)not a line
0x00403601 FUN_00403601W0x0072021e, depth 3not portednoneopen
0x00460d7b FUN_00460d7bW0x0072021e, depth 3engine utility (>= 100 call sites)not a line
0x00484407 ~Mat4::setIdentityW0x0072021e, depth 3small helper: math leaf (no branches, no calls: FPU arithmetic) (< 64 bytes)not a line
0x0049857d FUN_0049857dW0x0072021e, depth 3forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x0088f965 FUN_0088f965W0x0072021e, depth 31.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_0088f9beW0x0072021e, depth 31.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_0088fc8fS0x0072021e, depth 3crates/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
0x00b1edb2 FUN_00b1edb2W0x0072021e, depth 3engine utility (>= 100 call sites)not a line
0x00b1f1a2 FUN_00b1f1a2W0x0072021e, depth 3engine utility (>= 100 call sites)not a line
0x005294c1 ~std::_Tree::_Lbound_005294c1W0x00529c0e, depth 4small helper: STL tree walk (MSVC std::_Tree: tests or sets the node's _Isnil byte; find / erase / iterate / buy a node) (< 64 bytes)not a line
0x00403552 FUN_00403552W0x00403601, depth 41.89 twin 0x004034c1 is library code (coverage_bfh boilerplate)not a line
0x004035bb FUN_004035bbW0x00403601, depth 4not portednoneopen
0x009f08c8 __EH_prolog3_catchW0x00403601, depth 4CRT / compiler name (scope_rules.LIBNAME)not a line
0x0049853d FUN_0049853dS0x0049857d, depth 4crates/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 codeyes
0x004034d0 FUN_004034d0W0x004035bb, depth 5trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x00497864 FUN_00497864W0x0049853d, 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
0x004984f5 FUN_004984f5W0x0049853d, depth 5crates/bf2-physics/src/culler.rs:1039 (fn sub_bfh126)bfh_ability_overload, bfh_alt_fire_ammo_poolnot a line: hub (144 callers): not expanded

Inner calls#

A call through a virtual table has no line in the call graph; the ledger lists every one it met: 80 here, 76 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
  • the user dies while it runs (what it does): not checked
  • the user dies while it runs (what you see): not checked
  • after the user respawns (what it does): not checked
  • after the user respawns (what you see): not checked
  • the round ends while it runs, and the next round starts clean (what it does): not checked
  • the round ends while it runs, and the next round starts clean (what you see): not checked
  • the map changes while it runs (what it does): not checked
  • the map changes while it runs (what you see): not checked
  • a player who joins while it runs sees it (what it does): not checked
  • a player who joins while it runs sees it (what you see): not checked
  • watching a team mate who uses it (after dying, or as a spectator) (what it does): not checked
  • watching a team mate who uses it (after dying, or as a spectator) (what you see): not checked
  • team mates against enemies (who gets it and who does not) (what it does): not checked
  • team mates against enemies (who gets it and who does not) (what you see): not checked
  • in water (swimming) (what it does): not checked
  • in water (swimming) (what you see): not checked
  • on a ladder (what it does): not checked
  • on a ladder (what you see): not checked
  • while another effect runs on the same hero (what it does): not checked
  • while another effect runs on the same hero (what you see): not checked
  • the effect on a target or user in a vehicle seat is drawn on the vehicle (what it does): not checked
  • the effect on a target or user in a vehicle seat is drawn on the vehicle (what you see): not checked
  • triggered in a round's last seconds, the next round (what it does): not checked
  • triggered in a round's last seconds, the next round (what you see): not checked
  • bought for valor points at the store (what it does): not checked
  • bought for valor points at the store (what you see): not checked
  • ready again only after its wait (what it does): not checked
  • ready again only after its wait (what you see): not checked
  • held at the account service, put in a widget slot and carried into a game (what it does): not checked
  • held at the account service, put in a widget slot and carried into a game (what you see): not checked
  • a pack's uses count down and the key is refused at none (a kept widget takes none) (what it does): not checked
  • a pack's uses count down and the key is refused at none (a kept widget takes none) (what you see): not checked

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

  • a step of the original (FUN_0070ccd5): played and passed, but no test written from the original and nothing read the screen
  • a step of the original (FUN_0070cead): played and passed, but no test written from the original and nothing read the screen
  • a step of the original (FUN_0070aebd): in ours, but no test written from the original's code holds it
  • a step of the original (FUN_0070bc27): in ours, but no test written from the original's code holds it
  • a step of the original (FUN_006a86fb): in ours; a scenario names it, with no recorded pass; no test written from the original
  • a step of the original (FUN_006a9ceb): in ours; a scenario names it, with no recorded pass; no test written from the original
  • a step of the original (FUN_006aa06e): in ours, but no test written from the original's code holds it
  • a step of the original (FUN_0070bbd7): played and passed, but no test written from the original and nothing read the screen
  • a step of the original (Player::vslot21): in ours; a scenario names it, with no recorded pass; no test written from the original
  • a step of the original (Player::vslot51): in ours; a scenario names it, with no recorded pass; no test written from the original
  • a step of the original (FUN_0053410c): in ours; a scenario names it, with no recorded pass; no test written from the original
  • a step of the original (FUN_006a7fe1): in ours, but no test written from the original's code holds it
  • a step of the original (world::PlayerManager::getPlayerFromId): in ours, but no test written from the original's code holds it
  • a step of the original (FUN_006aa0ad): this part of the original is in no count of ours: nobody has placed it
  • a step of the original (FUN_00529c0e): this part of the original is in no count of ours: nobody has placed 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_004035bb): this part of the original is in no count of ours: nobody has placed it
  • an inner call of the original (in 0x0070ccd5, slot 0x10) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070ccd5, slot 0x18) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070ccd5, slot 0x1c) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070ccd5, slot 0x3c) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070ccd5, slot 0x50) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070ccd5, slot 0x7c) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070ccd5, slot 0xa0) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0070ccd5, slot 0xcc) is not followed yet: nobody has named what it calls

The other 68 stand in the ledger's file.

How it is tested#

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

In the code#

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