User Tools

Site Tools


ofp:missions:dtaext

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ofp:missions:dtaext [2011-08-15 09:21]
snakeman created dtaext initial page.
ofp:missions:dtaext [2011-08-15 11:01]
Line 1: Line 1:
-====== DtaExt ====== 
  
-DtaExt directory is used to have global music and sound files for campaigns, so the music/sound files are available in all missions. 
- 
-First you need to create "​DtaExt"​ dir in the campaign root, then you create "​Music"​ and "​Sound"​ dirs into "​DtaExt"​ dir. 
- 
-Then in the campaign root description.ext file you specify the configs like the following. 
- 
-Music: 
-<code cpp> 
-class cfgMusic 
-{ 
- class PMC_allflesh1 
- { 
- name = "PMC Baltic Command - Allflesh 1"; 
- sound[] = {"​\Music\allflesh1.ogg",​ db+0, 1}; 
-</​code>​ 
- 
-Sounds: 
-<code cpp> 
-class CfgSounds 
-{ 
- class ping1 
- { 
- name = "​ping1";​ 
- sound[] = {"​ping1.ogg",​ db+0, 1}; 
-</​code>​ 
- 
-Radio: 
-<code cpp> 
-class CfgRadio 
-{ 
- class Rfail 
- { 
- name = "​Rfail";​ 
- sound[] = {"​Rfail.ogg",​ db+0, 1}; 
-</​code>​ 
- 
-To illustrate as directories,​ it would look like this: 
-<​code>​ 
-<​campaign_root>​\DtaExt\Music\ 
-<​campaign_root>​\DtaExt\Sound\ 
-<​campaign_root>​\Missions\ 
-<​campaign_root>​\Scripts\ 
-</​code>​ 
-This way, you can play music and sounds specified here in any of your campaign missions without having to store (and dupe) the audio files in the mission dirs. It saves space, is much easier and nicer to use. 
ofp/missions/dtaext.txt ยท Last modified: 2011-08-15 11:01 (external edit)