CfgMissions: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 2: Line 2:


== Classes ==
== Classes ==
== Params ==
{| class="wikitable sortable"
{| class="wikitable sortable"
! Intro- duced in
! Intro- duced in
Line 33: Line 32:
{
{
directory = "ca\missions\Scenarios\SP_WarWelcome.utes";
directory = "ca\missions\Scenarios\SP_WarWelcome.utes";
};
};</code>
You can also group your missions into subfolders
<code>class Missions
{
class PMC_Missions
{
{{codecomment|//--- Subfolder name}}
displayName="$STR_pmc_scenarios_name";
{{codecomment|//--- Subfolder overview}}
overview="ca\missions2_pmc\overview.html";
{{codecomment|//--- List of missions}}
class SPP01_PMC
{
directory = "ca\missions2_pmc\scenarios\SPP03.ProvingGrounds_PMC";
};
};
};
};</code>
};</code>
Line 38: Line 54:
<!----------------------------------------------------------->
<!----------------------------------------------------------->
{{Table Config Item|arma}}
{{Table Config Item|arma}}
==== MPMissions ====
==== Tutorial ====
| Multiplayer missions.
| Tutorial scenarios. Structure same as [[#Missions|Missions]].
 
<!----------------------------------------------------------->
{{Table Config Item|TKOH}}
==== TimeTrials ====
| Time Trial scenarios. Structure same as [[#Missions|Missions]].


<!----------------------------------------------------------->
<!----------------------------------------------------------->
{{Table Config Item|arma}}
{{Table Config Item|arma}}
==== Tutorial ====
==== MPMissions ====
| Tutorial scenarios. Structure same as [[#Missions|Missions]].
| Multiplayer missions.


<!----------------------------------------------------------->
<!----------------------------------------------------------->
Line 68: Line 89:
| Procedural missions. Exclusive for [[Armory]].
| Procedural missions. Exclusive for [[Armory]].
|}
|}


== Params ==
== Params ==
Following params works for all mission/campaign classes placed in parent classes listed above.
{| class="wikitable sortable"
! Intro- duced in
! Param name
! Type
! class="unsortable"| Description
! Compatibility
<!----------------------------------------------------------->
{{Table Config Item|arma}}
==== directory ====
|[[String]]
|
* Missions - path to [[Mission_Editor:_External#Mission_Folder|mission folder]] (where mission.sqm is placed)
* Campaigns - path to folder where campaign description.ext is placed
<code>directory = "ca\missions\Scenarios\SP_WarWelcome.utes";</code>
<!----------------------------------------------------------->
{{Table Config Item|TKOH}}
==== briefingName ====
|[[String]]
| Mission name overriding name set in [[Mission_Editor:_Intel#Name|Intel menu]].
| Not in Campaigns
<!----------------------------------------------------------->
{{Table Config Item|TKOH}}
==== overviewText ====
|[[String]]
| Custom [[Content_Overview|overview description]]
| Not in MPMissions and MPTemplates
<!----------------------------------------------------------->
{{Table Config Item|TKOH}}
==== overviewPicture ====
|[[String]]
| Path to custom [[Content_Overview|overview picture]]
| Not in MPMissions and MPTemplates
<!----------------------------------------------------------->
{{Table Config Item|TKOH}}
==== author ====
|[[String]]
| [[Content Authorship]] signature
| Not in MPMissions and MPTemplates
|}
You can also put any [[Description.ext]] param in mission class.
== Examples ==
{| class="wikitable collapsible collapsed" width="100%"
! [[Arma 2: Operation Arrowhead]] Missions
|-
| ''For simplicity, every parent class contains only one mission example''
|-
|
<code>class CfgMissions
<code>class CfgMissions
{
class Missions
{
class SP_Benchmark //03
{
directory = "ca\missions_e\scenarios\SPE1_Benchmark1.takistan";
};
};
class MPMissions
{
class MPE_HikeInTheHills
{
directory = "ca\missions_e\MPScenarios\MPE1_HikeInTheHills.Takistan";
};
};
class MPTemplates
{
class MTE_Deathmatch
{
directory = "ca\missions_e\MPTemplates\MPTE_Deathmatch";
}
};
class Templates
{
class ST_BasicEast
{
directory = "ca\missions_e\Templates\Basic.East";
};
};
class Campaigns
{
class Arrowhead
{
directory = "ca\missions_e\campaign";
};
};
class Tutorial
{
class TE01
{
directory = "ca\missions_e\Bootcamp\TE01_Basic_controls.Zargabad";
};
};
class Procedural
{
class Armory
{
onLoadMission = $STR_LIB_ONLOAD;
debriefing = 0;
playerKilledScript = "\ca\missions\armory\data\scripts\respawn.sqf";
onPauseScript = "\ca\missions\armory\data\scripts\pauseOnload.sqf";
onCheat = "[_this] call LIB_onCheatFunction";
};
};
};</code>
|}


{| class="wikitable collapsible collapsed" width="100%"
! [[Arma 2: Private Military Company]] Missions
|-
|
<code>class CfgMissions
{
class Missions
{
class PMC_Missions
{
displayName="$STR_pmc_scenarios_name";
overview="ca\missions2_pmc\overview.html";
class SPP01_PMC
{
directory = "ca\missions2_pmc\scenarios\SPP03.ProvingGrounds_PMC";
};
class SPP02_PMC
{
directory = "ca\missions2_pmc\scenarios\SPP02.ProvingGrounds_PMC";
};
class SPP03_PMC
{
directory = "ca\missions2_pmc\scenarios\SPP01.Takistan";
};
class SPPXX_PMC
{
directory = "ca\missions2_pmc\scenarios\SPP00.Zargabad";
};
};
};
class Templates
{
class SupplyDrop
{
directory = "ca\missions2_PMC\Templates\SupplyDrop.West";
};
};
};</code>
|}





Revision as of 09:44, 4 November 2011

CfgMissions contains list of all playable content available for players in ingame menus. It's core of missions exported in Addon Format.

Classes

Intro- duced in Param name Description

Template:Table Config Item

Campaigns

Campaign definitions

class Campaigns { class HarvestRed { directory = "ca\missions\campaign"; }; };

Template:Table Config Item

Missions

Singleplayer missions. Menu name can vary in different projects:

class Missions { class SP_WarWelcome { directory = "ca\missions\Scenarios\SP_WarWelcome.utes"; }; };

You can also group your missions into subfolders class Missions { class PMC_Missions { //--- Subfolder name displayName="$STR_pmc_scenarios_name"; //--- Subfolder overview overview="ca\missions2_pmc\overview.html"; //--- List of missions class SPP01_PMC { directory = "ca\missions2_pmc\scenarios\SPP03.ProvingGrounds_PMC"; }; }; };

Template:Table Config Item

Tutorial

Tutorial scenarios. Structure same as Missions.

Template:Table Config Item

TimeTrials

Time Trial scenarios. Structure same as Missions.

Template:Table Config Item

MPMissions

Multiplayer missions.

Template:Table Config Item

Templates

Singleplayer templates. Accessable through <My Missions> in SP missions list.
class Templates
{
	class ST_BasicEast
	{
		directory = "ca\missions\Templates\Basic.East";
	};
};

Template:Table Config Item

MPTemplates

Multiplayer templates. Accessable through <My Missions> in MP missions list.

Template:Table Config Item

Procedural

Procedural missions. Exclusive for Armory.


Params

Following params works for all mission/campaign classes placed in parent classes listed above.

Intro- duced in Param name Type Description Compatibility

Template:Table Config Item

directory

String
  • Missions - path to mission folder (where mission.sqm is placed)
  • Campaigns - path to folder where campaign description.ext is placed

directory = "ca\missions\Scenarios\SP_WarWelcome.utes";

Template:Table Config Item

briefingName

String Mission name overriding name set in Intel menu. Not in Campaigns

Template:Table Config Item

overviewText

String Custom overview description Not in MPMissions and MPTemplates

Template:Table Config Item

overviewPicture

String Path to custom overview picture Not in MPMissions and MPTemplates

Template:Table Config Item

author

String Content Authorship signature Not in MPMissions and MPTemplates

You can also put any Description.ext param in mission class.


Examples