[EN] Player Hud Tuner Guide - OpenXRay/xray-16 GitHub Wiki
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
- Open weapon ltx config, e.g.
gamedata\configs\weapons\assault\aks74u\huds.ltx
- Open log file, e.g.
_appdata_\logs\openxray_username.log
- Open game
- Hit left shift + 1 to begin adjusting position
- Hold Z and move mouse to adjust the X axis
- 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
- Copy those new values over to the weapon ltx file from step 1.
- Save weapon ltx file.
- Done!