This page is under construction
Archives/bf1942/levels/DC_Urban_Siege.rfa
bf1942/levels/DC_Urban_Siege/objects/Leo2a4/Objects.con


rem *** Leo2a4 ***
ObjectTemplate.create PlayerControlObject Leo2a4
ObjectTemplate.NameTagOffset 0/-0.4/1
ObjectTemplate.setNetworkableInfo Leo2a4BodyInfo
ObjectTemplate.saveInSeparateFile 1
objectTemplate.cullRadiusScale 5
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.explosionRadius 15
ObjectTemplate.explosionDamage 70
ObjectTemplate.exitTimer 1
ObjectTemplate.drag 4
ObjectTemplate.mass 33000
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasArmor 1
ObjectTemplate.speedMod 1
ObjectTemplate.hitpoints 150
ObjectTemplate.maxhitpoints 150
ObjectTemplate.material 54
ObjectTemplate.criticalDamage 30
ObjectTemplate.hpLostWhileCriticalDamage 2
ObjectTemplate.explosionForceMod 13
ObjectTemplate.hpLostWhileUpSideDown 10
ObjectTemplate.damageFromWater 1
ObjectTemplate.hpLostWhileDamageFromWater 30

ObjectTemplate.addArmorEffect 60 e_PanzDamage 0.46/0.84/-3.044
ObjectTemplate.addArmorEffect 50 e_PanzDamage 0.46/0.84/-3.044
ObjectTemplate.addArmorEffect 40 e_PanzDamage 0.46/0.84/-3.044
ObjectTemplate.addArmorEffect 38 e_warning_tank1 0/0.655/0.6375
ObjectTemplate.addArmorEffect 35 e_PanzDamage 0.46/0.84/-3.044
ObjectTemplate.addArmorEffect 30 e_PanzFire 0.46/0.84/-3.044
ObjectTemplate.addArmorEffect 20 e_PanzFire 0.46/0.84/-3.044
ObjectTemplate.addArmorEffect 15 e_warning_tank2 0/0.655/0.6375
ObjectTemplate.addArmorEffect 12 e_PanzFire 0.46/0.84/-3.044
ObjectTemplate.addArmorEffect 10 e_ExFumeFact 0.46/0.84/-3.044
ObjectTemplate.addArmorEffect 0 e_ExplGas_tank 0/0/0
ObjectTemplate.addArmorEffect 0 e_scrapmetal 0/0/0
ObjectTemplate.addArmorEffect 0 e_Tank_Explode 0/0/0
ObjectTemplate.addArmorEffect 0 e_PanzFire 0/0.5/-1.4
ObjectTemplate.addArmorEffect 0 e_Vehicle_Destroyed 0/0.5/-1.4
ObjectTemplate.addArmorEffect 0 e_BuildingSmoke 0/0/0
ObjectTemplate.addArmorEffect 0 e_citysmoke 0/0/0
ObjectTemplate.addArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.timetoliveafterdeath 80
ObjectTemplate.fadeAtTimeToLiveAfterDeath 0



ObjectTemplate.aiTemplate M1A2DriverAI
rem -------------------------------------
ObjectTemplate.addTemplate lodLeo2a4
rem -------------------------------------
ObjectTemplate.GUIIndex 22
ObjectTemplate.setVehicleIcon "Vehicle/Icon_none.dds"

ObjectTemplate.setSoldierExitLocation 0.0/3.0/-2 0/0/0
ObjectTemplate.setVehicleIconPos 68/65
ObjectTemplate.setNumberOfWeaponIcons 2
ObjectTemplate.setPrimaryAmmoIcon "Ammo/icon_120mm_APFSDS.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setSecondaryAmmoIcon "Ammo/icon_7,92mmMG34.tga"
ObjectTemplate.setSecondaryAmmoBar ABAmmoBarHeatBar
ObjectTemplate.setCrossHairType CHTNone
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTHeavyTank
ObjectTemplate.setToolTipType TTHeavyTank
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_tank_16x16.tga"
ObjectTemplate.hasRestrictedExit 1
ObjectTemplate.setHasTurretIcon 1

ObjectTemplate.VehicleFOV 0.85


rem 0.40: 0.55




rem *** lodLeo2a4 ***
ObjectTemplate.create LodObject lodLeo2a4
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate Leo2a4Complex
ObjectTemplate.addTemplate Leo2a4Simple
ObjectTemplate.addTemplate Leo2a4Wreck
rem -------------------------------------
ObjectTemplate.lodSelector Leo2a4LodSelector


rem *** Leo2a4Complex ***
ObjectTemplate.create Bundle Leo2a4Complex

rem test
ObjectTemplate.geometry Leo2a4_Hull_M1

ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------

rem ObjectTemplate.addTemplate lodLeo2a4Cockpit

rem ObjectTemplate.addTemplate Leo2a4CameraDriver
rem ObjectTemplate.setPosition 0.65/0.83/2.15


ObjectTemplate.addTemplate Leo2a4Entry
ObjectTemplate.setPosition 0.65/0.83/2.15

ObjectTemplate.addTemplate Leo2a4Tower
ObjectTemplate.setPosition 0.0/0.8585/0.5009

rem ObjectTemplate.addTemplate Leo2a4Turret_PCO2
rem ObjectTemplate.setPosition 0.0/0.8585/0.5009
rem ObjectTemplate.setRotation 0/0/0


ObjectTemplate.addTemplate Leo2a4Engine
rem -------------------------------------


rem *** lodLeo2a4Cockpit ***
ObjectTemplate.create LodObject lodLeo2a4Cockpit
rem -------------------------------------
ObjectTemplate.addTemplate Leo2a4CockpitExternal

ObjectTemplate.addTemplate Leo2a4CockpitInternal
rem -------------------------------------
ObjectTemplate.lodSelector Leo2a4CockpitSelector


rem *** Leo2a4CockpitExternal ***
ObjectTemplate.create SimpleObject Leo2a4CockpitExternal
ObjectTemplate.geometry
rem 1P_Leo2a4_Driver_M1


rem *** Leo2a4CockpitInternal ***
ObjectTemplate.create SimpleObject Leo2a4CockpitInternal
ObjectTemplate.geometry 1P_T29HT_Gunner_m1
rem 1P_Leo2a4_Driver_M1


rem *** Leo2a4CockpitSelector ***
LodSelectorTemplate.create DistCompareSelector Leo2a4CockpitSelector
LodSelectorTemplate.addLodDistance 3
LodSelectorTemplate.addLodComparison 0.5


rem *** Leo2a4Seat ***
ObjectTemplate.create SeatObject Leo2a4Seat
rem ObjectTemplate.seatFlags c_SeatShowHalfBodySoldier

rem *** Leo2a4CameraDriver ***
ObjectTemplate.create Camera Leo2a4CameraDriver
rem ObjectTemplate.setMinRotation -30/-5/0
rem ObjectTemplate.setMaxRotation 30/5/0
ObjectTemplate.setMinRotation -22/7.9/0
ObjectTemplate.setMaxRotation 20/8/0

ObjectTemplate.setMaxSpeed 90/90/0
ObjectTemplate.setAcceleration 5000/5000/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY

rem *** Leo2a4Camera ***
ObjectTemplate.create Camera Leo2a4Camera

rem ObjectTemplate.OutsideHudOffset -0.7655001/-0.26116/3.85

rem ObjectTemplate.OutsideHudOffset -0.7655001/-0.26116/3.65


rem *** Leo2a4Entry ***
ObjectTemplate.create EntryPoint Leo2a4Entry
ObjectTemplate.setEntryRadius 5.0




rem *** Leo2a4Turret_PCO2 ***
ObjectTemplate.create PlayerControlObject Leo2a4Turret_PCO2
ObjectTemplate.setNetworkableInfo Leo2a4BodyInfo
ObjectTemplate.aiTemplate Strv122Cannon
rem -------------------------------------
ObjectTemplate.addTemplate Leo2a4Entry
ObjectTemplate.setPosition 0.0/0.0/0.0

ObjectTemplate.addTemplate Leo2a4Tower
ObjectTemplate.setPosition 0/0/0.106553
rem -------------------------------------
ObjectTemplate.GUIIndex 23
ObjectTemplate.setVehicleIcon "Vehicle/Icon_Leo2a4.tga"

ObjectTemplate.setSoldierExitLocation 0.0/3.0/-2 0/0/0
ObjectTemplate.setVehicleIconPos 68/65

ObjectTemplate.setCrossHairType CHTCrossHair
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTLightTank
ObjectTemplate.setToolTipType TTLightTank
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_tank_16x16.tga"
ObjectTemplate.hasRestrictedExit 1
ObjectTemplate.setHasTurretIcon 1
ObjectTemplate.VehicleFOV 0.55


rem *** Leo2a4Tower ***
ObjectTemplate.create RotationalBundle Leo2a4Tower
ObjectTemplate.setNetworkableInfo Leo2a4TurretInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/M1A1tower.ssc
ObjectTemplate.geometry Leo2a4_Tow_M1
ObjectTemplate.hasCollisionPhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate Leo2a4GunBase
ObjectTemplate.setPosition 0/0.31248/1.311557



rem -------------------------------------
ObjectTemplate.setMaxSpeed 35/25/0
ObjectTemplate.setAcceleration 1000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX


rem *** Leo2a4GunBase ***
ObjectTemplate.create RotationalBundle Leo2a4GunBase
ObjectTemplate.setNetworkableInfo Leo2a4GunInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/M1A1GunBase.ssc
ObjectTemplate.geometry Leo2a4_CanonBase_M1
rem -------------------------------------

ObjectTemplate.addTemplate Leo2a4GunBarrel
ObjectTemplate.setPosition 0.0232999/0.12384/0.403387
ObjectTemplate.addTemplate lodLeo2a4Cockpit
ObjectTemplate.setPosition 0.8/0.4/0.32



ObjectTemplate.addTemplate Leo2a4Camera
ObjectTemplate.setPosition 0.8/0.4/0.3

ObjectTemplate.addTemplate Coaxial_Mg34
ObjectTemplate.setPosition -0.23/0.0581/-0.27


rem -------------------------------------
ObjectTemplate.setMinRotation 0/-20/0
ObjectTemplate.setMaxRotation 0/9/0
ObjectTemplate.setMaxSpeed 20/20/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY








rem *** Leo2a4Camera2 ***
ObjectTemplate.create Camera Leo2a4Camera2
ObjectTemplate.setPivotPosition 0/0.3/-1
ObjectTemplate.setMaxSpeed 0/0/0
ObjectTemplate.setAcceleration 0/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY



rem *** Leo2a4SupplyDepot ***
rem ObjectTemplate.create SupplyDepot Leo2a4SupplyDepot
rem ObjectTemplate.radius 1.3
rem ObjectTemplate.team 0
rem ObjectTemplate.setHealth -1 4.0 0
rem ObjectTemplate.addAmmoType 1 -1 15 0
rem ObjectTemplate.addAmmoType 2 -1 1.2 0
rem ObjectTemplate.addAmmoType 3 -1 1.2 0
rem ObjectTemplate.loadSoundScript ../../../Common/Sounds/SupplyDepot.ssc


rem *** Leo2a4VehicleSupplyDepot ***
rem ObjectTemplate.create SupplyDepot Leo2a4VehicleSupplyDepot
rem ObjectTemplate.radius 20
rem ObjectTemplate.team 2
rem ObjectTemplate.setHealth 0 0 0
rem ObjectTemplate.addAmmoType 0 -1 20 0
rem ObjectTemplate.workOnVehicles 1
rem ObjectTemplate.workOnSoldiers 0
rem ObjectTemplate.loadSoundScript ../../../Common/Sounds/SupplyDepot.ssc


rem *** Leo2a4Entry3 ***
ObjectTemplate.create EntryPoint Leo2a4Entry3
ObjectTemplate.setEntryRadius 2.6


rem *** Leo2a4PassangerCamera ***
ObjectTemplate.create Camera Leo2a4PassangerCamera
ObjectTemplate.setMinRotation -90/0/0
ObjectTemplate.setMaxRotation 90/0/0
ObjectTemplate.setMaxSpeed 500/0/0
ObjectTemplate.setAcceleration 1000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
rem ObjectTemplate.setInputToPitch c_PIMenuSelect3
rem ObjectTemplate.setInputToRoll c_PIMenuSelect3


rem *** Leo2a4PassengerSeat ***
ObjectTemplate.create SeatObject Leo2a4PassengerSeat
rem syns inte iaf.
rem ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
rem ObjectTemplate.seatFlags c_SeatIsOutside
rem ObjectTemplate.seatAnimationUpperBody Ub_PassengerInWilly
rem ObjectTemplate.seatAnimationLowerBody Lb_PassengerInWilly



rem *** Leo2a4Simple ***
ObjectTemplate.create SimpleObject Leo2a4Simple
ObjectTemplate.geometry Leo2a4_Hull_L1


rem *** Leo2a4Wreck ***
ObjectTemplate.create SimpleObject Leo2a4Wreck
ObjectTemplate.geometry Wreck_Leo2a4_m1


rem *** Leo2a4LodSelector ***
LodSelectorTemplate.create DistCompareSelector2 Leo2a4LodSelector
LodSelectorTemplate.hasDestroyedLod 1
LodSelectorTemplate.addLodDistance 130



rem *** Leo2a4TrackL ***
ObjectTemplate.create AnimatedBundle Leo2a4TrackL
ObjectTemplate.loadSoundScript Sounds/TigerTrackL.ssc
ObjectTemplate.geometry Leo2a4_TrackL_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.createSkeleton animations/122_Track_Left.ske
rem shermanTrackL.ske
ObjectTemplate.setAnimatedTextureSpeed -0.006/0
rem -------------------------------------

rem rfWheel x -3,258 y 37,915 z 9,118
ObjectTemplate.addTemplate Leo2a4_LFwheel
ObjectTemplate.setPosition -0.15/-0.2/3.7915

rem ===

rem -2,893/0.4373
rem -0.2893/0.2373
ObjectTemplate.addTemplate Leo2a4WheelL3Dummy
ObjectTemplate.setPosition -0.15/-0.7/2.7696
ObjectTemplate.useAsBone 0/-0.15/0.3
ObjectTemplate.setBoneOriginOffset 0/-0.5/0


ObjectTemplate.addTemplate Leo2a4WheelL3
ObjectTemplate.setPosition -0.15/-0.7/1.9
ObjectTemplate.useAsBone 0/-0.15/0
ObjectTemplate.setBoneOriginOffset 0/-0.5/0


ObjectTemplate.addTemplate Leo2a4WheelL3Dummy
ObjectTemplate.setPosition -0.15/-0.7/1.0
ObjectTemplate.useAsBone 0/-0.15/0
ObjectTemplate.setBoneOriginOffset 0/-0.5/0

ObjectTemplate.addTemplate Leo2a4WheelL3DummyMiddle
ObjectTemplate.setPosition -0.15/-0.7/0.1
ObjectTemplate.useAsBone 0/-0.15/0
ObjectTemplate.setBoneOriginOffset 0/-0.5/0

ObjectTemplate.addTemplate Leo2a4WheelL3Dummy
ObjectTemplate.setPosition -0.15/-0.7/-0.8
ObjectTemplate.useAsBone 0/-0.15/0
ObjectTemplate.setBoneOriginOffset 0/-0.5/0


ObjectTemplate.addTemplate Leo2a4WheelL3
ObjectTemplate.setPosition -0.15/-0.7/-1.7
ObjectTemplate.useAsBone 0/-0.15/0
ObjectTemplate.setBoneOriginOffset 0/-0.5/0

ObjectTemplate.addTemplate Leo2a4WheelL3Dummy
ObjectTemplate.setPosition -0.15/-0.7/-2.6
ObjectTemplate.useAsBone 0/-0.15/0
ObjectTemplate.setBoneOriginOffset 0/-0.5/0

rem ===

ObjectTemplate.addTemplate Leo2a4_LDwheel
ObjectTemplate.setPosition -0.15/-0.1/-3.4
rem -0.358/



rem -------------------------------------


rem *** Leo2a4WheelL1 ***
ObjectTemplate.create SimpleObject Leo2a4WheelL1
ObjectTemplate.geometry Leo2a4_whe1L_M1

rem *** Leo2a4WheelL4 ***
ObjectTemplate.create SimpleObject Leo2a4WheelL4
ObjectTemplate.geometry Leo2a4_whe4L_M1


rem *** Leo2a4TrackR ***
ObjectTemplate.create AnimatedBundle Leo2a4TrackR
ObjectTemplate.loadSoundScript Sounds/TigerTrackR.ssc
ObjectTemplate.geometry Leo2a4_TrackR_M1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.createSkeleton animations/122_Track_Right.ske
rem 122_Track_Left
ObjectTemplate.setAnimatedTextureSpeed -0.006/0
rem -------------------------------------

ObjectTemplate.addTemplate Leo2a4_RFwheel
ObjectTemplate.setPosition 0.15/-0.2/3.7915

rem ===
rem 0.4373 - 0.6 = -0,1627

rem rwheel x -2,893 y 27,696 z 4,373
rem 0.2893
ObjectTemplate.addTemplate Leo2a4WheelR3Dummy
ObjectTemplate.setPosition 0.15/-0.7/2.7696
ObjectTemplate.useAsBone 0/-1.45/0.3
ObjectTemplate.setBoneOriginOffset 0/-0.5/0

ObjectTemplate.addTemplate Leo2a4WheelR3
ObjectTemplate.setPosition 0.15/-0.7/1.9
ObjectTemplate.useAsBone 0/-0.15/0
ObjectTemplate.setBoneOriginOffset 0/-0.5/0


ObjectTemplate.addTemplate Leo2a4WheelR3Dummy
ObjectTemplate.setPosition 0.15/-0.7/1.0
ObjectTemplate.useAsBone 0/-0.15/0
ObjectTemplate.setBoneOriginOffset 0/-0.5/0

ObjectTemplate.addTemplate Leo2a4WheelR3DummyMiddle
ObjectTemplate.setPosition 0.15/-0.7/0.1
ObjectTemplate.useAsBone 0/-0.15/0
ObjectTemplate.setBoneOriginOffset 0/-0.5/0

ObjectTemplate.addTemplate Leo2a4WheelR3Dummy
ObjectTemplate.setPosition 0.15/-0.7/-0.8
ObjectTemplate.useAsBone 0/-0.15/0
ObjectTemplate.setBoneOriginOffset 0/-0.5/0


ObjectTemplate.addTemplate Leo2a4WheelR3
ObjectTemplate.setPosition 0.15/-0.7/-1.7
ObjectTemplate.useAsBone 0/-0.15/0
ObjectTemplate.setBoneOriginOffset 0/-0.5/0

ObjectTemplate.addTemplate Leo2a4WheelR3Dummy
ObjectTemplate.setPosition 0.15/-0.7/-2.6
ObjectTemplate.useAsBone 0/-0.15/0
ObjectTemplate.setBoneOriginOffset 0/-0.5/0

rem ===

ObjectTemplate.addTemplate Leo2a4_RDwheel
ObjectTemplate.setPosition -0.2/-0.1/-3.4
rem 0.358/
rem x -3,58 y -33,209 z 9,265



rem -------------------------------------


rem *** Leo2a4WheelR1 ***
ObjectTemplate.create SimpleObject Leo2a4WheelR1
ObjectTemplate.geometry Leo2a4_whe1R_M1



rem *** Leo2a4WheelR4 ***
ObjectTemplate.create SimpleObject Leo2a4WheelR4
ObjectTemplate.geometry Leo2a4_whe4R_M1