Repository navigation
SpeedUI
🇬🇧 English · 🇩🇪 Deutsche Version
Source:
SpeedUI· Enfusion / Enforce Script. Verified againstscripts/Game/TAG_SpeedHUD.c,scripts/Game/SUI_SpeedUISettings.c.
A lightweight HUD that shows the current player or vehicle speed as a numeric readout plus a progress bar (speed relative to a max speed). Works in every game mode and for multiple players at once.
- Numeric readout, e.g.
45.3 km/h - Progress bar (
SpeedPlayeron foot /SpeedCarin a vehicle) - Units: km/h, m/s, kn (knots), mph
- Show/hide is controlled entirely through the Speed UI settings submenu (see §3) — there is no toggle keybind.
- The
TAG_SpeedHUDcomponent must be on the player prefab. On this repo it is attached toDefaultPlayerController.et. To add it to another player prefab: open the prefab in Workbench → Inspector → Components → + Add →TAG_SpeedHUD→ save. - Enable/disable the bar and the numeric readout (separately for on‑foot and vehicle) in Settings → Speed UI.
- On entering a vehicle the HUD switches to the vehicle bar/units automatically (vehicle entry is detected via
SCR_CompartmentAccessComponent.GetVehicle()).
Technical: on‑foot speed from CharacterControllerComponent.GetVelocity(), vehicle speed from vehicleEntity.GetPhysics().GetVelocity(), converted m/s → km/h (× 3.6). Update loop runs every 50 ms via CallLater (not EOnFrame, which is unreliable in a ScriptComponent).
In‑game settings submenu "Speed UI" (SUI_SpeedUISettings.layout, 6 spinboxes + transparency). Persisted immediately on every change to $profile:SpeedUI_Settings.txt (one value per line, in this order):
| Line | Setting | Values |
|---|---|---|
| 0 | SpeedUI_Enable_Bar |
0/1 — show progress bar (on foot) |
| 1 | SpeedUI_Enable_Units |
0/1 — show numeric readout (on foot) |
| 2 | SpeedUI_Units |
0=km/h, 1=m/s, 2=kn, 3=mph (on foot) |
| 3 | SpeedUI_Enable_Bar_v |
0/1 — show progress bar (vehicle) |
| 4 | SpeedUI_Enable_Units_v |
0/1 — show numeric readout (vehicle) |
| 5 | SpeedUI_Units_v |
unit index (vehicle) |
| 6 | SpeedUI_HUD_Transparency |
HUD transparency step |
Set in TAG_SpeedHUD.c: private float m_MaxSpeed = 50.0; — or at runtime speedHUD.SetMaxSpeed(100.0);.
SpeedUI has no server‑side configuration — it is a purely client‑side HUD. The only server‑side requirement is that the TAG_SpeedHUD component exists on the player prefab used by the mission.
| Symptom | Check |
|---|---|
| HUD not showing | Is the game mode assigned correctly? Is TAG_SpeedHUD on the player prefab? Does TAG_SpeedHUD.c reference the correct layout GUID? Are the bar/units enabled in Settings → Speed UI? Check script logs. |
Average speed, per‑vehicle max‑speed scaling, sound feedback, configurable HUD position/size.
SkyKing Mod Docs · EN (Page) / DE (Page-DE) · Keep both languages in sync with the source repos (SkyMap-X-DEV, SpeedUI, SIDC-Framework, Throw Back Grenade) and the companion tools (ATAKmaps, SIDC---C2---Command-Control).
🇬🇧 English
General
SkyMap-X (SMX)
- Overview & Usage
- Workflows (step by step)
- Camera functions (Fnc1/Fnc2, NV)
- Drones (WIP)
- SecondMap Bridge (map provider)
- Chat API (for mods)
- Screen Mirror & Tablet ID (WIP)
SpeedUI (SUI)
SIDC-Framework (SIDC)
Throw Back Grenade (TBG)
Companion tools
🇩🇪 Deutsch
Allgemein
SkyMap-X (SMX)
- Überblick & Bedienung
- Abläufe (Schritt für Schritt)
- Kamera-Funktionen (Fnc1/Fnc2, NV)
- Drohnen (in Arbeit)
- SecondMap-Bridge (Kartenanbieter)
- Chat-API (für Mods)
- Bildschirm-Spiegelung & Tablet-ID (in Arbeit)
SpeedUI (SUI)
SIDC-Framework (SIDC)
Throw Back Grenade (TBG)
Begleit-Tools