This page is under construction
archives/bf1942/levels/Midway.rfa
bf1942/levels/Midway/Init.con
rem
rem **** Initialize level specific rendering settings.
rem

ShaderManager.setTextureParam envmap bf1942\levels\Midway\Textures\ENVMAP_G_.rcm
renderer.vertexFogEnable 1
renderer.setFogColorVec 0.812/0.832/0.921
renderer.globalLodPercent 1
renderer.globalAmbientColor 0.14/0.12/0.11
renderer.ambientColor 0.19/0.17/0.2
renderer.diffuseColor 0.5/0.48/0.4
renderer.specularColor 0.3/0.3/0.3
renderer.animatedMeshAmbientColor 0.3

rem *** DC Texture sets ***
textureManager.alternativePath DCTextures/Mapspecifc/Midway
textureManager.alternativePath DCTextures/GenericEnvironment/Desert
textureManager.alternativePath DCTextures/GenericEnvironment
rem *** DC_Extended texture sets ***
textureManager.alternativePath MODS/DC_Extended/Textures/Maps/Midway
textureManager.alternativePath MODS/DC_Extended/Textures/Cammo_Sea
textureManager.alternativePath MODS/DC_Extended/Textures/Cammo_Desert
textureManager.alternativePath MODS/DC_Extended/Textures/Default
textureManager.alternativePath MODS/DC_Extended/Textures
rem *** Map defaults ***
textureManager.alternativePath Texture/Pacific

shadow.shadowColor 0.6

Game.setViewDistance 500
Game.spawnPlayers 1

rem
rem *** Define flags ***
rem
ObjectTemplate.create Flag blueFlag
ObjectTemplate.team 1
ObjectTemplate.networkableInfo FlagBodyInfo
ObjectTemplate.radius 5
ObjectTemplate.TimeToReSpawn 10
ObjectTemplate.addTemplate AnimatedGeFlag

ObjectTemplate.create Flag redFlag
ObjectTemplate.team 2
ObjectTemplate.networkableInfo FlagBodyInfo
ObjectTemplate.radius 5
ObjectTemplate.TimeToReSpawn 10
ObjectTemplate.addTemplate AnimatedUkFlag

game.setTeamSkin 1 IraqSoldier
game.setTeamSkin 2 USSoldier

rem *** Gameplaymode and submode ***
var v_GamePlayMode
game.GamePlayMode -> v_GamePlayMode
var v_SubMode
game.CustomGameInfo -> v_SubMode

if v_SubMode == DAY2
run Objects/Day2_Spawners
elseif v_SubMode == DAY3
run Objects/Platform
run Objects/Day3_Spawners
elseif v_SubMode == INFANTRY
run Objects/Platform
run Objects/Day3_Spawners
elseif v_SubMode == SNIPER
run Objects/Platform
run Objects/Day3_Spawners
elseif v_SubMode == KNIFE
run Objects/Platform
run Objects/Day3_Spawners
elseif v_SubMode == PISTOL
run Objects/Platform
run Objects/Day3_Spawners
elseif v_SubMode == RACE
run Objects/Platform
run Objects/Day3_Spawners
ELSE
run Objects/spawners
endif

if v_SubMode == SNIPER

game.setKit 1 0 Iraq_Sniper0
game.setKit 1 1 Iraq_Sniper1
game.setKit 1 2 Iraq_Sniper2
game.setKit 1 3 Iraq_Sniper3
game.setKit 1 4 Iraq_Sniper4
game.setKit 1 5 Iraq_Sniper5

game.setKit 2 0 US_Sniper0
game.setKit 2 1 US_Sniper1
game.setKit 2 2 US_Sniper2
game.setKit 2 3 US_Sniper3
game.setKit 2 4 US_Sniper4
game.setKit 2 5 US_Sniper5

elseif v_SubMode == PISTOL

run Objects/Pistol_AI

game.setKit 1 0 Iraq_Pistol0
game.setKit 1 1 Iraq_Pistol1
game.setKit 1 2 Iraq_Pistol2
game.setKit 1 3 Iraq_Pistol3
game.setKit 1 4 Iraq_Pistol4
game.setKit 1 5 Iraq_Pistol5

game.setKit 2 0 US_Pistol0
game.setKit 2 1 US_Pistol1
game.setKit 2 2 US_Pistol2
game.setKit 2 3 US_Pistol3
game.setKit 2 4 US_Pistol4
game.setKit 2 5 US_Pistol5

elseif v_SubMode == KNIFE

run Objects/Knife_AI

game.setKit 1 0 Iraq_Knife0
game.setKit 1 1 Iraq_Knife1
game.setKit 1 2 Iraq_Knife2
game.setKit 1 3 Iraq_Knife3
game.setKit 1 4 Iraq_Knife4
game.setKit 1 5 Iraq_Knife5

game.setKit 2 0 US_Knife0
game.setKit 2 1 US_Knife1
game.setKit 2 2 US_Knife2
game.setKit 2 3 US_Knife3
game.setKit 2 4 US_Knife4
game.setKit 2 5 US_Knife5

elseif v_SubMode == DAY2

game.setKit 1 0 Iraq_Sniper_Light
game.setKit 1 1 Iraq_Assault_Grenadier
game.setKit 1 2 Iraq_AT
game.setKit 1 3 Iraq_HeavyAssault
game.setKit 1 4 Iraq_Support_Mortar
game.setKit 1 5 Iraq_SpecOps_Silent

game.setKit 2 0 US_Sniper_light
game.setKit 2 1 US_Assault_Grenadier
game.setKit 2 2 US_AT
game.setKit 2 3 US_HeavyAssault
game.setKit 2 4 US_Support_Mortar
game.setKit 2 5 US_SpecOps_Silent

elseif v_SubMode == DAY3

game.setKit 1 0 Iraq_Sniper_Light
game.setKit 1 1 Iraq_Assault_Rifleman
game.setKit 1 2 Iraq_AA_SMG
game.setKit 1 3 Iraq_HeavyAssault
game.setKit 1 4 Iraq_Support_Nades
game.setKit 1 5 Iraq_SpecOps_Carbine

game.setKit 2 0 US_Sniper_Light
game.setKit 2 1 US_Assault_Rifleman
game.setKit 2 2 US_AA_SMG
game.setKit 2 3 US_HeavyAssault
game.setKit 2 4 US_Support_Nades
game.setKit 2 5 US_SpecOps_Carbine

elseif v_GamePlayMode == GPM_CTF

game.setKit 1 0 Iraq_Sniper_Light
game.setKit 1 1 Iraq_Assault_Rifleman
game.setKit 1 2 Iraq_AA_SMG
game.setKit 1 3 Iraq_HeavyAssault
game.setKit 1 4 Iraq_Support_Nades
game.setKit 1 5 Iraq_CTF_SpecOps_Carbine

game.setKit 2 0 US_Sniper_Light
game.setKit 2 1 US_Assault_Rifleman
game.setKit 2 2 US_AA_SMG
game.setKit 2 3 US_HeavyAssault
game.setKit 2 4 US_Support_Nades
game.setKit 2 5 US_CTF_SpecOps_Carbine

else

game.setKit 1 0 Iraq_Sniper_Light
game.setKit 1 1 Iraq_Assault_Rifleman
game.setKit 1 2 Iraq_AA_SMG
game.setKit 1 3 Iraq_HeavyAssault
game.setKit 1 4 Iraq_Support_Nades
game.setKit 1 5 Iraq_SpecOps_Carbine

game.setKit 2 0 US_Sniper_Light
game.setKit 2 1 US_Assault_Rifleman
game.setKit 2 2 US_AA_SMG
game.setKit 2 3 US_HeavyAssault
game.setKit 2 4 US_Support_Nades
game.setKit 2 5 US_SpecOps_Carbine

endif

rem
rem *** Shader Default Color ***
rem
shaderManager.setDefaultShaderSolidColor 0.2/0.2/0.2

run Init/SkyAndSun
run Init/Terrain

water.specularEnable 1
water.texLayer1 texture/water07
water.texLayer2 texture/water08
water.normalMap texture/normalMap02
water.scrollDirectionNormalmap 1/1
water.scrollDirection1 1/0
water.scrollDirection2 0/1
water.specularColor 0.85/0.82/0.78
water.scrollLayer1 0.03
water.scrollLayer2 0.03
water.scrollNormalmap 0.01
water.specularStreakFactor 0.01
water.tileLayer1 0.5
water.tileLayer2 0.5
water.tileNormalmap 0.25
water.lightDirection -0.3/0.5/-0.65
water.color 0.75/0.8/0.8
water.deepColor 0.5/0.55/0.55
water.waterAlphaDepth 1.8
water.waterShallowAlpha 0

run Sounds/Environment

rem *** Set team 1 ***
game.setBeforeSpawnCameraPosition 1 2242.39/31.20/2044.79
rem *** Set team 2 ***
game.setBeforeSpawnCameraPosition 2 2242.39/31.20/2044.79
game.setLevelCheck 726189145