Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

UTGame.UTCharInfo


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
/**
 * Copyright 1998-2011 Epic Games, Inc. All Rights Reserved.
 * This object is used as a store for all character profile information.
 */
class UTCharInfo extends Object
	config(CharInfo);

/** information about AI abilities/personality (generally map directly to UTBot properties) */
struct CustomAIData
{
	var float Tactics, StrafingAbility, Accuracy, Aggressiveness, CombatStyle, Jumpiness, ReactionTime;
	/** full path to class of bot's favorite weapon */
	var string FavoriteWeapon;

	structdefaultproperties
	{
		Aggressiveness=0.4
		CombatStyle=0.2
	}
};

/** Structure defining a pre-made character in the game. */
struct CharacterInfo
{
	/** Short unique string . */
	var string CharID;

	/** This defines which 'set' of parts we are drawing from. */
	var string FamilyID;

	/** Friendly name for character. */
	var localized string CharName;

	/** Localized description of the character. */
	var localized string Description;

	/** Preview image markup for the character. */
	var string PreviewImageMarkup;

	/** Faction to which this character belongs (e.g. IronGuard). */
	var string Faction;

	/** AI personality */
	var CustomAIData AIData;
};

/** Aray of all complete character profiles, defined in UTCustomChar.ini file. */
var() config array<CharacterInfo>		Characters;

/** Array of info for each family (eg IRNM) */
var() array< class<UTFamilyInfo> >		Families;

var() config float LOD1DisplayFactor;
var() config float LOD2DisplayFactor;
var() config float LOD3DisplayFactor;

/** Find the info class for a particular family */
static final function class<UTFamilyInfo> FindFamilyInfo(string InFamilyID)
{
	local int i;

	for( i=0; i<default.Families.Length; i++ )
	{
		if( (default.Families[i] != None) && (default.Families[i].default.FamilyID == InFamilyID) )
		{
			return default.Families[i];
		}
	}
	return None;
}

/** Return a random family from the list of all families */
static final function string GetRandomCharClassName()
{
	return "UTGame."$string(default.Families[Rand(default.Families.length - 1)].name);
}

defaultproperties
{
	Families.Add(class'UTFamilyInfo_Liandri_Male')
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: to 6-1-2011 07:13:30.000 - Creation time: ti 22-3-2011 19:57:13.511 - Created with UnCodeX