Dual Wielding HUD

Introduction

The Dual Wielding HUD is a set of HUD elements for use with Alternate HUDs. It displays extra information while the player is holding a Dual Weapon, such as ammo displays for both sub-weapons, and mini-weapon-bars to assist in switching sub-weapons. (See HUD Elements.)

Requirements

Alternate HUDs (beta 1.4+)


Dual Wielding (v2.0 rc1 +)
http://www.ut2007world.com/forum/showthread.php?t=309

Installation

Copy the following files into your UT2004\System directory:

psUT2003HUD_Dual.u

psUT2003HUD_Dual.int

psUT2004HUD_Dual.u

psUT2004HUD_Dual.int

Alternate HUDs beta 1.4+:

No ini editing is necessary.

Alternate HUDs beta 1.25 and earlier:

Find your psAltHUD.ini file (part of Alternate HUDs), and insert the following five lines, under [psAltHUD.MutPSAlternateHUD]:

WeaponInfoNames=psUT2003HUD_Dual.psUT2003WeaponInfoDual;UT2003-style (Dual)

WeaponInfoNames=psUT2004HUD_Dual.psUT2004WeaponInfoDual;UT2004-style (Dual)

WeaponBarNames=psUT2003HUD_Dual.psUCDualWeaponBar;UC-style Dual Addon

PersonalInfoNames=psUT2003HUD_Dual.psUT2003PersonalInfoDual;UT2003-style (Dual)

PersonalInfoNames=psUT2004HUD_Dual.psUT2004PersonalInfoDual;UT2004-style (Dual)

(Users of previous versions may already have some of these lines.)

Usage

After installation, you should be able to select the "UT2003-style (Dual)" or “UT2004-style (Dual)” HUD elements in the Alternate HUDs config. If they don't show up in the Alternate HUDs config, find and change (not add) the following lines in your psAltHUD.ini file:

WeaponInfoClassName=psUT2003HUD_Dual.psUT2003WeaponInfoDual

PersonalInfoClassName=psUT2003HUD_Dual.psUT2003PersonalInfoDual

..or..

WeaponInfoClassName=psUT2004HUD_Dual.psUT2004WeaponInfoDual

PersonalInfoClassName=psUT2004HUD_Dual.psUT2004PersonalInfoDual

..and..

WeaponBarClassName=psUT2003HUD_Dual.psUCDualWeaponBar

This will set them as the current HUD element styles.

HUD Elements

UT2003-style (Dual) Personal Info

This is provided mostly so that the Weapon Info display can move the health out of the way to make room for the second ammo display. If you select this element without also selecting the UT2003-style (Dual) Weapon Info, the health display will always appear in the top-right-hand corner of the screen. Otherwise, the health display will only move to the top-right-hand corner while you are dual-wielding.

UT2003-style (Dual) Weapon Info

While you are dual-wielding, this HUD element shows you the ammo for both weapons, rather than just one of them. If you are using this HUD element, you should also use the UT2003-style (Dual) Personal Info, otherwise the health will overlap with the left-hand ammo display.

Option

Description

Stack Weapon Info

Custom weapon info (like the Assault Rifle's grenade count) cannot be forced to the left-hand side, so enable this to put it above the right-hand custom weapon info. If disabled, the Dual Weapon decides which weapon to display custom info for.

UC-style Dual Weapon Bar Add-on

Adds two UC-style weapon bars showing weapons which can be dual-wielded (with the current sub-weapon in the middle). The style of the usual weapon bar can be configured (see below). Many of the options available for the UC-style weapon bar are also available for the Dual Add-on. The extra weapon bars are only visible while the player is dual-wielding.

Option

Description

Base Weapon Bar

The style to use for the base weapon bar (for normal weapon selection).

Sub-weapon Bar Options

Cursor Move Rate

The rate at which the cursor moves when you change weapons (weapons to slide past per second).

Fade Delay

How many seconds to wait after fading in before fading out. (Put 0 to disable fading out)

Fade-in Rate

How long (in seconds) to take to fade in.

Fade-out Rate

How long (in seconds) to take to fade out.

Name Fade Time

How long (in seconds) to take to fade out the weapon name after switching sub-weapons. Set this to 0 to disable rendering of sub-weapon names.

Number of Weapons

How many weapons to show simultaneously.

Repeat Icons

Whether or not to loop the icons around.

Spacing

How far apart to space the weapon icons (1.0 is approximately 100% of the width/height of the weapon icon).

X Position

The position of the center of the weapon bar on the X-axis (as a decimal fraction). This is relative to the side of the screen the weapon bar is on, and can range from 0.0 to 0.4 (40%).

Y Position

The position of the center of the weapon bar on the Y-axis (as a decimal fraction).

UT2004-style (Dual) Personal Info

Similar to its UT2003-style relative, but in the style of the UT2004 HUD. The health and shield displays use the style of the Adrenaline display when they are in the top-right corner of the screen.

UT2004-style (Dual) Weapon Info

Similar to its UT2003-style relative, but in the style of the UT2004 HUD.

Option

Description

Stack Weapon Info

Similar to the equivalent option for the UT2003-style (Dual) Weapon Info.

Version History

Beta 0.5

Beta 0.9

Beta 1.1

v2.0

Known Bugs

UT2003-style (Dual) Weapon Info

UC-style Dual Weapon Bar Add-on

Credits

Programmed by Steve "PsychoticSteve" Gray (a.k.a. porkmanii)

Thanks to L4Y Duke for coming up with the layout for the ammo displays.