This page is under construction
Archives/bf1942/levels/DC_Urban_Siege.rfa
bf1942/levels/DC_Urban_Siege/objects/CivCpeBlack/Objects.con
Var v_is_coop
console.useRelativePaths 0
run bf1942/game/is_coop.con
console.useRelativePaths 1


rem *** CivCpeBlack ***
ObjectTemplate.create PlayerControlObject CivCpeBlack
ObjectTemplate.NameTagOffset -0.3/-0.2/0
ObjectTemplate.setNetworkableInfo CivCpeBlackBodyInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.cullRadiusScale 5
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.explosionRadius 5
ObjectTemplate.explosionDamage 2
ObjectTemplate.damageFromWater 0
ObjectTemplate.drag 1.5
ObjectTemplate.mass 2500
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasArmor 1
ObjectTemplate.speedMod 1
ObjectTemplate.exitTimer 0.75
ObjectTemplate.hitpoints 50
ObjectTemplate.maxhitpoints 50
ObjectTemplate.material 29
ObjectTemplate.criticalDamage 5
if v_is_coop == True
ObjectTemplate.hpLostWhileCriticalDamage 1
else
ObjectTemplate.hpLostWhileCriticalDamage 0
endIf
ObjectTemplate.explosionForceMod 20
ObjectTemplate.hpLostWhileUpSideDown 5
ObjectTemplate.hpLostWhileDamageFromWater 5
ObjectTemplate.addArmorEffect 30 e_WillyDamage 0/1.7/0
ObjectTemplate.addArmorEffect 5 e_WillyFire 0/0.5/0.8
ObjectTemplate.addArmorEffect 0 e_scrapmetal_willy 0/0/0
ObjectTemplate.addArmorEffect 0 e_ExplGas 0/1.2/0
ObjectTemplate.addArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.timetoliveafterdeath 15
ObjectTemplate.fadeAtTimeToLiveAfterDeath 0
ObjectTemplate.aiTemplate CivCpeBlack
rem -------------------------------------
ObjectTemplate.addTemplate lodCivCpeBlack
rem -------------------------------------
ObjectTemplate.submarineData 1 0.03 10.0 1.1 1.2 0.5 5
ObjectTemplate.setSoldierExitLocation -1.5/0/-0.8 0/0/0
ObjectTemplate.GUIIndex 26
ObjectTemplate.setVehicleIcon "Vehicle/icon_CivCpeBlack.tga"
ObjectTemplate.setVehicleIconPos 46/52
ObjectTemplate.setPrimaryAmmoBar ABNone
ObjectTemplate.setCrossHairType CHTNone
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTScoutCar
ObjectTemplate.setToolTipType TTScoutCar
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_common_16x16.tga"
ObjectTemplate.hasRestrictedExit 1


rem *** lodCivCpeBlack ***
ObjectTemplate.create LodObject lodCivCpeBlack
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate CivCpeBlackComplex
ObjectTemplate.addTemplate CivCpeBlackSimple
ObjectTemplate.setPosition 0/0.254/-0.140
ObjectTemplate.addTemplate CivCpeBlackWreck
rem -------------------------------------
ObjectTemplate.lodSelector CivCpeBlackLodSelector


rem *** CivCpeBlackComplex ***
ObjectTemplate.create Bundle CivCpeBlackComplex
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate lodCivCpeBlackCockpit
ObjectTemplate.addTemplate CivCpeBlackCamera
ObjectTemplate.setPosition -0.249/1.26669/-0.950936
ObjectTemplate.addTemplate CivCpeBlackSeat
ObjectTemplate.setPosition -0.268/0.6/-0.75
ObjectTemplate.addTemplate CivCpeBlackEntry
ObjectTemplate.setPosition 0/0/1.0
ObjectTemplate.addTemplate CivCpeBlackEntry
ObjectTemplate.setPosition 0/0/-1.0
ObjectTemplate.addTemplate CivCpeBlackPassengerPCO1
ObjectTemplate.setPosition 0/0.35/-0.25
ObjectTemplate.addTemplate CivCpeBlackEngine
ObjectTemplate.setPosition 0/0.35/-0.25
ObjectTemplate.addTemplate CivCpeBlackSteeringDummy
ObjectTemplate.setPosition -0.258/0.495/0.293
ObjectTemplate.setRotation 0/27.13/0
ObjectTemplate.addTemplate CivCpeBlackHorn
rem -------------------------------------


rem *** lodCivCpeBlackCockpit ***
ObjectTemplate.create LodObject lodCivCpeBlackCockpit
rem -------------------------------------
ObjectTemplate.addTemplate CivCpeBlackCockpitExternal
ObjectTemplate.addTemplate CivCpeBlackCockpitInternal
ObjectTemplate.setPosition 0/0.099/-0.0428
rem -------------------------------------
ObjectTemplate.lodSelector CivCpeBlackCockpitSelector1

rem *** CivCpeBlackCockpitExternal ***
ObjectTemplate.create SimpleObject CivCpeBlackCockpitExternal
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry CivCpeBlack_Hull_M1

rem *** CivCpeBlackCockpitInternal ***
ObjectTemplate.create Bundle CivCpeBlackCockpitInternal
ObjectTemplate.geometry 1P_CivCpeBlack_Hul_M1

rem *** CivCpeBlackCockpitSelector1 ***
LodSelectorTemplate.create DistCompareSelector CivCpeBlackCockpitSelector1
LodSelectorTemplate.addLodDistance 3.05
LodSelectorTemplate.addLodComparison 0.5


rem *** CivCpeBlackCamera ***
ObjectTemplate.create Camera CivCpeBlackCamera
ObjectTemplate.setMinRotation -60/-40/0
ObjectTemplate.setMaxRotation 60/15/0
ObjectTemplate.setMaxSpeed 90/90/0
ObjectTemplate.setAcceleration 5000/5000/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY

rem *** CivCpeBlackSeat ***
ObjectTemplate.create SeatObject CivCpeBlackSeat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
ObjectTemplate.seatFlags c_SeatIsOutside

rem *** CivCpeBlackEntry ***
ObjectTemplate.create EntryPoint CivCpeBlackEntry
ObjectTemplate.setEntryRadius 3.25


rem *** CivCpeBlackSteeringDummy ***
ObjectTemplate.create AnimatedBundle CivCpeBlackSteeringDummy
rem -------------------------------------
ObjectTemplate.addTemplate CivCpeBlackSteering
rem -------------------------------------
ObjectTemplate.addSkeletonIK Bip01_R_Hand 0.24/-0.1/-0.82 -80/60/50
ObjectTemplate.addSkeletonIK Bip01_L_Hand -0.26/-0.1/-0.82 -80/-60/50

rem *** CivCpeBlackSteering ***
ObjectTemplate.create RotationalBundle CivCpeBlackSteering
ObjectTemplate.setNetworkableInfo CivCpeBlackSteeringInfo
rem -------------------------------------
ObjectTemplate.addTemplate lodCivCpeBlackSteering
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/-60
ObjectTemplate.setMaxRotation 0/0/60
ObjectTemplate.setMaxSpeed 0/0/180
ObjectTemplate.setAcceleration 0/0/-180
ObjectTemplate.setInputToRoll c_PIYaw
ObjectTemplate.setAutomaticReset 1


rem *** lodCivCpeBlackSteering ***
ObjectTemplate.create LodObject lodCivCpeBlackSteering
rem -------------------------------------
ObjectTemplate.addTemplate CivCpeBlackHighRSteering
ObjectTemplate.addTemplate CivCpeBlackLowSteering
rem -------------------------------------
ObjectTemplate.lodSelector CivCpeBlackSteeringSelector

rem *** CivCpeBlackHighRSteering ***
ObjectTemplate.create SimpleObject CivCpeBlackHighRSteering
ObjectTemplate.geometry 1P_CivCpeBlack_Str_M1

rem *** CivCpeBlackLowSteering ***
ObjectTemplate.create SimpleObject CivCpeBlackLowSteering
ObjectTemplate.geometry CivCpeBlack_Steering_M1

rem *** CivCpeBlackSteeringSelector ***
LodSelectorTemplate.create DistanceSelector CivCpeBlackSteeringSelector
LodSelectorTemplate.addLodDistance 2


rem *** CivCpeBlackFrontWheelR ***
ObjectTemplate.create RotationalBundle CivCpeBlackFrontWheelR
ObjectTemplate.setNetworkableInfo CivCpeBlackSteeringInfo
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate CivCpeBlackFrontSpringR
ObjectTemplate.setPosition 0.173/-0.430/0
rem -------------------------------------
ObjectTemplate.setMinRotation -30/0/0
ObjectTemplate.setMaxRotation 30/0/0
ObjectTemplate.setMaxSpeed 200/0/0
ObjectTemplate.setAcceleration 200/0/0
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setAutomaticReset 1

rem *** CivCpeBlackFrontWheelL ***
ObjectTemplate.create RotationalBundle CivCpeBlackFrontWheelL
ObjectTemplate.setNetworkableInfo CivCpeBlackSteeringInfo
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate CivCpeBlackFrontSpringL
ObjectTemplate.setPosition -0.138/-0.430/0
rem -------------------------------------
ObjectTemplate.setMinRotation -30/0/0
ObjectTemplate.setMaxRotation 30/0/0
ObjectTemplate.setMaxSpeed 200/0/0
ObjectTemplate.setAcceleration 200/0/0
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setAutomaticReset 1


rem *** CivCpeBlackPassengerPCO1 ***
ObjectTemplate.create PlayerControlObject CivCpeBlackPassengerPCO1
ObjectTemplate.setNetworkableInfo CivCpeBlackBodyInfo
ObjectTemplate.aiTemplate CivCpeBlackPassenger
rem -------------------------------------
ObjectTemplate.addTemplate CivCpeBlackEntry
ObjectTemplate.setPosition 1/0/1
ObjectTemplate.addTemplate CivCpeBlackEntry
ObjectTemplate.setPosition 1/0/-1
ObjectTemplate.addTemplate CivCpeBlackCamera
ObjectTemplate.setPosition 0.319/0.913555/-0.699936
ObjectTemplate.addTemplate CivCpeBlackPassengerSeat
ObjectTemplate.setPosition 0.319/0.25/-0.499
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation 1.5/0/-0.8 0/0/0
ObjectTemplate.GUIIndex 53
ObjectTemplate.setVehicleIcon "Vehicle/icon_CivCpeBlack.tga"
ObjectTemplate.setVehicleIconPos 31/57
ObjectTemplate.setPrimaryAmmoBar ABNone
ObjectTemplate.setCrossHairType CHTNone
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTScoutCar
ObjectTemplate.setToolTipType TTScoutCar
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_common_16x16.tga"
ObjectTemplate.hasRestrictedExit 1


rem *** CivCpeBlackPassengerSeat ***
ObjectTemplate.create SeatObject CivCpeBlackPassengerSeat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
ObjectTemplate.seatFlags c_SeatIsOutside
ObjectTemplate.seatAnimationUpperBody Ub_PassengerInWilly
ObjectTemplate.seatAnimationLowerBody Lb_PassengerInWilly


rem *** CivCpeBlackSimple ***
ObjectTemplate.create SimpleObject CivCpeBlackSimple
ObjectTemplate.geometry CivCpeBlack_Hull_L1

rem *** CivCpeBlackWreck ***
ObjectTemplate.create SimpleObject CivCpeBlackWreck
ObjectTemplate.geometry Wreck_CivCpeBlack_m1

rem *** CivCpeBlackLodSelector ***
LodSelectorTemplate.create DistCompareSelector2 CivCpeBlackLodSelector
LodSelectorTemplate.hasDestroyedLod 1
LodSelectorTemplate.addLodDistance 135