Mostly Harmless

Unreal Wiki:Scratchpad

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 17:08, 21 June 2008 by OlympusMons (Talk | contribs)

Jump to: navigation, search

This page is for pasting code you want to show someone as an example or to get assistance with. This allows you to easily collaborate with someone to solve a problem, and allows easy comparisons of the edits.

You are free to remove any existing code from below, and paste your code between the <uscript> </uscript> tags. If the page hasn't been edited in the last few hours (the last edit timestamp is 2008-06-21 17:08:57), you can assume it isn't needed anymore and can be removed. A full edit history will be available, so don't worry about losing anything you removed.


// put your code here


struct MapExceptionVehicleSet
{
	var array< class<UTVehicleFactory> > Factories;
	var array< class<UTVehicleFactory> > SwapFactories;
};
 
struct MapExceptionSwapSet
{
	var string Map;
	var MapExceptionVehicleSet MapExctSwapSet[numTeams];
};
var config array<MapExceptionSwapSet> PerMapSwapSet;


PerMapSwapSet=
(
	Map="WAR-DOWNTOWN",
	MapExctSwapSet[0]=
	(
		(Factories="UTGameContent.UTVehicleFactory_Goliath",SwapFactories="Newtators.TSVehicleFactory_Goliath"),
		(Factories="UTGameContent.UTVehicleFactory_Paladin",SwapFactories="Newtators.TSVehicleFactory_Paladin")
	),
	MapExctSwapSet[1]=
	(
		(Factories="UTGameContent.UTVehicleFactory_Nightshade",SwapFactories="Newtators.TSVehicleFactory_Nightshade"),
		(Factories="UTGameContent.UTVehicleFactory_DarkWalker",SwapFactories="Newtators.TSVehicleFactory_DarkWalker")
	)
)