benilla-re systems structs docs

uicamera

rowsnamedverifiedproof twotested
functions166141 (84%)124 (74%)0 (0%)64 (38%)
globals112105 (93%)84 (75%)0 (0%)–
structs0––––
fields0––––
all278246 (88%)208 (74%)0 (0%)64 (38%)

Docs

uicamera: the in-engine cinematic

How a cinematic sequence plays in the world: the sequence driver that steps through the shots of a CinematicSequences.dbc row, the shot camera model the camera object loads and places, and what the shot does and does not control.

This is Camera.cpp and the GameUI.cpp driver that calls it. The world camera maths are uicamera/driver and uicamera/solver; the way the loading screen picks a first sequence is glue/flow; the opcode that starts a cinematic is objectlayer/playermessages.

uicamera: the camera CVars

The settings the player and the interface change: the registered camera CVars, the values each accepts, the families of generated CVars, and the tests that turn some of them into conditions on the camera.

This is Camera.cpp, the world camera of the interface layer. The saved view and the camera's units are uicamera/view; the camera object is camera.

uicamera: the follow camera

The camera that follows the player in the world: its per-frame update, the keyboard and wheel axes that move it, how the view angles, the pivot and the eye are made, how the camera is pulled in and glides back, and the fade of the player's own model.

This is Camera.cpp. The saved view and the pitch convention are uicamera/view; the CVars it reads are uicamera/cvars. The camera object's matrices are camera.

uicamera: shake, bobbing, terrain tilt and the drunk view

The effects the follow camera adds on top of the view it solves: spell and footstep shakes, the head bob of first person, the tilt the camera takes from sloping ground, the wide field of view of a drunk character, and the pitch the camera hands back to a swimming player.

This is Camera.cpp. The per-frame driver that calls them is uicamera/driver; the channels they ease through are uicamera/transitions; the CVars are uicamera/cvars. Which shake ids a spell or a footstep adds is spell/shakes#camera-shake-groups.

uicamera: following and the auto-return

What the camera does when the character moves: the input state that picks a row of the smoothing CVars, the delay and factor each row gives, and how the yaw, pitch and pivot bias are armed to return to the view's saved angles behind the character.

This is Camera.cpp. The channels it arms are uicamera/transitions; the CVars are uicamera/cvars; the commands and mouse buttons that set the input word are input.

uicamera: the near and far solver and the water bands

How the follow camera keeps its pivot and its orbit distance clear of walls, ceilings and water: the per-frame outer call, the solver that shortens the pivot height and the distance, the two water bands that move the solver's limits, and the pitch the camera takes when it crosses the surface.

This is Camera.cpp. The update that calls the solver is in uicamera/driver; the CVars are uicamera/cvars; the swept queries the solver issues belong to the world (collision).

uicamera: transitions

How the camera moves a value from its current setting to a target: the seven channels, the arming setters, the cosine ease each frame applies, the relative and absolute frames of the yaw and pitch, the bob decay, and the field of view.

This is Camera.cpp. The per-frame update that calls the consumer is uicamera/driver; what arms the yaw, pitch and pivot channels on a key edge is uicamera/follow; the speed CVars are uicamera/cvars.

uicamera: the camera's saved view

The two numbers the camera keeps per character, how the starting view is chosen, the units and sign of the pitch, and when the camera is made and saved.

This is Camera.cpp. The camera object and its matrices are camera; the per-frame driver is uicamera/driver; the camera CVars are uicamera/cvars; the commands that set the view from the keys are input.

uicamera: the water bands

How the surface and submerged bands choose the pivot height, where that height steps, what the eased height does after a drop, how a repeated crossing is absorbed, and how the water switch reaches the world trace. The band classifier and the pitch a crossing arms are uicamera/solver ("The water bands", "Crossing the surface"). The classifier's inputs are in objectlayer/swim and the solver's frame in uicamera/solver; the frame order is uicamera/driver. In the entries d is the liquid surface height above the unit's position, T the target pivot height at +0x1c8, L the live pivot height at +0xfc and M the larger of the two.

Closure

42 roots. A walk of direct calls and jumps from them reaches 86 of the 166 functions the system owns, and stops at 99 functions of other systems. Vtable slots and stored addresses are not followed, so a function reached only that way is not counted.

Roots

Boundary

Functions 166

addressnameclassconfidencetestclosure
0x50b2900x50b290orchestrationinferred
0x50b2a00x50b2a0orchestrationinferred
0x50b2b00x50b2b0orchestrationinferred
0x50b2c0InitShakeNearSquaredprimitiveverified, proof one
0x50b2e00x50b2e0orchestrationinferred
0x50b2f0InitShakeFarSquaredprimitiveverified, proof one
0x50b310CheckDistanceRangeorchestrationverified, proof one
0x50b330CheckCVarRangeorchestrationverified, proof one✓
0x50b380CheckPitchRangeprimitiveverified, proof one✓
0x50b3c0CheckYawRangeprimitiveverified, proof one✓
0x50b400Script::CameraZoomInorchestrationverified, proof one
0x50b450Script::CameraZoomOutorchestrationverified, proof one
0x50b4a0Script::MoveViewInStartorchestrationverified, proof one
0x50b4b0StartMoveViewAxisorchestrationverified, proof one
0x50b4d0Script::MoveViewInStoporchestrationverified, proof one
0x50b4e0StopMoveViewAxisorchestrationverified, proof one
0x50b500Script::MoveViewOutStartorchestrationverified, proof one
0x50b510Script::MoveViewOutStoporchestrationverified, proof one
0x50b520Script::MoveViewRightStartorchestrationverified, proof one
0x50b530Script::MoveViewRightStoporchestrationverified, proof one
0x50b540Script::MoveViewLeftStartorchestrationverified, proof one
0x50b550Script::MoveViewLeftStoporchestrationverified, proof one
0x50b560Script::MoveViewUpStartorchestrationverified, proof one
0x50b570Script::MoveViewUpStoporchestrationverified, proof one
0x50b580Script::MoveViewDownStartorchestrationverified, proof one
0x50b590Script::MoveViewDownStoporchestrationverified, proof one
0x50b5a0Script::ToggleMouseMoveorchestrationverified, proof one
0x50b5b0Script::SetViewprimitiveinferred
0x50b600Script::SaveViewprimitiveinferred
0x50b640Script::ResetViewprimitiveinferred
0x50b680Script::NextVieworchestrationinferred
0x50b690Script::PrevVieworchestrationinferred
0x50b6a0Script::FlipCameraYawprimitiveverified, proof one✓
0x50b6f0RegisterCameraCVarsprimitiveverified, proof one✓
0x50bfc0CheckViewRangeorchestrationverified, proof one
0x50bfe0CheckTimeRangeorchestrationverified, proof one
0x50c000CheckAngleRateRangeprimitiveverified, proof one✓
0x50c040CheckDistanceRateRangeorchestrationverified, proof one
0x50c060CheckSmoothStyleRangeorchestrationverified, proof one
0x50c080RegisterCameraScriptFunctionsorchestrationverified, proof one
0x50c0b0UnregisterCameraScriptFunctionsorchestrationverified, proof one
0x50c0d00x50c0d0orchestrationinferred
0x50c0e0CCamera::CCameraprimitiveverified, proof one✓
0x50c4100x50c410orchestrationinferred
0x50c4200x50c420primitiveinferred
0x50c4300x50c430orchestrationinferred
0x50c4400x50c440primitiveinferred
0x50c460CCamera::~CCameraprimitiveverified, proof one✓
0x50c4d0CCamera::SaveSettingsprimitiveverified, proof one✓
0x50c5a0CCamera::LoadSettingsprimitiveverified, proof one✓
0x50c740CCamera::ArmShotprimitiveverified, proof one✓
0x50c860CCamera::HasShotCameraorchestrationverified, proof one
0x50c870CCamera::LoadShotprimitiveverified, proof one✓
0x50ca10CCamera::RestartShotorchestrationverified, proof one
0x50ca50CCamera::ReleaseShotprimitiveverified, proof one✓
0x50ca90CCamera::BuildPivotHeightsprimitiveverified, proof one✓✓
0x50d0f0CCamera::SetTargetorchestrationverified, proof one✓✓
0x50d320CCamera::SetFovOverrideprimitiveverified, proof one✓
0x50d3900x50d390orchestrationinferred
0x50d3b0CCamera::EnterAbsoluteFrameprimitiveverified, proof one✓
0x50d440CCamera::LeaveAbsoluteFrameprimitiveverified, proof one✓✓
0x50d500CCamera::PushGroundPitchorchestrationverified, proof one✓
0x50d520CCamera::PopGroundPitchprimitiveverified, proof one✓
0x50d5400x50d540unreachedinferred
0x50d5d0CCamera::SetLookAtprimitiveverified, proof one✓✓
0x50d6a00x50d6a0unreachedinferred
0x50d6d0CCamera::GetFovprimitiveverified, proof one✓
0x50d720CCamera::ClampAnglesorchestrationverified, proof one✓
0x50d7900x50d790unreachedinferred
0x50d810CCamera::FilterFacingprimitiveverified, proof one✓✓
0x50d900CCamera::ProbeSlopeprimitiveverified, proof one✓✓
0x50dbc0CCamera::ArmTerrainTiltprimitiveverified, proof one✓✓
0x50ddc0CameraClipCommandorchestrationverified, proof one✓
0x50de00CCamera::PlaceEyeprimitiveverified, proof one✓✓
0x50de90CCamera::ClipNearBoxprimitiveinferred✓✓
0x50e5300x50e530orchestrationinferred
0x50e570CCamera::SolveLimitsprimitiveverified, proof one✓✓
0x50e8d0CCamera::Updateprimitiveverified, proof one✓✓
0x50f0500x50f050orchestrationinferred
0x50f060CCamera::UpdateShotprimitiveverified, proof one✓
0x50f160CCamera::UpdateTransitionsprimitiveverified, proof one✓✓
0x50f710CCamera::MakeViewAnglesprimitiveverified, proof one✓✓
0x50f880CCamera::ArmPivotHeightprimitiveverified, proof one✓
0x50f8f0CCamera::SetTargetAlphaorchestrationverified, proof one✓
0x50f910CCamera::ToggleMouselookorchestrationverified, proof one
0x50f930CCamera::EnterMouselookThunkorchestrationverified, proof one
0x50f940CCamera::LeaveMouselookprimitiveverified, proof one
0x50f990CCamera::StoreViewprimitiveinferred✓
0x50fa30CCamera::SaveVieworchestrationinferred
0x50fa60CCamera::CycleViewunreachedinferred
0x50faa0CCamera::NextViewprimitiveinferred
0x50fac0CCamera::PrevViewprimitiveinferred
0x50fae0CCamera::ResetViewprimitiveinferred✓
0x50fb80CCamera::LoadViewSlotsprimitiveverified, proof one✓✓
0x50fbc0CCamera::ViewIsUncustomisedprimitiveverified, proof one✓✓
0x50fc30CCamera::ViewSmoothingAllowedprimitiveverified, proof one✓
0x50fc60CCamera::ZoomInprimitiveverified, proof one✓
0x50fcd0CCamera::ZoomOutprimitiveverified, proof one✓
0x50fd40CCamera::StartAxisprimitiveverified, proof one
0x50fd90CCamera::StopAxisprimitiveverified, proof one✓
0x50fdd0CameraLeaveFreelookprimitiveverified, proof one
0x50fe30CameraEnterFreelookprimitiveverified, proof one✓
0x50fee0CCamera::MouseTurnprimitiveverified, proof one✓
0x510120CCamera::ShiftPitchprimitiveinferred✓✓
0x5102b0CCamera::ShiftYawprimitiveverified, proof one✓✓
0x5103e0CCamera::CommitFacingprimitiveverified, proof one✓✓
0x5105a0TerrainTiltEnabledprimitiveverified, proof one✓
0x5105e0BobbingActiveprimitiveverified, proof one✓✓
0x510690PivotBiasAllowedprimitiveverified, proof one✓✓
0x5106f0BobbingNeedsClearprimitiveverified, proof one✓✓
0x510750DistanceNeedsMoveorchestrationverified, proof one✓
0x510760PitchNeedsMoveorchestrationverified, proof one✓
0x5107f0PivotBiasNeedsClearprimitiveverified, proof one✓✓
0x510850YawNeedsMoveprimitiveverified, proof one✓✓
0x510940AutoReturnAllowedprimitiveverified, proof one✓
0x510960CCamera::ArmAutoReturnprimitiveverified, proof one✓✓
0x510fd0CCamera::WantsAbsoluteFrameprimitiveinferred✓
0x511010HoldPivotBiasorchestrationverified, proof one✓
0x511040CCamera::SetTrackFlagprimitiveverified, proof one✓
0x5110f0CCamera::BeginBobbingprimitiveverified, proof one
0x511110CCamera::BeginBobDecayprimitiveverified, proof one✓
0x511170CCamera::SetBobbingorchestrationverified, proof one
0x5111b0CCamera::EndExternalMoveprimitiveverified, proof one✓
0x5111d0CCamera::BeginExternalMoveprimitiveverified, proof one✓
0x5111f0CCamera::SetExternalMoveorchestrationverified, proof one✓
0x511250CCamera::SetDrunkFovprimitiveverified, proof one✓✓
0x5112d0CCamera::IntegrateAxesprimitiveverified, proof one✓✓
0x511610EvaluateShakeorchestrationverified, proof one✓✓
0x5116e0ShakeFalloffprimitiveverified, proof one✓✓
0x511760CCamera::ApplyShakesprimitiveverified, proof one✓✓
0x511920CCamera::ComputeBobprimitiveverified, proof one✓✓
0x511a80CCamera::UpdateListenerLiquidprimitiveverified, proof one✓
0x511ad0CCamera::ClassifyWaterBandprimitiveverified, proof one✓✓
0x511bc0CCamera::OnFrameorchestrationverified, proof one✓
0x511c500x511c50orchestrationinferred
0x511c60CCamera::AddShakeRecordprimitiveverified, proof one✓
0x511d40CameraAddShakeprimitiveverified, proof one✓✓
0x511da0SetCameraTransportprimitiveinferred✓✓
0x511e90CCamera::BuildTransportRotationorchestrationverified, proof one
0x511f40CCamera::GetForwardprimitiveverified, proof one✓
0x511fe0CCamera::GetLeftprimitiveverified, proof one✓
0x512080CCamera::GetUpprimitiveverified, proof one✓
0x512120CCamera::ArmDistanceprimitiveverified, proof one✓✓
0x512200CCamera::BeginDistanceTransitionprimitiveverified, proof one✓✓
0x512270CCamera::ArmFovprimitiveverified, proof one✓✓
0x5123c0CCamera::BeginFovTransitionprimitiveverified, proof one✓✓
0x512490CCamera::ArmGroundPitchprimitiveverified, proof one✓✓
0x5125e0CCamera::BeginGroundPitchTransitionprimitiveverified, proof one✓✓
0x5126b0CCamera::ArmHeightprimitiveverified, proof one✓
0x512790CCamera::BeginHeightTransitionprimitiveinferred✓✓
0x512830CCamera::ArmPitchprimitiveverified, proof one✓✓
0x512980CCamera::BeginPitchTransitionprimitiveverified, proof one✓✓
0x512a50CCamera::ArmPivotBiasprimitiveverified, proof one✓✓
0x512ba0CCamera::BeginPivotBiasTransitionprimitiveverified, proof one✓✓
0x512c70CCamera::ArmYawprimitiveverified, proof one✓✓
0x512dc0CCamera::BeginYawTransitionprimitiveverified, proof one✓✓
0x512e90CCamera::SetViewprimitiveinferred✓✓
0x5132f00x5132f0primitiveinferred✓✓
0x5133200x513320orchestrationinferred✓
0x5133300x513330primitiveinferred✓
0x5134600x513460orchestrationinferred✓
0x5134700x513470primitiveinferred✓
0x5135700x513570primitiveinferred✓
0x5135b00x5135b0orchestrationinferred
0x5135c00x5135c0orchestrationinferred
0x5135d00x5135d0primitiveinferred

Globals 112

addressnametypeconfidence
0x80891cs_cameraHalfTurnconst floatverified, proof one
0x80899cs_float3fc00000const floatinferred
0x8089a0s_float3f000000const floatinferred
0x8089a4s_float42480000const floatinferred
0x8089a8s_float00000000At8089a8const floatinferred
0x8089acs_float3e2aaaabAt8089acconst floatinferred
0x8089b0s_float3fea6e99const floatinferred
0x8089b8s_cameraFovMaxconst floatverified, proof one
0x8089bcs_cameraFovMinconst floatverified, proof one
0x8089c0s_cameraSlopeLimitconst floatverified, proof one
0x8089c8s_float41700000const floatinferred
0x8089ccs_float3f555555const floatinferred
0x8089d0s_float3e638e39const floatinferred
0x8089d4s_float3f0e38e4const floatinferred
0x8089d8s_float3fc6d3f2const floatinferred
0x8089dcs_floatbfc6d3f2const floatinferred
0x808a00s_cameraGlideDistanceconst floatverified, proof one
0x808a04s_float3de38e39const floatinferred
0x808a08s_float40e66666const floatinferred
0x808a0cs_shakeNearRadiusconst floatverified, proof one
0x808a10s_shakeFarRadiusconst floatverified, proof one
0x808a28s_facingThresholdLowconst floatverified, proof one
0x808a2cs_facingThresholdHighconst floatverified, proof one
0x808a34s_float40555555const floatinferred
0x808a38s_float3fd55555At808a38const floatinferred
0x808a400x808a40const floatinferred
0x808a9cs_cameraAccessorVtablevoid *[4]verified, proof one
0x808ab0s_float3dc71c72const floatinferred
0x808ab4s_float40e38e39const floatinferred
0x808ab8s_float3e8e38e4const floatinferred
0x808abcs_cameraFadeThresholdconst floatverified, proof one
0x808ac0s_mouseTurnScaleYconst floatverified, proof one
0x808ac4s_mouseTurnScaleXconst floatverified, proof one
0x84f468s_cameraAxisNameschar *[3]verified, proof one
0x84f474s_cameraAxisAngleFlagsuint32_t[3]verified, proof one
0x84f4840x84f484uint32_tinferred
0x84f4880x84f488uint32_tinferred
0x84f4c4s_smoothSuffixesABchar *[2]verified, proof one
0x84f4ccs_smoothStyleschar *[3]verified, proof one
0x84f4d8s_smoothStatesAchar *[7]verified, proof one
0x84f4f40x84f4f4uint32_tinferred
0x84f4f8s_smoothDefaultsAchar *[42]verified, proof one
0x84f5a0s_smoothDefaultsBchar *[18]verified, proof one
0x84f5e80x84f5e8uint32_tinferred
0x84f610s_tiltSuffixeschar *[3]verified, proof one
0x84f6200x84f620uint32_tinferred
0x84f788s_cameraSettingsFileNameconst char *verified, proof one
0x84f78cs_cameraClipWorduint32_tverified, proof one
0x84f790s_cameraViewChecksvoid *[3]verified, proof one
0x84f7a0s_cameraFunctionsvoid *[42]verified, proof one
0x84f8480x84f848uint32_tinferred
0x84fbd0s_text150char[5]inferred
0x84fc0cs_textFiveZerochar[4]verified, proof one
0x84fdc0s_textCamerachar[7]verified, proof one
0x84fdc8s_textCameraViewchar[11]inferred
0x84ffecs_textCameraPitchchar[12]verified, proof one
0x84fff8s_textCameraDistancechar[15]verified, proof one
0xbe0cc0s_cvarFarclipvoid *verified, proof one
0xbe0cd0s_cvarCameraDivevoid *verified, proof one
0xbe0cd4s_cvarCameraHeightSmoothSpeedvoid *verified, proof one
0xbe0ce4s_cvarCameraPitchSmoothSpeedvoid *verified, proof one
0xbe0cecs_cvarCameraPivotDYMinvoid *verified, proof one
0xbe0cf4s_cvarCameraHeightIgnoreStandStatevoid *verified, proof one
0xbe0cf8s_cvarCameraBobbingFrequencyvoid *verified, proof one
0xbe0d00s_cvarCameraTerrainTiltStylesvoid *[90]verified, proof one
0xbe0e68s_cvarCameraViewvoid *verified, proof one
0xbe0e6cs_cvarCameraDistanceMaxvoid *verified, proof one
0xbe0e70s_cvarCameraSmoothvoid *[42]verified, proof one
0xbe0f1cs_cvarCameraCustomViewSmoothingvoid *verified, proof one
0xbe0f20s_pivotBiasAxisfloat[3]verified, proof one
0xbe0f2cs_cvarCameraSurfaceFinalPitchvoid *verified, proof one
0xbe0f30s_cvarCameraPivotDXMaxvoid *verified, proof one
0xbe0f44s_cvarCameraPitchSmoothMinvoid *verified, proof one
0xbe0f48s_cvarCameraPitchSmoothMaxvoid *verified, proof one
0xbe0f4cs_cvarCameraSurfacePitchvoid *verified, proof one
0xbe0f78s_cvarCameraPitchMoveSpeedvoid *verified, proof one
0xbe0f7cs_cvarCameraViewsvoid *[15]verified, proof one
0xbe0fb8s_cvarCameraYawSmoothMinvoid *verified, proof one
0xbe0fbcs_cvarCameraDistanceMoveSpeedvoid *verified, proof one
0xbe0fc0s_cvarCameraGroundSmoothSpeedvoid *verified, proof one
0xbe0fc4s_cvarCameraSmoothPitchvoid *verified, proof one
0xbe0fc8s_cvarCameraTargetSmoothSpeedvoid *verified, proof one
0xbe0fccs_cvarCameraYawSmoothMaxvoid *verified, proof one
0xbe0fd4s_cvarCameraTerrainTiltvoid *verified, proof one
0xbe0fd8s_cvarCameraSubmergePitchvoid *verified, proof one
0xbe0fdcs_cvarCameraSubmergeFinalPitchvoid *verified, proof one
0xbe0fe0s_cvarCameraDistanceMaxFactorvoid *verified, proof one
0xbe0fe8s_cvarCameraSmoothViewDatavoid *[18]verified, proof one
0xbe1038s_cvarCameraSmoothTimeMaxvoid *verified, proof one
0xbe103cs_shakeNearSquaredfloatverified, proof one
0xbe1040s_cvarMouseInvertPitchvoid *verified, proof one
0xbe104cs_cvarCameraSmoothYawvoid *verified, proof one
0xbe1050s_cvarCameraTerrainTiltTimeMinvoid *verified, proof one
0xbe1054s_cvarCameraTerrainTiltTimeMaxvoid *verified, proof one
0xbe105cs_cvarCameraSmoothTimeMinvoid *verified, proof one
0xbe1060s_shakeFarSquaredfloatverified, proof one
0xbe1064s_cvarCameraBobbingLRAmplitudevoid *verified, proof one
0xbe1068s_cvarCameraFoVSmoothSpeedvoid *verified, proof one
0xbe106cs_cvarCameraDistanceSmoothSpeedvoid *verified, proof one
0xbe1070s_cvarCameraYawSmoothSpeedvoid *verified, proof one
0xbe1074s_cvarCamerasmoothvoid *verified, proof one
0xbe1078s_cvarNearclipvoid *verified, proof one
0xbe1084s_cvarMouseInvertYawvoid *verified, proof one
0xbe1088s_cvarCameraWaterCollisionvoid *verified, proof one
0xbe1094s_cvarCameraYawMoveSpeedvoid *verified, proof one
0xbe1098s_cvarCameraSmoothStylevoid *verified, proof one
0xbe10a4s_cvarCameraPivotvoid *verified, proof one
0xbe10b0s_cvarCameraViewBlendStylevoid *verified, proof one
0xbe10bcs_cvarCameraBobbingSmoothSpeedvoid *verified, proof one
0xbe10c0s_cvarCameraBobbingvoid *verified, proof one
0xbe10c4s_cvarCameraSmoothTrackingStylevoid *verified, proof one
0xbe10c8s_cvarCameraBobbingUDAmplitudevoid *verified, proof one