rem *** Generated by BF2Editor ***
if v_arg1 == BF2Editor

run Heightdata.con
LevelSettings.InitWorld
run Terrain.con BF2Editor
run Editor/StaticObjects.con BF2Editor
run Sounds.con
run Sky.con BF2Editor
run Weather.con BF2Editor
run Editor/GamePlayObjects.con host
UndergrowthEditable.create
Undergrowth.load Levels\juneau\
run Overgrowth/Overgrowth.con
Overgrowth.editorEnable 1
run AmbientObjects.con BF2Editor
run Water.con

else

run Heightdata.con
run Terrain.con v_arg2
run Sky.con v_arg2
run Weather.con v_arg2
run CompiledRoads.con
run Sounds.con
run tmp.con v_arg1
Undergrowth.load Levels\juneau\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con

endIf

rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------

gameLogic.setTeamName 1 "Pac"
gameLogic.setTeamName 2 "EU"

gameLogic.setTeamLanguage 1 "Russian"
gameLogic.setTeamLanguage 2 "English"

gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_Pac"
gameLogic.setTeamFlag 2 "flag_EU"

gameLogic.setKit 1 0 "Pac_Recon" "pac_light_soldier" "pac_heavy_soldier"
gameLogic.setKit 2 0 "EU_Recon" "us_light_soldier" "us_heavy_soldier"

gameLogic.setKit 1 1 "Pac_Assault" "pac_light_soldier" "pac_heavy_soldier"
gameLogic.setKit 2 1 "EU_Assault" "us_light_soldier" "us_heavy_soldier"

gameLogic.setKit 1 2 "Pac_Anti-Vehicle" "pac_light_soldier" "pac_heavy_soldier"
gameLogic.setKit 2 2 "EU_Anti-Vehicle" "us_light_soldier" "us_heavy_soldier"

gameLogic.setKit 1 3 "Pac_Support" "pac_light_soldier" "pac_heavy_soldier"
gameLogic.setKit 2 3 "EU_Support" "us_light_soldier" "us_heavy_soldier"

rem -------------------------------- Game Modes ---------------------------------

if v_arg1 == BF2Editor

LevelSettings.ClearGameModes
LevelSettings.AddGameMode gpm_coop 16
LevelSettings.AddGameMode gpm_cq 16
LevelSettings.AddGameMode gpm_cq 32
LevelSettings.AddGameMode gpm_sp 16
LevelSettings.AddGameMode gpm_ti 48
endIf

rem -----------------------------------------------------------------------------

gameLogic.setBeforeSpawnCamera 63/23/-42 -134/-28/0

if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix ""
else
texturemanager.customTextureSuffix ""
endIf
rem -----------------------------------------------------------------------------

gameLogic.MaximumLevelViewDistance 650
gameLogic.useColdBreath 1
GameLogic.RadialLevelIndex 6

rem -----------------------------------------------------------------------------

gameLogic.setDefaultNumberOfTicketsEx 16 1 1100
gameLogic.setDefaultNumberOfTicketsEx 16 2 1000
gameLogic.setDefaultNumberOfTicketsEx 32 1 2200
gameLogic.setDefaultNumberOfTicketsEx 32 2 2000
gameLogic.setDefaultNumberOfTicketsEx 64 1 3300
gameLogic.setDefaultNumberOfTicketsEx 64 2 3000
gameLogic.setDefaultNumberOfTicketsEx 128 1 500
gameLogic.setDefaultNumberOfTicketsEx 128 2 500
gameLogic.setDefaultTimeToNextAIWave 8
gameLogic.setTicketLossAtEndPerMin 200
gameLogic.setTicketLossPerMin 1 6
gameLogic.setTicketLossPerMin 2 12

rem -----------------------------------------------------------------------------

rem -----------------------------------------------------------------------------

renderer.globalStaticMeshLodDistanceScale 1
renderer.globalBundleMeshLodDistanceScale 1
renderer.globalSkinnedMeshLodDistanceScale 1
windManager.globalWindDirection 0/0/1
windManager.globalWindSpeed 0


