I'm a doctor, not a mechanic

UE3:UTCharInfo (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 11:47, 6 November 2009 by (Talk)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
UDK Object >> UTCharInfo
Package: 
UTGame

This object is used as a store for all character profile information.

Properties

Property group 'UTCharInfo'

Characters

Type: array<CharacterInfo>

Modifiers: config

Aray of all complete character profiles, defined in UTCustomChar.ini file.

Default value, index 0:

Member Value
AIData
Member Value
Accuracy 0.4
FavoriteWeapon "UTGame.UTWeap_Stinger"
Jumpiness 0.25
StrafingAbility 1.0
Tactics 1.0
bLocked True
CharID "A"
CharName "Matrix"
Description "<Strings:UTGameUI.CharLocData.Matrix_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head04>"

Default value, index 1:

Member Value
CharID "C"
CharName "Aspect"
Description "<Strings:UTGameUI.CharLocData.Aspect_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head02>"

Default value, index 2:

Member Value
CharID "B"
CharName "Cathode"
Description "<Strings:UTGameUI.CharLocData.Cathode_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head01>"

Default value, index 3:

Member Value
CharID "D"
CharName "Enigma"
Description "<Strings:UTGameUI.CharLocData.Enigma_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head03>"

Default value, index 4:

Member Value
bLocked True
CharID "F"
CharName "Collossus"
Description "<Strings:UTGameUI.CharLocData.Collossus_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head02>"

Default value, index 5:

Member Value
AIData
Member Value
Aggressiveness 0.5
FavoriteWeapon "UTGame.UTWeap_FlakCannon"
bLocked True
CharID "I"
CharName "Entropy"
Description "<Strings:UTGameUI.CharLocData.Entropy_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head01>"

Default value, index 6:

Member Value
bLocked True
CharID "H"
CharName "Monarch"
Description "<Strings:UTGameUI.CharLocData.Monarch_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head04>"

Default value, index 7:

Member Value
bLocked True
CharID "K"
CharName "OSC"
Description "<Strings:UTGameUI.CharLocData.OSC_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head03>"

Default value, index 8:

Member Value
bLocked True
CharID "J"
CharName "Evolution"
Description "<Strings:UTGameUI.CharLocData.Evolution_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head02>"

Default value, index 9:

Member Value
bLocked True
CharID "G"
CharName "Mihr"
Description "<Strings:UTGameUI.CharLocData.Mihr_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head03>"

Default value, index 10:

Member Value
AIData
Member Value
Aggressiveness 0.7
FavoriteWeapon "UTGame.UTWeap_Shockrifle"
bLocked True
CharID "E"
CharName "Raptor"
Description "<Strings:UTGameUI.CharLocData.Raptor_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head01>"

Default value, index 11:

Member Value
bLocked True
CharID "L"
CharName "Syntax"
Description "<Strings:UTGameUI.CharLocData.Syntax_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head04>"

Default value, index 12:

Member Value
bLocked True
CharID "M"
CharName "Torque"
Description "<Strings:UTGameUI.CharLocData.Torque_Description>"
Faction "Liandri"
FamilyID "LIAM"
PreviewImageMarkup "<Images:UI_Portrait.Character.UI_Portrait_Character_Liandri_Male_Head04>"

Factions

Type: array<FactionInfo>

Modifiers: config

Array of top-level factions (eg Iron Guard).

Default value:

Member Value
Description "<Strings:UTGameUI.FactionData.Liandri_Description>"
Faction "Liandri"
FriendlyName "<Strings:UTGameUI.FactionData.Liandri_FriendlyName>"
PreviewImageMarkup "<Images:UI_Portrait.Faction.UI_CH_Liandri_Team>"

Families

Type: array<class<UTFamilyInfo> >

Array of info for each family (eg IRNM)

Default value: Class'UTGame.UTFamilyInfo_Liandri_Male'

LOD1DisplayFactor

Type: float

Modifiers: config


Default value: 0.4

LOD2DisplayFactor

Type: float

Modifiers: config


Default value: 0.2

LOD3DisplayFactor

Type: float

Modifiers: config


Default value: 0.075

PortraitSetup

Type: CharPortraitSetup

Modifiers: config


Default value:

Member Value
CamFOV 20.0
CenterOnBone 'b_head'
DirLight2Brightness 20.0
DirLight2Color
Member Value
A 0
B 240
G 180
R 150
DirLight2Rot
Member Value
Pitch 57344
Roll 0
Yaw 40049
DirLight3Brightness 1.0
DirLight3Color
Member Value
A 0
B 255
G 230
R 255
DirLight3Rot
Member Value
Pitch 57344
Roll 0
Yaw 57344
DirLightBrightness 2.0
DirLightColor
Member Value
A 0
B 255
G 255
R 255
DirLightRot
Member Value
Pitch 57344
Roll 0
Yaw 9102
MeshOffset
Member Value
X 50.0
Y 0.0
Z -2.0
MeshRot
Member Value
Pitch 0
Roll 0
Yaw -36408
PortraitBackgroundTranslation
Member Value
X 3000.0
Y 0.0
Z 0.0
SkyBrightness 0.4
SkyColor
Member Value
A 0
B 255
G 222
R 200
SkyLowerBrightness 0.2
SkyLowerColor
Member Value
A 0
B 200
G 230
R 255
TextureSize 256

Internal variables

PortraitBackgroundMesh

Type: StaticMesh

StaticMesh to use for background of portrait.

Default value: StaticMesh'UI_CharPortraits.Mesh.S_UI_CharPortraits_Cube'

UnlockableChars

Type: array<string>

Array used to map between bits stored in profile and unlocked chars.

Default value, index 0: "Lauren"

Default value, index 1: "Ariel"

Default value, index 2: "Scythe"

Default value, index 3: "Akasha"

Default value, index 4: "Alanna"

Default value, index 5: "Loque"

Default value, index 6: "Damian"

Default value, index 7: "Kragoth"

Default value, index 8: "Malakai"

Default value, index 9: "Matrix"

Structs

CharacterInfo

Modifiers: native

Structure defining a pre-made character in the game.

string CharID 
Short unique string .
string FamilyID 
This defines which 'set' of parts we are drawing from.
string CharName 
Friendly name for character.
string Description 
Localized description of the character.
string PreviewImageMarkup 
Preview image markup for the character.
string Faction 
Faction to which this character belongs (e.g. IronGuard).
CustomAIData AIData 
AI personality
string ExtraInfo 
any extra properties of this character (for mod use)
bool bLocked 
whether this character shows up in menus by default
bool bRestrictInSinglePlayer 
If true, this character will never be used for a random character in a single player game

CharPortraitSetup

Modifiers: native

Structure defining setup for capturing character portrait bitmap.

name CenterOnBone 
Name of bone to center view on.
Object.Vector MeshOffset 
Translation of mesh (applied on top of CenterOnBone alignment.
Object.Rotator MeshRot 
Rotation of mesh.
float CamFOV 
FOV of camera.
Object.Rotator DirLightRot 
Directional light rotation.
float DirLightBrightness 
Directional light brightness.
Object.Color DirLightColor 
Directional light color.
Object.Rotator DirLight2Rot 
Directional light rotation.
float DirLight2Brightness 
Directional light brightness.
Object.Color DirLight2Color 
Directional light color.
Object.Rotator DirLight3Rot 
Directional light rotation.
float DirLight3Brightness 
Directional light brightness.
Object.Color DirLight3Color 
Directional light color.
float SkyBrightness 
Skylight brightness.
Object.Color SkyColor 
Sky light color
float SkyLowerBrightness 
Sky lower brightness
Object.Color SkyLowerColor 
Sky lower colour
Object.Vector PortraitBackgroundTranslation 
Position of background mesh
int TextureSize 
Size of texture to render to

CustomAIData

Modifiers: native

information about AI abilities/personality (generally map directly to UTBot properties)

float Tactics 
float StrafingAbility 
float Accuracy 
float Aggressiveness 
float CombatStyle 
float Jumpiness 
float ReactionTime 
string FavoriteWeapon 
full path to class of bot's favorite weapon

Default values:

Property Value
Aggressiveness 0.4
CombatStyle 0.2

FactionInfo

Modifiers: native

Structure defining information about a particular faction (eg. Ironguard)

string Faction 
string PreviewImageMarkup 
Preview image markup for the faction.
string FriendlyName 
Localized version of the faction name to display in the UI.
string Description 
Description of the faction.

Functions

Static native functions

FindCharacter

static native final function CharacterInfo FindCharacter (string InFaction, string InCharID)

Given a faction and character ID, find the character that defines all its parts.

FindFamilyInfo

static native final function class<UTFamilyInfoFindFamilyInfo (string InFamilyID)

Find the info class for a particular family

LoadFamilyAssets

static native final function UTCharFamilyAssetStore LoadFamilyAssets (string InFamilyID, bool bBlocking, bool bArms)

This loads all assets associated with a custom character family (based on ini file) and create a UTCharFamilyAssetStore which is used to keep refs to all the required assets.

Parameters:

  • bBlocking - If true, game will block until all assets are loaded.
  • bArms - Load package containing arm mesh for this family

Other static functions

GetRandomCharClassName

static final function string GetRandomCharClassName ()

Return a random family from the list of all families