There is no spoon
Difference between revisions of "Legacy:EnhancedItems/INT Files"
m |
|||
Line 25: | Line 25: | ||
|<code>EnhancedItems.EnhancedWeapon</code> | |<code>EnhancedItems.EnhancedWeapon</code> | ||
|EnhancedWeapon subclass | |EnhancedWeapon subclass | ||
− | |" | + | |",Weapon Name,Group" |
− | |Registers weapons that are a subclass of EnhancedWeapon that should | + | |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) | |Packages (.U files) | ||
|<code>Engine.Info</code> | |<code>Engine.Info</code> | ||
− | | | + | |[[Legacy:Info (UT)|Info (UT)]] subclass (not used) |
|"Package Name,Mod Name,Short Mod Name" | |"Package Name,Mod Name,Short Mod Name" | ||
|Assigns a mod name and an optional short name to packages. | |Assigns a mod name and an optional short name to packages. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
Line 45: | Line 39: | ||
<pre> | <pre> | ||
[Public] | [Public] | ||
− | Object=(Name= | + | 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= | + | Object=(Name=RocketsUT.RUT_Redeemer,Class=Class,MetaClass=EnhancedItems.EnhancedWeapon,Description=",Redeemer") |
− | Object=(Name= | + | Object=(Name=RocketsUT.MercLauncher,Class=Class,MetaClass=Botpack.TournamentWeapon,Description="Mercury Missile Launcher,Descent weapons") |
− | Object=(Name= | + | Object=(Name=RocketsUT.IGMercLauncher,Class=Class,MetaClass=EnhancedItems.EnhancedWeapon,Description=",InstaGib Mercury Launcher") |
− | Object=(Name= | + | Object=(Name=Engine.GameInfo,Class=Class,MetaClass=Engine.Info,Description="RocketsUT,Rockets UT") |
− | Object=(Name=Engine.GameInfo,Class=Class,MetaClass=Engine.Info,Description=" | + | |
</pre> | </pre> | ||
This INT file will create the following menu structure in Arena Match: | 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: '' | + | 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 | + | 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 == | ==Other Uses For INT Files == | ||
Line 90: | Line 82: | ||
==Comments == | ==Comments == | ||
− | + | Feel free to ask for more details. :) |
Revision as of 14:32, 7 September 2002
Contents
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. :)