|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
comfort pass, camera side (PLAN.md "Comfort pass", rows 1d, 1e, 2, 4, 5, 6, 8d). More...
Go to the source code of this file.
Functions | |
| float | LuxComfortBaseFovRad (float afStockFovRad, float afComfortFovDeg) |
| Base vertical FOV in radians. | |
| float | LuxComfortTurnSpeedScale (float afSpeedX, float afSpeedY, float afCapDeg) |
| Factor (<= 1) that brings a 2D angular speed (rad/s, pitch and yaw) under the forced turn cap. | |
| float | LuxComfortHeadMoveCap (float afTurnSpeed) |
| Scripted head moves (MovePlayerHeadPos) in m/s, proportional to the turn cap: Comfort (52.5 deg/s) -> 1 m/s, Reduced (105 deg/s) -> 2 m/s. | |
| float | LuxComfortAngularSpeedDeg (float afPrevPitch, float afPrevYaw, float afPitch, float afYaw, float afTimeStep) |
| Wrapped yaw / pitch change between two frames, in deg/s (for the dev bridge trace). | |
Variables | |
| static const float | kLuxCueFullRollRad = 0.35f |
| static const float | kLuxCueFullFovMul = 0.25f |
comfort pass, camera side (PLAN.md "Comfort pass", rows 1d, 1e, 2, 4, 5, 6, 8d).
Pure helpers on top of LuxComfort.h, unit tested in tests/cpp/test_comfort_cam.cpp. Every helper is the identity at Original values (multiplier 1, FOV 70), so the stock game is untouched; callers still guard with "if(mul < 1)" so stock floats never pass through them.
Definition in file LuxComfortCam.h.
|
inline |
Base vertical FOV in radians.
70 (the slider's vanilla value) means "whatever game.cfg says" (stock: 70), so Original keeps the exact stock float; any other choice is used as given. The aspect stays width / height, so a wider screen widens the view (Hor+).
Definition at line 16 of file LuxComfortCam.h.
|
inline |
Factor (<= 1) that brings a 2D angular speed (rad/s, pitch and yaw) under the forced turn cap.
The direction is kept, so a capped turn still heads straight at its target. 0 cap = 1.
Definition at line 24 of file LuxComfortCam.h.
|
inline |
Scripted head moves (MovePlayerHeadPos) in m/s, proportional to the turn cap: Comfort (52.5 deg/s) -> 1 m/s, Reduced (105 deg/s) -> 2 m/s.
0 = no cap (vanilla).
Definition at line 36 of file LuxComfortCam.h.
|
inline |
Wrapped yaw / pitch change between two frames, in deg/s (for the dev bridge trace).
Definition at line 44 of file LuxComfortCam.h.
|
static |
Definition at line 56 of file LuxComfortCam.h.
|
static |
Definition at line 57 of file LuxComfortCam.h.