Weapon HUD Parameters


About

1213

General

Parameter NameParameter DescriptionExample ValuePossible Parameters
item_visualWeapon hud modelanomaly_weapons\wpn_akm\wpn_akm_hud.ogfFile path relative to the gamedata\meshes folder
attach_place_idx00
1
zoom_hide_crosshairHide crosshair when aimingtruetrue or 1 or on - Yes
false or 0 or off - No

Custom UI

Parameter NameParameter DescriptionExample ValuePossible Parameters
custom_ui_funcLoads a UI element via Lua scripttasks_measure.get_UIFunction reference
custom_ui_boneCustom 3D UI bonewpn_bodyBone name
custom_ui_posCustom 3D UI position-0.0242,0.02947,-0.0219X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
custom_ui_rotCustom 3D UI rotation0,90,0X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left

Strafe

Info

Strafe works when moving the character (WASD)

Parameter NameParameter DescriptionExample ValuePossible Parameters
strafe_enabledEnabling HUD strafingtruetrue or 1 or on - Yes
false or 0 or off - No
strafe_hud_offset_posHUD offset position0,0.002,0X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
strafe_hud_offset_rotHUD offset rotation1,-0.75,4.5X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left
strafe_hud_offset_pos_16x9HUD offset position for 16x90,0.0023,0X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
strafe_hud_offset_rot_16x9HUD offset rotation for 16x91,-1,5X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left
strafe_aim_enabledEnabling HUD strafing in aimingtruetrue or 1 or on - Yes
false or 0 or off - No
strafe_aim_hud_offset_posHUD position in aiming0,0.002,0X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
strafe_aim_hud_offset_rotHUD rotation while aiming0,-0.3,1.25X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left
strafe_aim_hud_offset_pos_16x9HUD position while aiming 16x90,0.0023,0X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
strafe_aim_hud_offset_rot_16x9HUD rotation while aiming 16x90,-0.5,1.75X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left
strafe_transition_timetime to return to the original weapon position0.75
strafe_aim_transition_timetime to return to the original weapon position0.35
strafe_cam_limit_aim_factor0.9
strafe_cam_min_angle0

Inertia

Info

Inertia works when moving the mouse

Parameter NameParameter DescriptionExample ValuePossible Parameters
inertion_min_angle_aim0
inertion_offset_LRUDInertia offset0.011, 0.011, 0.01, 0.005L — (-) left / (+) right
R — (-) right / (+) left
U — (-) up / (+) down
D — (-) down / (+) up
inertion_offset_LRUD_aimHUD inertia when aim0.011, 0.011, 0.01, 0.005L — (-) left / (+) right
R — (-) right / (+) left
U — (-) up / (+) down
D — (-) down / (+) up

Visual recoil

Parameter NameParameter DescriptionExample ValuePossible Parameters
shooting_hud_effectEnable Visual Recoiltruetrue or 1 or on - Yes
false or 0 or off - No
shooting_max_LRUDMaximum LRUD position when firing0.005,0.005,0.005,0L — (-) left / (+) right
R — (-) right / (+) left
U — (-) up / (+) down
D — (-) down / (+) up
shooting_max_LRUD_aimMaximum LRUD position when firing while aim0.0025,0.0025,0,0L — (-) left / (+) right
R — (-) right / (+) left
U — (-) up / (+) down
D — (-) down / (+) up
shooting_backward_offset0.02,0.015
shooting_ret_speedtime to return to the original weapon position7.5
shooting_ret_aim_speedtime to return to the original weapon position15
shooting_min_LRUD_power0.01

Collision

Parameter NameParameter DescriptionExample ValuePossible Parameters
nearwall_dist_minMinimum distance at which the collision work
nearwall_dist_maxMaximum distance at which the collision work
nearwall_target_hud_fovHow much is the maximal shift of the hud fov
nearwall_speed_modShift speed

Movement layers

Parameter NameParameter DescriptionExample ValuePossible Parameters
movement_layer_0aim walkmovement\aim_walk.anmFile path and animation name
movement_layer_1aim crouchmovement\aim_walk.anmFile path and animation name
movement_layer_2crouchmovement\newwalk.anmFile path and animation name
movement_layer_3walkmovement\newwalk.anmFile path and animation name
movement_layer_4runmovement\newwalk.anmFile path and animation name
movement_layer_5sprintmovement\newrunreload.anmFile path and animation name

Empty click animation

Info

Weapon animation parameters when attempting to shoot with an empty magazine

Parameter NameParameter DescriptionExample ValuePossible Parameters
empty_click_anmWeapon animation when attempting to shoot with an empty magazinescript\misfire.anmFile path and animation name
empty_click_anm_speedAnimation speed2-
empty_click_anm_powerAnimation power1-

Item position and rotation

Parameter NameParameter DescriptionExample ValuePossible Parameters
item_positionItem (Weapon) position in relation to the arms0, 0, 0X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
item_orientationItem (Weapon) orientation in relation to the arms0, 0, 0X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left

HUD position and rotation

Parameter NameParameter DescriptionExample ValuePossible Parameters
hands_positionHUD position-0.072, -0.15, 0.1X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
hands_position_16x9HUD position for 16x9 monitors-0.072, -0.15, 0.1X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
hands_orientationHUD orientation0.55, 2.39, 0.15X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left
hands_orientation_16x9HUD orientation for 16x9 monitors0.55, 2.39, 0.15X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left

HUD aiming position and rotation

Parameter NameParameter DescriptionExample ValuePossible Parameters
aim_hud_offset_pos-0.0818, 0.05494, -0.25X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
aim_hud_offset_pos_16x9-0.0818, 0.05494, -0.25X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
aim_hud_offset_rot0.0407, 0.00886, -0.00495X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left
aim_hud_offset_rot_16x90.0407, 0.00886, -0.00495X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left

UGL position and rotation

Parameter NameParameter DescriptionExample ValuePossible Parameters
gl_hud_offset_pos-0.0491, 0.005, -0.155X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
gl_hud_offset_pos_16x9-0.0491, 0.005, -0.155X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
gl_hud_offset_rot-0.067, 0.0063, -0.02X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left
gl_hud_offset_rot_16x9-0.067, 0.0063, -0.02X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left

Lowered state

Parameter NameParameter DescriptionExample ValuePossible Parameters
safemode_anmWeapon animation when weapon goes to safe modescript\to_lower.anmPath and animation name
safemode_anm_speedAnimation speed1.2
safemode_anm_powerAnimation power1
safemode_anm2Weapon animation when weapon comes out of safe modescript\from_lower.anmPath and animation name
safemode_anm_speed2Animation speed1.3
safemode_anm_power2Animation power0.6
lowered_hud_offset_pos0, 0, 0X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
lowered_hud_offset_rot0, 0, 0X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left
lowered_hud_offset_pos_16x90, 0, 0X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
lowered_hud_offset_rot_16x90, 0, 0X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left

Leaning state

Parameter NameParameter DescriptionExample ValuePossible Parameters
lean_hud_offset_pos0, 0, 0X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
lean_hud_offset_rot0, 0, 0X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left
lean_hud_offset_pos_16x90, 0, 0X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
lean_hud_offset_rot_16x90, 0, 0X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left

Alternative aiming position and rotation

Parameter NameParameter DescriptionExample ValuePossible Parameters
aim_hud_offset_alt_pos0, 0, 0X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
aim_hud_offset_alt_rot0, 0, 0X — (+) yaw left / (-) yaw right
Y — (+) pitch up / (-) pitch down
Z — (-) roll right / (+) roll left
scope_zoom_factor_alt

Shell

Parameter NameParameter DescriptionExample ValuePossible Parameters
shell_bonebone which will be considered the origin of coordinates for the shell sprite in 1st person viewwpn_bodyBone name
shell_dirthe offset parameter of the shells after departure, in 1st person view0, 1, 0X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
shell_pointCoordinates of the bullets ejection point in 1st person view0, 0.064, 0.19X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward

Particles

Parameter NameParameter DescriptionExample ValuePossible Parameters
fire_bonewpn_bodyBone name
fire_bone2wpn_bodyBone name
fire_point0, 0.051841, 0.535482X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward
fire_point20, -0.011, 0.553X — (-) left / (+) right
Y — (+) up / (-) down
Z — (-) forward / (+) backward

Camera

Parameter NameParameter DescriptionExample ValuePossible Parameters
freeelook_z_offset_mulCamera displacement along the z-axis when the camera moves freely0.4Z — (-) forward / (+) backward
camera_move_epsilon
disp_min
speed_min
zoom_aim_disp_k
zoom_aim_speed_k
delta_time
cam_return_stop
zoom_rotate_time_k
hud_fov_addition_modifier

Sources

Source