This page is under construction
Archives/bf1942/Levels/Midnight_at_Berlin.rfa
bf1942/levels/Midnight_at_Berlin/Init/Objects.con
ObjectTemplate.create SimpleObject NULL_OBJECT
ObjectTemplate.createInvisible 1

rem *** Geometries ***

GeometryTemplate.delete Ammobox_m1
GeometryTemplate.delete cabledrm_m1
GeometryTemplate.delete churcfence_m1
GeometryTemplate.delete churcfencestop_m1
GeometryTemplate.delete citymesh2_m1
GeometryTemplate.delete citymesh4_m1
GeometryTemplate.delete mediclocker_m1
GeometryTemplate.delete repport_box1_m1
GeometryTemplate.delete rh_tsp_m1
GeometryTemplate.delete sandbag_2m_m1
GeometryTemplate.delete sandbagi_m1
GeometryTemplate.delete sandbagl_m1
GeometryTemplate.delete stebarrel2_m1
GeometryTemplate.delete stecrate1_M1
GeometryTemplate.delete stecrate2_M1
GeometryTemplate.delete SightScene1_M1
GeometryTemplate.delete SightScene2_m1
GeometryTemplate.delete SightScene3_M1
GeometryTemplate.delete SightSceneRuin1_M1
GeometryTemplate.delete SightSceneRuin2_m1


renderer.beginGlobalCluseter MIDNIGHT_OBJECTS

GeometryTemplate.create StandardMesh Ammobox_m1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/Ammobox_m1

GeometryTemplate.create StandardMesh cabledrm_m1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/cabledrm_m1

GeometryTemplate.create StandardMesh churcfence_m1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/churcfence_m1

GeometryTemplate.create StandardMesh churcfencestop_m1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/churcfencestop_m1

GeometryTemplate.create StandardMesh mediclocker_m1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/mediclocker_m1

GeometryTemplate.create StandardMesh repport_box1_m1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/repport_box1_m1

GeometryTemplate.create StandardMesh rh_tsp_M1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/rh_tsp_M1

GeometryTemplate.create StandardMesh sandbag_2m_m1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/sandbag_2m_m1

GeometryTemplate.create StandardMesh sandbagi_m1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/sandbagi_m1

GeometryTemplate.create StandardMesh sandbagl_m1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/sandbagl_m1

GeometryTemplate.create StandardMesh stebarrel2_m1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/stebarrel2_m1

GeometryTemplate.create StandardMesh stecrate1_M1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/stecrate1_M1

GeometryTemplate.create StandardMesh stecrate2_M1
GeometryTemplate.file ../bf1942/levels/Midnight_at_Berlin/standardMesh/stecrate2_M1

GeometryTemplate.create TreeMesh e_light_m1
GeometryTemplate.file e_light_m1
GeometryTemplate.billboard 0

GeometryTemplate.create TreeMesh e_rooflight_m1
GeometryTemplate.file e_light_m1
GeometryTemplate.billboard 0
GeometryTemplate.scale 1.5

GeometryTemplate.create StandardMesh rooflamp_short_m1
GeometryTemplate.file rooflamp_short_m1

renderer.endGlobalCluster


GeometryTemplate.create StandardMesh citymesh2_m1
GeometryTemplate.file citymesh2_m1
GeometryTemplate.textureFadeMaxDist 250
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 30
GeometryTemplate.setLodDistance 3 40
GeometryTemplate.setLodDistance 4 60

GeometryTemplate.create StandardMesh citymesh4_m1
GeometryTemplate.file citymesh4_m1
GeometryTemplate.textureFadeMaxDist 250
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 30
GeometryTemplate.setLodDistance 3 40
GeometryTemplate.setLodDistance 4 60

GeometryTemplate.create StandardMesh SightScene1_M1
GeometryTemplate.file SightScene1_M1
GeometryTemplate.alphaLodDistance 250
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 35
GeometryTemplate.setLodDistance 3 60
GeometryTemplate.setLodDistance 4 100
GeometryTemplate.setLodDistance 5 300

GeometryTemplate.create StandardMesh SightScene2_M1
GeometryTemplate.file SightScene2_M1
GeometryTemplate.alphaLodDistance 250
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 35
GeometryTemplate.setLodDistance 3 60
GeometryTemplate.setLodDistance 4 100
GeometryTemplate.setLodDistance 5 300

GeometryTemplate.create StandardMesh SightScene3_M1
GeometryTemplate.file SightScene3_M1
GeometryTemplate.alphaLodDistance 250
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 35
GeometryTemplate.setLodDistance 3 60
GeometryTemplate.setLodDistance 4 100
GeometryTemplate.setLodDistance 5 300

GeometryTemplate.create StandardMesh SightSceneRuin1_M1
GeometryTemplate.file SightSceneRuin1_M1
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.alphaLodDistance 250
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 35
GeometryTemplate.setLodDistance 3 60
GeometryTemplate.setLodDistance 4 100
GeometryTemplate.setLodDistance 5 300

GeometryTemplate.create StandardMesh SightSceneRuin2_M1
GeometryTemplate.file SightSceneRuin2_M1
GeometryTemplate.alphaLodDistance 250
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 35
GeometryTemplate.setLodDistance 3 60
GeometryTemplate.setLodDistance 4 100
GeometryTemplate.setLodDistance 5 300

GeometryTemplate.create StandardMesh SightSceneRuin3_M1
GeometryTemplate.file SightSceneRuin3_M1
GeometryTemplate.alphaLodDistance 250
GeometryTemplate.setLodDistance 0 0
GeometryTemplate.setLodDistance 1 15
GeometryTemplate.setLodDistance 2 35
GeometryTemplate.setLodDistance 3 60
GeometryTemplate.setLodDistance 4 100
GeometryTemplate.setLodDistance 5 300


rem *** Objects ***

ObjectTemplate.create Bundle citymesh2_m1
ObjectTemplate.setHasCollisionPhysics 1
objectTemplate.aiTemplate citymesh2_m1
ObjectTemplate.geometry citymesh2_m1
rem -------------------------------------
ObjectTemplate.addTemplate eupaint2_M1
ObjectTemplate.setPosition 5.76/11/1.3
ObjectTemplate.setRotation 90/0/0
ObjectTemplate.addTemplate eutable_M1
ObjectTemplate.setPosition 4.87/4.41/3.65
ObjectTemplate.setRotation 0/0/180
ObjectTemplate.addTemplate eurocarpet1_M1
ObjectTemplate.setPosition 0/4.46/1
ObjectTemplate.addTemplate euchair_M1
ObjectTemplate.setPosition 4.22/4.69/1.85
ObjectTemplate.setRotation 20/0/92
ObjectTemplate.addTemplate euchair_M1
ObjectTemplate.setPosition 5.22/4.41/4.4
ObjectTemplate.setRotation 180/0/180
ObjectTemplate.addTemplate eubooksh_M1
ObjectTemplate.setPosition 2.2/4.41/6.095
ObjectTemplate.setRotation 180/0/0
ObjectTemplate.addTemplate eucloset_M1
ObjectTemplate.setPosition 5.38/8.57/3.5
ObjectTemplate.setRotation -90/0/180
ObjectTemplate.addTemplate eubed_m1
ObjectTemplate.setPosition 4.75/8.57/1.3
ObjectTemplate.setRotation -90/0/0
ObjectTemplate.addTemplate eurocarpet2_M1
ObjectTemplate.setPosition 2.4/8.615/1.4
rem --------------------------------------
ObjectTemplate.addTemplate euchair_M1
ObjectTemplate.setPosition 3/0.47/5
ObjectTemplate.setRotation 150/-87/180
ObjectTemplate.addTemplate euchair_M1
ObjectTemplate.setPosition 2/0.47/3
ObjectTemplate.setRotation 40/-87/180
ObjectTemplate.addTemplate stecrate1_M1
ObjectTemplate.setPosition 3.5/0.18/0
ObjectTemplate.setRotation 90/0/0
ObjectTemplate.addTemplate citymesh2fence_m1


ObjectTemplate.create Bundle citymesh4_m1
ObjectTemplate.geometry citymesh4_m1
ObjectTemplate.setHasCollisionPhysics 1
objectTemplate.aiTemplate citymesh4_m1
ObjectTemplate.addTemplate citymesh4_fix_m1
ObjectTemplate.setposition -0.4/0/0
rem -----------------------------------------------
ObjectTemplate.addTemplate eutable_M1
ObjectTemplate.setPosition 1.1/4.41/1.65
ObjectTemplate.setRotation 0/0/180
ObjectTemplate.addTemplate euchair_M1
ObjectTemplate.setPosition 0.42/4.69/-0.15
ObjectTemplate.setRotation 20/0/92
ObjectTemplate.addTemplate euchair_M1
ObjectTemplate.setPosition 1.42/4.41/2.4
ObjectTemplate.setRotation 180/0/180
ObjectTemplate.addTemplate eupaint1_m1
ObjectTemplate.setPosition 5.52/6.69/4.6
ObjectTemplate.setRotation 90/0/180
ObjectTemplate.addTemplate eupaint2_m1
ObjectTemplate.setPosition 2.8/6.7/-3.46
ObjectTemplate.setRotation 180/0/5
ObjectTemplate.addTemplate eurocarpet1_M1
ObjectTemplate.setPosition 2.1/4.46/1.5
ObjectTemplate.setRotation 90/0/0
ObjectTemplate.addTemplate eurocarpet2_M1
ObjectTemplate.setPosition 0/0.3/3.8
ObjectTemplate.addTemplate eubooksh_M1
ObjectTemplate.setPosition -2.5/4.41/7.7
ObjectTemplate.setRotation 180/0/0
rem ------------------------------------------------
ObjectTemplate.addTemplate eucloset_M1
ObjectTemplate.setPosition -2.5/8.57/7.55
ObjectTemplate.setRotation 180/0/180
ObjectTemplate.addTemplate eucloset_M1
ObjectTemplate.setPosition 2.5/8.57/7.55
ObjectTemplate.setRotation 180/0/180
ObjectTemplate.addTemplate eubed_m1
ObjectTemplate.setPosition 0/8.57/7.0
ObjectTemplate.setRotation 180/0/0
ObjectTemplate.addTemplate eurocarpet2_M1
ObjectTemplate.setPosition 0/8.605/1.4
ObjectTemplate.setRotation 90/0/0
rem ----------------------------------------------------
ObjectTemplate.addTemplate eucloset_M1
ObjectTemplate.setPosition -2/0.23/-3.5
ObjectTemplate.setRotation 0/0/180


rem *** Light effect ***

ObjectTemplate.create Bundle e_light
rem --------------------------------
ObjectTemplate.addTemplate lodeLight


ObjectTemplate.create lodObject lodeLight
rem -------------------------------------
ObjectTemplate.addTemplate e_light_complex
ObjectTemplate.addTemplate NULL_OBJECT
rem -------------------------------------
ObjectTemplate.lodSelector e_lightSelector

LodSelectorTemplate.create DistanceSelector e_lightSelector
LodSelectorTemplate.addLodDistance 125

ObjectTemplate.create Bundle e_light_complex
ObjectTemplate.geometry e_light_m1
rem ------------------------------------
ObjectTemplate.addTemplate e_light_alt
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 60/0/0
rem ------------------------------------
ObjectTemplate.addTemplate e_light_alt
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 120/0/0
rem ------------------------------------
ObjectTemplate.addTemplate e_light_alt
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation -60/0/0
rem ------------------------------------
ObjectTemplate.addTemplate e_light_alt
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation -120/0/0
rem ------------------------------------
ObjectTemplate.addTemplate e_light_alt
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation -180/0/0

ObjectTemplate.create Bundle e_rooflight
ObjectTemplate.geometry e_rooflight_m1
ObjectTemplate.cullRadiusScale 3.0
rem ------------------------------------
ObjectTemplate.addTemplate e_rooflight_alt
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 60/0/0
rem ------------------------------------
ObjectTemplate.addTemplate e_rooflight_alt
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 120/0/0
rem ------------------------------------
ObjectTemplate.addTemplate e_rooflight_alt
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation -60/0/0
rem ------------------------------------
ObjectTemplate.addTemplate e_rooflight_alt
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation -120/0/0
rem ------------------------------------
ObjectTemplate.addTemplate e_rooflight_alt
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation -180/0/0

ObjectTemplate.create Light e_light_alt
ObjectTemplate.geometry e_light_m1
ObjectTemplate.setAmbient 255/255/255

ObjectTemplate.create Light e_rooflight_alt
ObjectTemplate.geometry e_rooflight_m1
ObjectTemplate.setAmbient 255/255/255

rem *** Light bundles for DC vehicles! ***

ObjectTemplate.create Bundle RecoilHeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.755/0.417/2.92
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.755/0.417/2.92
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.164/0.354/3
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.164/0.354/3

ObjectTemplate.create Bundle HumveeHeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.456/0.592/1.306
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.456/0.592/1.306

ObjectTemplate.create Bundle DPVHeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.344/0.457/2.754
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.344/0.457/2.754

ObjectTemplate.create Bundle M1A1HeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.699/0.762/3.978
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.593/0.762/3.978

ObjectTemplate.create Bundle T72HeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.848/0.452/2.72
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.848/0.452/2.72

ObjectTemplate.create Bundle BMP2HeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 1.357/0.399/3.265
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -1.357/0.399/3.265

ObjectTemplate.create Bundle M2A3HeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.999/0.399/2.876
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.999/0.399/2.876

ObjectTemplate.create Bundle BRDM2HeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.769/1.09/2.6
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.74/1.09/2.6
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.539/1.09/2.6
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.51/1.09/2.6
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 1.026/1.279/1.629

ObjectTemplate.create Bundle BRDM2_SpanHeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.769/1.09/2.6
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.74/1.09/2.6
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.539/1.09/2.6
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.51/1.09/2.6
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 1.026/1.279/1.629

ObjectTemplate.create Bundle ladaHeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.735/0.002/2.253
ObjectTemplate.setRotation 0/-23/0
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.735/0.002/2.253
ObjectTemplate.setRotation 0/-23/0

ObjectTemplate.create Bundle TechnicalHeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.755/0.417/2.92
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.755/0.417/2.92
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.164/0.354/3
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.164/0.354/3

ObjectTemplate.create Bundle PickupHeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.755/0.417/2.92
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.755/0.417/2.92
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.164/0.354/3
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.164/0.354/3

ObjectTemplate.create Bundle RecoilHeadLights
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.755/0.417/2.92
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.755/0.417/2.92
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition 0.164/0.354/3
ObjectTemplate.addTemplate e_light
ObjectTemplate.setPosition -0.164/0.354/3

rem *** Roof Lamp ***

ObjectTemplate.create Bundle rooflamp_short
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem ------------------------------------
ObjectTemplate.addTemplate lodRooflamp_short

ObjectTemplate.create lodObject lodRooflamp_short
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem ----------------------------------------
ObjectTemplate.addTemplate rooflamp_shortComplex
ObjectTemplate.addTemplate rooflamp_shortSimple
rem ----------------------------------------
ObjectTemplate.lodSelector rooflampShortSelector

LodSelectorTemplate.create DistanceSelector rooflampShortSelector
LodSelectorTemplate.addLodDistance 20

ObjectTemplate.create Bundle rooflamp_shortComplex
ObjectTemplate.geometry rooflamp_short_m1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate e_rooflight
ObjectTemplate.setPosition 0/-0.375/0

ObjectTemplate.create SimpleObject rooflamp_shortSimple
ObjectTemplate.geometry rooflamp_short_m1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1