My program doesn't have bugs. It just develops random features.

Legacy:EnhancedItems/INT Files

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

Weapon Declaration In EnhancedItems-based Mods

Item MetaClass Name Description Explanation
Weapons (Unreal) Engine.Weapon Weapon (UT) subclass "Weapon Name,Group" Registers weapons that are not a subclass of TournamentWeapon. Used by Arena Match and Advanced Weapon Priority.
Weapons (Unreal Tournament) Botpack.TournamentWeapon TournamentWeapon subclass "Weapon Name,Group" Registers weapons that are a subclass of [[TournamentWeapon
Weapons (EnhancedItems mods) EnhancedItems.EnhancedWeapon EnhancedWeapon subclass ",Weapon Name,Group" Registers weapons that are a subclass of EnhancedWeapon that should not appear in the weapon priority list. (The first comma in the description really is supposed to be there.)
Packages (.U files) Engine.Info Info (UT) subclass (not used) "Package Name,Mod Name,Short Mod Name" Assigns a mod name and an optional short name to packages.

Sample INT File

[Public]
Object=(Name=RocketsUT.ESLauncher,Class=Class,MetaClass=Botpack.TournamentWeapon,Description="Earth Shaker Launcher,Descent weapons")
Object=(Name=RocketsUT.BSLauncher,Class=Class,MetaClass=Botpack.TournamentWeapon,Description="Black Shark Launcher,Descent weapons")
Object=(Name=RocketsUT.RUT_Redeemer,Class=Class,MetaClass=EnhancedItems.EnhancedWeapon,Description=",Redeemer")
Object=(Name=RocketsUT.MercLauncher,Class=Class,MetaClass=Botpack.TournamentWeapon,Description="Mercury Missile Launcher,Descent weapons")
Object=(Name=RocketsUT.IGMercLauncher,Class=Class,MetaClass=EnhancedItems.EnhancedWeapon,Description=",InstaGib Mercury Launcher")
Object=(Name=Engine.GameInfo,Class=Class,MetaClass=Engine.Info,Description="RocketsUT,Rockets UT")

This INT file will create the following menu structure in Arena Match:

  • Rockets UT
    • InstaGib Mercury Launcher
    • Redeemer
  • Rockets UT (Descent weapons)
    • Black Shark Launcher
    • Mercury Missile Launcher
    • Earth Shaker Launcher

The same INT file only creates entries in the Advanced Weapon Priority for the weapons declared with MetaClass=Botpack.TournamentWeapon: Black Shark Launcher, Earth Shaker Launcher and Mercury Missile Launcher.

All five weapons are subclasses of EnhancedWeapon, but the RUT_Redeemer uses the priority setting of Botpack.WarheadLauncher and IGMercLauncher uses the priority setting of MercLauncher. (This can be set in defaultproperties of EnhancedWeapon classes.)

Other Uses For INT Files

Dynamically Adding Tabs To A Config Window

The "Configure Wormbo's Mods" window uses INT files to load the tabs displayed in it. This window is used by the Enhanced Items mod, Enhanced Relics, Combo InstaGib and some other mods.

The mod comes with the EIConfigWindow package (which contains the EIPageWindow class) and has an INT file entry like this:

Object=(Name=ComboInstaGib.EIConfigPageCIGDM,Class=Class,MetaClass=EIConfigWindow.EIPageWindow,Description="Combo InstaGib,150,50")

Description consists of "Caption,Minimum Width,Minimum Height".

The same method is used for Rockets UT, the BUF Bonuspack and the upcoming version of Arena Match.


Related Topics


Comments

Feel free to ask for more details. :)