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

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

else

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

endIf

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

gameLogic.setTeamName 1 "Spetz"
gameLogic.setTeamName 2 "Chinsurgent"

gameLogic.setTeamLanguage 1 "Russian"
gameLogic.setTeamLanguage 2 "Rebel"

gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_ru"
gameLogic.setTeamFlag 2 "flag_re"

gameLogic.setKit 1 0 "Spetsnaz_Specops" "spetz_soldier"
gameLogic.setKit 2 0 "chinsurgent_Specops" "chinsurgent_soldier"

gameLogic.setKit 1 1 "Spetsnaz_Sniper" "spetz_soldier"
gameLogic.setKit 2 1 "chinsurgent_Sniper" "chinsurgent_soldier"

gameLogic.setKit 1 2 "Spetsnaz_Assault" "spetz_heavy_soldier"
gameLogic.setKit 2 2 "chinsurgent_Assault" "chinsurgent_heavy_soldier"

gameLogic.setKit 1 3 "Spetsnaz_Support" "spetz_heavy_soldier"
gameLogic.setKit 2 3 "chinsurgent_Support" "chinsurgent_heavy_soldier"

gameLogic.setKit 1 4 "Spetsnaz_Engineer" "spetz_soldier"
gameLogic.setKit 2 4 "chinsurgent_Engineer" "chinsurgent_soldier"

gameLogic.setKit 1 5 "Spetsnaz_Medic" "spetz_soldier"
gameLogic.setKit 2 5 "chinsurgent_Medic" "chinsurgent_soldier"

gameLogic.setKit 1 6 "Spetsnaz_AT" "spetz_heavy_soldier"
gameLogic.setKit 2 6 "chinsurgent_AT" "chinsurgent_heavy_soldier"

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

gameLogic.setBeforeSpawnCamera -674/29/323 60/2/0

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

GameLogic.MaximumLevelViewDistance 500

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

gameLogic.setDefaultNumberOfTicketsEx 16 1 110
gameLogic.setDefaultNumberOfTicketsEx 16 2 100
gameLogic.setDefaultNumberOfTicketsEx 32 1 220
gameLogic.setDefaultNumberOfTicketsEx 32 2 200
gameLogic.setDefaultNumberOfTicketsEx 64 1 330
gameLogic.setDefaultNumberOfTicketsEx 64 2 300
gameLogic.setDefaultNumberOfTicketsEx 128 1 50
gameLogic.setDefaultNumberOfTicketsEx 128 2 50
gameLogic.setDefaultTimeToNextAIWave 8
gameLogic.setTicketLossAtEndPerMin 1000
gameLogic.setTicketLossPerMin 1 10
gameLogic.setTicketLossPerMin 2 10

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

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

renderer.globalStaticMeshLodDistanceScale 1
renderer.globalBundleMeshLodDistanceScale 1
renderer.globalSkinnedMeshLodDistanceScale 1
