This page is under construction
Archives/bf1942/levels/Operation_Harvest.rfa
bf1942/levels/Operation_Harvest/InitLogic.con
rem
rem *** Init Lighting and Fog ***
rem

renderer.vertexFogEnable 1
renderer.globalLodPercent 1
renderer.globalAmbientColor 0.1
renderer.ambientColor 0.3/0.33/0.35
renderer.animatedMeshAmbientColor 0.3/0.33/0.35
renderer.specularColor 0.36/0.36/0.33
renderer.diffuseColor 0.28/0.27/0.19
renderer.fogColorVec 0.496/0.523/0.520

Game.viewDistance 500

renderer.fogstart 20
renderer.fogend 470

rem
rem *** Initialize Game Mode Specific System ***
rem

Var v_is_coop
Var v_mode
Var v_playmode

game.gameMode -> v_mode
game.gamePlayMode -> v_playmode

echo False -> v_is_coop

if v_mode == GMSingle
echo True -> v_is_coop
endIf

if v_playmode == GPM_COOP
echo True -> v_is_coop
endIf

rem
rem *** Begin loading game mode specific Terrain. If not Skirmish and is CTF or TDM, it will load alternate Terrain/Minimap with smaller combat area ***
rem *** All other game modes load standard Terrain with normal minimap. ***
rem

rem *** COOP or Singleplayer ***
if v_is_coop == True

run Init/Terrain

game.setActiveCombatArea 276 338 1480 1480

game.setBeforeSpawnCameraPosition 1 712/54/687
game.setBeforeSpawnCameraPosition 2 712/54/687

else

rem *** Conquest ***
if v_playMode == GPM_CQ

run Init/Terrain

game.setActiveCombatArea 276 338 1480 1480

game.setBeforeSpawnCameraPosition 1 712/54/687
game.setBeforeSpawnCameraPosition 2 712/54/687

else

rem *** Capture the Flag ***
if v_playMode == GPM_CTF

textureManager.addAlternativePath bf1942/levels/Operation_Harvest/Textures/CTF

run Init/Terrain_CTF

game.setActiveCombatArea 680 720 968 968

game.setBeforeSpawnCameraPosition 1 1296.6/54/1180.3
game.setBeforeSpawnCameraPosition 2 1296.6/54/1180.3

else

rem *** Team Death Match ***
if v_playMode == GPM_TDM

textureManager.addAlternativePath bf1942/levels/Operation_Harvest/Textures/TDM

run Init/Terrain_TDM

game.setActiveCombatArea 680 720 968 968

game.setBeforeSpawnCameraPosition 1 1296.6/54/1180.3
game.setBeforeSpawnCameraPosition 2 1296.6/54/1180.3

else

rem *** Default if somehow fails to read any gamemode at all ***

run Init/Terrain

game.setActiveCombatArea 276 338 1480 1480

game.setBeforeSpawnCameraPosition 1 712/54/687
game.setBeforeSpawnCameraPosition 2 712/54/687

endIf

rem
rem *** Common Terrain Code used by all game modes. ***
rem

Console.worldSize 2048

Terrain.ShadowAmbient 123/131/136
Terrain.ShadowBorderFadeTime 0.0025
Terrain.ShadowSamplingCullY 4

Shadow.shadowColor 0.2/0.23/0.25