I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX

Legacy:Relics Patch

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search

Description[edit]

The Relics HUD Mutator Patch fixes the incompatibility of the RelicHUDMutator with most other HUD mutators.

Wormbo: I subclassed the RelicInventory classes and the RelicHUDMutator, so the relics use the NextHUDMutator variable of the Mutator class instead of the NextRHUDMutator variable of the HUDMutator class which was only a hack for UT v400 which didn't have NextHUDMutator. The replacement of the original classes with the modified ones is handled in a SpawnNotify subclass.

How To Use[edit]

Players just need to add the Relics HUD Patch to their list of active mutators.

Mod developers are allowed to include the RelicsPatch package in their mod as long as they give me credit and don't modify the package. Mods can also load the patch in their code by loading and spawning the RelicsPatch.RelicsPatch class. Don't worry about spawning it more than once, the patch will only allow one active copy of itself.

Use the following code to integrate the patch in your mod and make sure the RelicsPatch package is added to the ServerPackages list:

local class<SpawnNotify> PatchClass< SEMI >
 
PatchClass = class<SpawnNotify>(DynamicLoadObject("RelicsPatch.RelicsPatch", Class'Class', True);
Spawn(PatchClass);

To enable debug output to UnrealTournament.log add the following lines to RelicsPatch.int: (yeah, I'm abusing the localized keyword here... :D)

[RelicsPatch]
bDebug=True

Download[edit]

Latest update: 2003-07-24

via Wormbo's Homepage (ZIP and UMOD versions available)

Known Problems[edit]

This patch only adresses the problem with the HUD mutator used by the relics, i.e. when using other mods that use a HUDMutator (e.g. the SpellUNREAL mutator of the technoloG Bonus Pack) the relic icon might disappear while the patch is active.

Related Topics[edit]