This page is under construction
Archives/bf1942/levels/Midnight_Sun.rfa
bf1942/levels/Midnight_Sun/InitLogic.con
rem
rem *** Init Lighting and Fog ***
rem
renderer.vertexFogEnable 1
renderer.globalLodPercent 1
renderer.globalAmbientColor 0.08
renderer.ambientColor 0.067/0.087/0.118
renderer.animatedMeshAmbientColor 0.067/0.087/0.118
renderer.specularColor 0.44/0.41/0.44
renderer.diffuseColor 0.148/0.249/0.468
renderer.fogColorVec 0.082/0.117/0.164
Game.viewDistance 1024
renderer.fogstart 10
renderer.fogend 425
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 94 12 1710 1710
game.setBeforeSpawnCameraPosition 1 872/100/837
game.setBeforeSpawnCameraPosition 2 872/100/837
else
rem *** Conquest ***
if v_playMode == GPM_CQ
run Init/Terrain
game.setActiveCombatArea 94 12 1710 1710
game.setBeforeSpawnCameraPosition 1 872/100/837
game.setBeforeSpawnCameraPosition 2 872/100/837
else
rem *** Capture the Flag ***
if v_playMode == GPM_CTF
textureManager.addAlternativePath bf1942/levels/Midnight_Sun/Textures/CTF
run Init/Terrain_CTF
game.setActiveCombatArea 354 596 636 636
game.setBeforeSpawnCameraPosition 1 872/100/837
game.setBeforeSpawnCameraPosition 2 872/100/837
else
rem *** Team Death Match ***
if v_playMode == GPM_TDM
textureManager.addAlternativePath bf1942/levels/Midnight_Sun/Textures/TDM
run Init/Terrain_TDM
game.setActiveCombatArea 354 596 636 636
game.setBeforeSpawnCameraPosition 1 872/100/837
game.setBeforeSpawnCameraPosition 2 872/100/837
else
rem *** Default if somehow fails to read any gamemode at all ***
run Init/Terrain
game.setActiveCombatArea 94 12 1710 1710
game.setBeforeSpawnCameraPosition 1 872/100/837
game.setBeforeSpawnCameraPosition 2 872/100/837
endIf
rem
rem *** Common Terrain Code used by all game modes. ***
rem
Console.worldSize 2048
Terrain.ShadowAmbient 109/127/173
Terrain.ShadowBorderFadeTime 0.0025
Terrain.ShadowSamplingCullY 4
Shadow.shadowColor 0.348/0.418/0.598
rem *** Init Lighting and Fog ***
rem
renderer.vertexFogEnable 1
renderer.globalLodPercent 1
renderer.globalAmbientColor 0.08
renderer.ambientColor 0.067/0.087/0.118
renderer.animatedMeshAmbientColor 0.067/0.087/0.118
renderer.specularColor 0.44/0.41/0.44
renderer.diffuseColor 0.148/0.249/0.468
renderer.fogColorVec 0.082/0.117/0.164
Game.viewDistance 1024
renderer.fogstart 10
renderer.fogend 425
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 94 12 1710 1710
game.setBeforeSpawnCameraPosition 1 872/100/837
game.setBeforeSpawnCameraPosition 2 872/100/837
else
rem *** Conquest ***
if v_playMode == GPM_CQ
run Init/Terrain
game.setActiveCombatArea 94 12 1710 1710
game.setBeforeSpawnCameraPosition 1 872/100/837
game.setBeforeSpawnCameraPosition 2 872/100/837
else
rem *** Capture the Flag ***
if v_playMode == GPM_CTF
textureManager.addAlternativePath bf1942/levels/Midnight_Sun/Textures/CTF
run Init/Terrain_CTF
game.setActiveCombatArea 354 596 636 636
game.setBeforeSpawnCameraPosition 1 872/100/837
game.setBeforeSpawnCameraPosition 2 872/100/837
else
rem *** Team Death Match ***
if v_playMode == GPM_TDM
textureManager.addAlternativePath bf1942/levels/Midnight_Sun/Textures/TDM
run Init/Terrain_TDM
game.setActiveCombatArea 354 596 636 636
game.setBeforeSpawnCameraPosition 1 872/100/837
game.setBeforeSpawnCameraPosition 2 872/100/837
else
rem *** Default if somehow fails to read any gamemode at all ***
run Init/Terrain
game.setActiveCombatArea 94 12 1710 1710
game.setBeforeSpawnCameraPosition 1 872/100/837
game.setBeforeSpawnCameraPosition 2 872/100/837
endIf
rem
rem *** Common Terrain Code used by all game modes. ***
rem
Console.worldSize 2048
Terrain.ShadowAmbient 109/127/173
Terrain.ShadowBorderFadeTime 0.0025
Terrain.ShadowSamplingCullY 4
Shadow.shadowColor 0.348/0.418/0.598