First of all, I just want to say that I hate writing script, but it makes me feel smart so I will explain it in detail to you. The script below is a .UPL file found in the ut2004/systems folder labeled my characters name “AustinXyle.UPL”
[Public]
Player=(DefaultName="Austin Xyle",Race="Hellions",
Mesh=AustinXyle.Xyle,species=xGame.SPECIES_Merc,
BodySkin=AustinXyleTexturePackage.texture,FaceSkin= AustinXyleTexturePackage.texture ,
Portrait= AustinXyleTexturePackage.BioPic ,Text=XPlayers.xyleAA,Sex=Male,
Menu="",CombatStyle=+0.5,Tactics=+0.5,StrafingAbility=+0.5,
Accuracy=+0.9, Jumpiness=+0.9,BotUse=3,TeamFace=1,BotUse=5,
FavoriteWeapon=xWeapons.RocketLauncher)
These lines of code tell the game where to look for the packages and some basic info on your character. Some lines are pretty explanatory like “Sex=Male” some lines need more explaining.
Player=(DefaultName="Austin Xyle"
This line defines your characters name inside the game like bobby or Marcus
Mesh=AustinXyle.Xyle
This line tells the engine what package to look for “x” model
In other words Mesh=YourAnimationpackageName.ModelsName
BodySkin=AustinXyleTexturePackage.texture,FaceSkin= AustinXyleTexturePackage.texture
This line of code is telling the engine what texture package to look for your textures. A lot of UT 2004 characters use a texture for the face and one for the body. Since I only used one for both, I just used the same path to avoid a crash.
Portrait= AustinXyleTexturePackage.BioPic
This line of code tells the engine what image to use for your character on the player selection screen and GUI actions. I didn’t explain that a lot because its any image you want 256x512 to represent your character (it must be included in your texture package)
Text=XPlayers.xyleAA
This line directs us to another file called XPlayers.INT in the same ut2004/systems folder. This file already exists. We just need to add a line of code at the bottom of it describing our player. That line of code is this:
xyleAA="Name: Austin_Xyle|Age: 20|Race: Human||Data:|”YourStory”
Open this code in notepad; write the code at the bottom then save.
*Note: there are no spaces or indentations in code, its one long line of code. |