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

UTGame.UTMissionInfo


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
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212
00213
00214
00215
00216
00217
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229
00230
00231
00232
00233
00234
00235
00236
00237
00238
00239
00240
00241
00242
00243
/**
 * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved.
 */

class UTMissionInfo extends Object
	native;

enum EMissionStyle
{
	EMT_Duel,				// Duel
	EMT_Infiltration,		// DM
	EMT_DefendAndHold,		// TDM
	EMT_Extraction,			// CTF
	EMT_Battle,				// Warfare
};

/** Holds descriptions for all of the mission types */
var localized array<string> MissionTypeDesc;

/** Holds all of the information to describe a single objective in a mission */
struct native EObjectiveInformation
{
	/**  The Background image will be set to this */
	var() editinlineuse Texture2D Image;

	/**  Are we using custom coordinates */
	var() bool bCustomCoords;

	/**  The Map Coordinates */
	var() editinline TextureCoordinates ImageCoords;

	/**  	The Objective's Text */
	var() string Text;	//LOCALIZEME

	/**  The sound that get's played when this objective is highlighted */
	var() editinlineuse SoundCue AudioCue;

	/**  How long should the briefing menu focus on this objective? */
	var() float FocusTime;

};

/** Holds the information regarding a single mission */
struct native EMissionInformation
{
	// ------- Control

	/** A tag that defines the mission.  Can be used for quick lookup */
	var() int MissionID;

	// ------- General

    /** Title of the Mission */
	var() string Title;

	// ------- Gameplay Data

	/** The map to use */
	var() string Map;

	/** The URL */
	var() string URL;

	/** The faction of the opponent */
	var() string OpponentFaction;

	/** Teammates that are required on your team */
	var() array<string> RequiredTeammates;

	/** Teammates that are required to be against you */
	var() array<string> RequiredOpponents;

	/** bots that are precached for spawning through Kismet */
	var() array<string> PrecachedTeammates;
	var() array<string> PrecachedOpponents;

	// ------- Quick Info

	/** What type of match is this */
	var() EMissionStyle Style;

	/** Holds the Location name */
	var() string  Location;

	// ------- Globe / Selection

	/** Holds the BoneName of the point on the map to focus on when selecting this mission. */
	var() name GlobeBoneName;

	/** Which globe does this point reside on */
	var() name GlobeTag;

	/** How far from the Bone should the camera end up */
	var() float CameraDist;

	// ------- Mission Briefing

	/** The image to use */
	var() editinlineuse surface BriefingImage;

	/** Are we using custom coordinates */
	var() bool bCustomBriefingCoords;

	/** The Map Coordinates */
	var() TextureCoordinates BriefingCoords;

	/** The text to display at the briefing */
	var() string BriefingText;

	/** The sound to play when you enter the briefing menu */
	var() editinlineuse soundcue BriefingAudioCue;

	/** The text that will be set when we display objectives */
	var() string ObjectiveText;

	/** This holds information that will be displayed during travel */
	var() editinline array<EObjectiveInformation> Objectives;

	// ------- Transients

	/** This will be set by the menus */
	var transient StaticMeshComponent MapBeacon;
};

/** Holds all of the missions */
var() array<EMissionInformation> Missions;

/*********************************************************************************************
 Natives
********************************************************************************************* */

/**
 * Using a mission tag, find the assoicated mission index and return it.
 *
 * @Returns the mission index if the MissionTag is valid, otherwise returns INDEX_NONE
 */

native function int GetMissionIndex(int MissionID);
native function bool GetMission(int MissionID, out EMissionInformation Mission);

/*********************************************************************************************
 General functions
********************************************************************************************* */

function Convert(UTSeqObj_SPMission Mission)
{
/*
	local int i,j,o;
	local string s;
	local UTSeqObj_SPMission ChildMission;

	i = Missions.Length;

	Missions.Length = Missions.Length+1;

	S = string(i);
	Missions[i].MissionID = i;

	// Set the reverse link
	Mission.MissionID = i;

	Missions[i].Title = Mission.MissionInfo.MissionTitle;
	Mission.bCutSequence = Mission.MissionInfo.MissionRules.bCutSequence;
	Mission.bAutomaticTransition = Mission.MissionInfo.MissionRules.bAutomaticTransition;
	Missions[i].Map = Mission.MissionInfo.MissionRules.MissionMap;
	Missions[i].URL = Mission.MissionInfo.MissionRules.MissionURL;

	if ( Mission.MissionInfo.MissionRules.MapPoint == '' )
	{
		s = Mission.MissionInfo.MissionRules.MissionMap;
		s = Repl(s," ","_");
		s = "B_"$s;

		Missions[i].GlobeBoneName = name(s);

	}
	else
	{
		Missions[i].GlobeBoneName = Mission.MissionInfo.MissionRules.MapPoint;
	}

	if (Mission.MissionInfo.Missionrules.MapGlobeTag == '')
	{
		Missions[i].GlobeTag = 'Taryd';
	}
	else
	{
		Missions[i].GlobeTag = Mission.MissionInfo.MissionRules.MapGlobeTag;
	}


	Missions[i].CameraDist = Mission.MissionInfo.MissionRules.MapDist;
	Missions[i].BriefingImage = Mission.MissionInfo.MissionRules.MissionMapImage;
	Missions[i].bCustomBriefingCoords = Mission.MissionInfo.MissionRules.bCustomMapCoords;
	Missions[i].BriefingCoords = Mission.MissionInfo.MissionRules.MissionMapCoords;
	Missions[i].BriefingText = Mission.MissionInfo.MissionDescription;

	for (j=0;j<Mission.MissionInfo.Missionrules.Objectives.Length;j++)
	{
		o = Missions[i].Objectives.Length;
		Missions[i].Objectives.Length = Missions[i].Objectives.Length+1;

		Missions[i].Objectives[o].Image = Mission.MissionInfo.MissionRules.Objectives[j].BackgroundImg;
		Missions[i].Objectives[o].Text = Mission.MissionInfo.MissionRules.Objectives[j].Text;
	}

	`log("### Added:"@Missions[i].Title@Missions[i].MissionID@Mission.OutputLinks.Length);

	j = 0;
	for (i=0;i<Mission.MissionInfo.MissionProgression.Length;i++)
	{
		j = Mission.Progression.Length;
		Mission.Progression.Length = j + 1;

		Mission.Progression[j] = Mission.MissionInfo.MissionProgression[i];
	}

    Mission.bFixedup = true;
	for (j=0;j<Mission.OutputLinks.Length;j++)
	{
		if (Mission.OutputLinks[j].Links.Length >= 1 && Mission.OutputLinks[j].Links[0].LinkedOp != Mission )
		{
			ChildMission = UTSeqObj_SPMission( Mission.OutputLinks[j].Links[0].LinkedOp );
			if ( ChildMission != none && !ChildMission.bFixedup )
			{
				Convert(ChildMission);
			}
		}
	}
*/
}

defaultproperties
{
   MissionTypeDesc(0)="Duel"
   MissionTypeDesc(1)="Deathmatch"
   MissionTypeDesc(2)="Deathmatch"
   MissionTypeDesc(3)="Capture The Flag"
   MissionTypeDesc(4)="Warfare"
   Name="Default__UTMissionInfo"
   ObjectArchetype=Object'Core.Default__Object'
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: tr 31-1-2018 17:18:22.000 - Creation time: sk 18-3-2018 10:01:22.742 - Created with UnCodeX