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

Self-view camera (F): the feature checklist

Heroes

Self-view camera (F) is a Battlefield Heroes camera. 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 43 lines checked.

checked

Situations: 2 of 14 checked for what the game does, 2 of 14 for what a player sees. The original's code: 5 of 15 checked (10 functions and 5 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.

The owner's report

The ledger names the owner's open report on this feature: R-0113.

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#

Hold F and the camera swings round to look at your own hero from the front, for as long as the key is held: it stands a little in front of him and above, looks back at him, and is pulled in where something is in the way. It works for a living hero who is not down and whose weapon in hand is not zoomed; each stance and each vehicle has its own distance and height for it

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

the name a player knowsSelf-view camera (F)
kindcamera
in the game's datac_GIVanityCam (0x38); Settings/Controls.con
what it acts on (the ledger's tags)client-effect
the owner's reportR-0113
its row in the sweepsnotes/bfheroes/client.md, The vanity view in a seat with a camera of its own (R-0113, slot cam1)

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
0x0089cb5bthe HUD's game input handler, a shared step of every key: this feature's part is its tail 0x0089dcf7 to 0x0089dd8f: no local player, the control object's list-0 weapon, a zooming fire arm, not alive, down, then the key as it is held goes into Player +0x73e (vt+0x51c)as a part: its calls are not followed
0x00760362a seat's vt+0x80: the occupant soldier's list-0 weapon when the seat has no camera of its own, else the seat's ownwhole
0x00760573a seat's vt+0x16c: the seat's camera map is empty and its occupant is a soldierwhole
0x004f34e9the weapon as a fire arm (interface 0x94c0)whole
0x0045c8f1up the control object's parents to the first object with the control interfacewhole
0x006fb57bPlayer vt+0x51c: the setter of the held key's flag (Player +0x73e); who reads it (the camera) comes in by the flag rulewhole

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: not checkedopen: not checked
used at the wheel of a vehiclechecked: play with a recorded pass, pixels read (scenario bfh_client_vanity_seats (PASS in run 20261128_100802_cam1_after2 on e608c0f))checked: play with a recorded pass, pixels read (scenario bfh_client_vanity_seats (PASS in run 20261128_100802_cam1_after2 on e608c0f))
used from a passenger's or a gunner's seatchecked: play with a recorded pass, pixels read (scenario bfh_client_vanity_seats (PASS in run 20261128_100802_cam1_after2 on e608c0f))checked: play with a recorded pass, pixels read (scenario bfh_client_vanity_seats (PASS in run 20261128_100802_cam1_after2 on e608c0f))
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
HUD parts that must hide while a camera view is on (crosshair)open: not checkedopen: not checked

Recorded plays#

ScenarioLast resultRunModeDateCommitLast pass
bfh_client_vanity_seatsPASS20261128_141607_cam1_r3_seats_page4page2026-11-28 14:1609853332026-11-28 14:16 at 0985333

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#

12 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
0x0089cb5b hud::BF2HudManager::vslot1Sentry, depth 0crates/bf2-client/app/src/client/frame_door.rs:282 (fn voip_keys_part_bfh)crates/bf2-client/src/comm_rose.rs:3543 (fn heroes_chat_box_enter_escape_and_text), crates/bf2-client/src/comm_rose.rs:4217 (fn heroes_chat_box_dead_hero_enter_opens_the_team_box)test from the original's codeyes: PART: entered without its calls (expand = false)
0x00760362 world::PlayerControlObject::vslot32_at194Wentry, depth 0crates/bf2-server/src/abilities_heroes.rs:1623 (fn seat_active_weapon)crates/bf2-client/tests/vanity_cam_seat_bfh126.rs:70 (fn a_seat_without_cameras_asks_the_soldiers_weapon_bfh126)test from the original's codeyes
0x00760573 world::PlayerControlObject::vslot91_at194Wentry, depth 01.89 twin 0x0071d3d2 pairs with a 2142 / BF2 function bf2-rs ports (coverage_bfh 'via')scenario bfh_client_vanity_seats (PASS in run 20261128_100802_cam1_after2 on e608c0f) (+2 more)play with a recorded pass, pixels readyes
0x004f34e9 FUN_004f34e9Wentry, depth 0not portedscenario bfh_r0105_zoom_escape (PASS in run 20261119_132535_h7gd on bfc1cc4) (+2 more)play with a recorded pass, state assertsyes
0x0045c8f1 FUN_0045c8f1Wentry, depth 0crates/bf2-server/src/abilities_heroes.rs:1564 (fn attacker_active_ability)scenario bfh_r0105_friendly_blast (PASS in run 20261119_201418_h8kd on 9bf2f6d) (+2 more)play with a recorded pass, state assertsyes
0x006fb57b Player::vslot327Wentry, depth 0not portedtrivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)noneopen
0x004f34d6 FUN_004f34d6W0x004f34e9, depth 1trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x00794b66 world::FireComp::vslot55_at10Sreads Player+0x73e (vt+0x520), depth 1crates/bf2-client/app/src/client.rs:9924 (fn heroes_remote_fire_starts)crates/bfh-client/src/camera.rs:1407 (fn a_seated_hero_fires_from_the_vehicle_offset), crates/bfh-client/src/camera.rs:1565 (fn an_aim_point_behind_the_view_keeps_its_rotation)test from the original's codeopen: READ, confirmed by its text: where the fire arm aims from while the view is on (read in part, its lines 129 to 176 of 411): with the camera in mode 3 and the key held it takes another object (its local_8) than the camera's for the aim's start
0x007bc768 world::Camera::vslot4_at258Sreads Player+0x73e (vt+0x520), depth 1crates/bf2-client/app/src/client.rs:11021 (fn first_person_camera_view)crates/bf2-client/src/ladder.rs:990 (fn heroes_ladder_camera_turns_once_per_mouse_move)test from the original's codeopen: READ, confirmed by its text: the camera's view by its mode (read whole): in mode 3 the object's player (vt+0x10) is asked vt+0x520; held: the self-view's transform 0x007b8350; not held: the plain view (0x007b8e60 with 0)
0x008f075f hud::Vehicle::vslot7Sreads Player+0x73e (vt+0x520), depth 1crates/bf2-client/app/src/client/hudplay.rs:460 (fn bottom_left_live)crates/bf2-client/tests/heroes_followed_hero.rs:2 (fn heroes)test from the original's codeopen: READ, confirmed by its text: what the HUD hides while the view is on (the HUD's update for the local player, read whole): while the key is held it sets the HUD's +0xa0 to 0; while it is not held and +0xa0 is 0 it fetches it again from the list-0 weapon in hand's WeaponHud component (vt+0x38, 0x0082cd90) or, for a control object with a HUD component of its own (+0x60, a seat), from that component's vt+0x3c. Nothing else in the function asks the flag: one HUD entry, the weapon's or the seat's, by its source the crosshair; which HUD node draws from +0xa0 was not followed
0x0046de93 FUN_0046de93Wtouches Player+0x73e directly (a undefined1 at +0x73e), depth 1not portednoneopen: CANDIDATE by the flag rule: confirm it (an [[entry]] is walked; a [[member]] of another binary is kept) or dismiss it with a [[boundary]] and its reason; no tick until then
0x0046df94 anon::ConsoleClass194::executeObjectMethodWtouches Player+0x73e directly (a undefined1 at +0x73e), depth 1forwarder: console command dispatch (a ConsoleClass converts the arguments and calls the bound method; the walk goes through it)not a line: CANDIDATE by the flag rule: confirm it (an [[entry]] is walked; a [[member]] of another binary is kept) or dismiss it with a [[boundary]] and its reason; no tick until then

Inner calls#

A call through a virtual table has no line in the call graph; the ledger lists every one it met: 5 here, 5 of them open lines (nobody has named what they call, or what they call is not checked).

What a person settled#

The ledger's tool finds candidates by rule; a person confirms or dismisses each, with the reason read from the original's text. These are the ledger's own words.

  • The S lines (what you see): a camera view: what the player sees is the feature
WhatAddressThe reason, in the ledger's words
confirmed: part of the feature0x008f075fwhat the HUD hides while the view is on (the HUD's update for the local player, read whole): while the key is held it sets the HUD's +0xa0 to 0; while it is not held and +0xa0 is 0 it fetches it again from the list-0 weapon in hand's WeaponHud component (vt+0x38, 0x0082cd90) or, for a control object with a HUD component of its own (+0x60, a seat), from that component's vt+0x3c. Nothing else in the function asks the flag: one HUD entry, the weapon's or the seat's, by its source the crosshair; which HUD node draws from +0xa0 was not followed
confirmed: part of the feature0x007bc768the camera's view by its mode (read whole): in mode 3 the object's player (vt+0x10) is asked vt+0x520; held: the self-view's transform 0x007b8350; not held: the plain view (0x007b8e60 with 0)
confirmed: part of the feature0x00794b66where the fire arm aims from while the view is on (read in part, its lines 129 to 176 of 411): with the camera in mode 3 and the key held it takes another object (its local_8) than the camera's for the aim's start

What is open#

In a player's words, as the ledger writes them:

  • used on foot (what it does): not checked
  • used on foot (what you see): not checked
  • 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
  • HUD parts that must hide while a camera view is on (crosshair) (what it does): not checked
  • HUD parts that must hide while a camera view is on (crosshair) (what you see): not checked

And 10 lines about the original's code:

  • a step of the original (Player::vslot327): in ours, but no test written from the original's code holds it
  • where the fire arm aims from while the view is on (read in part, its lines 129 to 176 of 411): read in the original only; no test written for this and no recorded play that read the screen
  • the camera's view by its mode (read whole): read in the original only; no test written for this and no recorded play that read the screen
  • what the HUD hides while the view is on (the HUD's update for the local player, read whole): read in the original only; no test written for this and no recorded play that read the screen
  • a step of the original (FUN_0046de93): it may read or end what this feature switches on: nobody has said whether it does
  • a large shared step of the original (0x0089cb5b) is on the list by itself: what it calls for this feature is not followed yet
  • an inner call of the original (in 0x00760362, slot 0x80) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x00760362, slot 0x16c) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x00760573, slot 0x10) is not followed yet: nobody has named what it calls
  • an inner call of the original (in 0x0045c8f1, slot 0xc) is not followed yet: nobody has named what it calls

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/camera/self_view.toml (its ticks: the folder notes/bfheroes/features/camera/self_view.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.