Skip to content

[EN] Player Hud Tuner Guide

yohjimane edited this page Feb 22, 2024 · 1 revision

Overview

The player hud tune utility is a way to visually adjust various hud values. Source code can be found in player_hud_tune.cpp

Commands Overview

Key combination Action
left shift (hold) + 1 adjust position for hud model (item + arms)
left shift (hold) + 2 adjust rotation for hud model
left shift (hold) + 3 adjust position for hud item model
left shift (hold) + 4 adjust rotation for hud item model
left shift (hold) + 5 adjust fire point
left shift (hold) + 6 adjust fire point 2
left shift (hold) + 7 adjust shell point
left shift (hold) + 8 adjust position step, e.g. how much the value will increment/decrement.
left shift (hold) + 9 adjust rotation step
left shift (hold) + 0 exit interface
left ctrl (hold) + 0 select item 0, e.g. weapons
left ctrl (hold) + 1 select item 1, e.g. detectors
hold z + move mouse adjust X axis
hold x + move mouse adjust Y axis
hold c + move mouse adjust Z axis

Example usage to modify an existing weapon's parameters

  1. Open weapon ltx config, e.g. gamedata\configs\weapons\assault\aks74u\huds.ltx
  2. Open log file, e.g. _appdata_\logs\openxray_username.log
  3. Open game
  4. Hit left shift + 1 to begin adjusting position
  5. Hold Z and move mouse to adjust the X axis
  6. Check log file from step 2 (might need to close/open the file to refresh), it will contain new values, e.g.
hands_position_16x9				= -0.085000,-0.193000,0.092500
hands_orientation_16x9			= -0.400000,2.299999,-2.550000
  1. Copy those new values over to the weapon ltx file from step 1.
  2. Save weapon ltx file.
  3. Done!
Clone this wiki locally