This page is under construction
Archives/bf1942/levels/DC_Urban_Siege.rfa
bf1942/levels/DC_Urban_Siege/objects/ZPU-4/Objects.con
rem *** ZPU-4 towed Iraqi AA gun ***
ObjectTemplate.create PlayerControlObject ZPU-4
ObjectTemplate.setNetworkableInfo ZPU-4_BodyInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.hasArmor 1
ObjectTemplate.hitpoints 230
ObjectTemplate.maxhitpoints 230
ObjectTemplate.material 50
ObjectTemplate.addArmorEffect 35 e_AA-GunDamage 0/1/0
ObjectTemplate.addArmorEffect 0 e_ScrapAAFlak38 0/1.2/0
ObjectTemplate.addArmorEffect 0 e_ExplGas 0/1.2/0
ObjectTemplate.aiTemplate ZPU-4
ObjectTemplate.timetoliveafterdeath 0
rem -------------------------------------
ObjectTemplate.addTemplate ZPU-4_Entry
ObjectTemplate.addTemplate ZPU-4_body
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 170/0/0
ObjectTemplate.addTemplate ZPU-4_base
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -2/0.5/0 0/0/0
ObjectTemplate.GUIIndex 19
ObjectTemplate.setVehicleIcon "Vehicle/Icon_ZPU4"
ObjectTemplate.setVehicleIconPos 45/76
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/icon_14,5mmZPU4.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setHasTurretIcon 1
ObjectTemplate.setCrossHairType CHTIcon
rem ObjectTemplate.setCrossHairType CHTCrossHair
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTAAGun
ObjectTemplate.setToolTipType TTAAGun
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_aa_16x16.tga"
rem *** ZPU-4_Entry ***
ObjectTemplate.create EntryPoint ZPU-4_Entry
ObjectTemplate.setEntryRadius 5.2
rem *** ZPU-4_base ***
ObjectTemplate.create SimpleObject ZPU-4_base
ObjectTemplate.geometry ZPU-4_Base
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.sinkInToLandAfterDeathSpeed 10
rem *** ZPU-4_body ***
ObjectTemplate.create RotationalBundle ZPU-4_body
ObjectTemplate.setNetworkableInfo ZPU-4_BodyInfo
ObjectTemplate.geometry ZPU-4_Gun
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/flak38Carriage.ssc
rem -------------------------------------
ObjectTemplate.addTemplate ZPU-4_gunbase
ObjectTemplate.setPosition 0/1.2/0
ObjectTemplate.setRotation 180/-30/0
ObjectTemplate.addTemplate ZPU-4_Seat
ObjectTemplate.setPosition 0.13/1.4/.76
ObjectTemplate.setRotation 180/0/0
beginrem
ObjectTemplate.addTemplate ZPU-4_handle1
ObjectTemplate.setPosition 0/1.4/-0.749
ObjectTemplate.setRotation 0/0/-90
endrem
ObjectTemplate.addTemplate ZPU-4_handle2
ObjectTemplate.setPosition 0.05/1.61/0.415
ObjectTemplate.setRotation 0/0/-180
rem -------------------------------------
ObjectTemplate.setMaxSpeed 100/0/0
ObjectTemplate.setAcceleration 1000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
rem *** ZPU-4_gun ***
ObjectTemplate.create RotationalBundle ZPU-4_gunbase
ObjectTemplate.setNetworkableInfo ZPU-4_BodyInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/flak38gunbase.ssc
rem -------------------------------------
ObjectTemplate.addTemplate lodZPU-4Cockpit
ObjectTemplate.addTemplate ZPU-4_gun_barrel
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.addTemplate ZPU-4_Camera
ObjectTemplate.setPosition -0.3/0.622/-0.34
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-55/0
ObjectTemplate.setMaxRotation 0/45/0
ObjectTemplate.setMaxSpeed 0/100/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY
rem *** lodZPU-4Cockpit ***
ObjectTemplate.create LodObject lodZPU-4Cockpit
rem -------------------------------------
ObjectTemplate.addTemplate ZPU-4CockpitExternal
ObjectTemplate.addTemplate ZPU-4CockpitExternal
rem -------------------------------------
ObjectTemplate.lodSelector ZPU-4CockpitSelector
rem *** ZPU-4CockpitExternal ***
ObjectTemplate.create SimpleObject ZPU-4CockpitExternal
ObjectTemplate.geometry ZPU-4_Barrel
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasDynamicShadow 1
rem *** ZPU-4CockpitInternal ***
ObjectTemplate.create SimpleObject ZPU-4CockpitInternal
rem *** ZPU-4CockpitSelector ***
LodSelectorTemplate.create DistCompareSelector ZPU-4CockpitSelector
LodSelectorTemplate.addLodDistance 2
LodSelectorTemplate.addLodComparison 0.5
rem *** ZPU-4_gun_barrel ***
ObjectTemplate.create RotationalBundle ZPU-4_gun_barrel
rem -------------------------------------
ObjectTemplate.addTemplate ZPU-4GunBarrel
ObjectTemplate.setPosition 0/0/0
rem -------------------------------------
ObjectTemplate.setMaxSpeed 0/0/0
ObjectTemplate.setAcceleration 0/0/0
rem *** ZPU-4_Camera ***
ObjectTemplate.create Camera ZPU-4_Camera
ObjectTemplate.setMaxSpeed 0/0/0
ObjectTemplate.setAcceleration 0/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY
rem *** ZPU-4_Seat ***
ObjectTemplate.create SeatObject ZPU-4_Seat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
ObjectTemplate.seatFlags c_SeatIsOutside
rem *** ZPU-4_handle1 ***
ObjectTemplate.create RotationalBundle ZPU-4_handle1
rem ObjectTemplate.geometry flak38_handle02_m1
rem -------------------------------------
ObjectTemplate.addTemplate ZPU-4_handle1_grip
rem -------------------------------------
ObjectTemplate.setMaxSpeed 0/800/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIMouseLookX
rem *** ZPU-4_handle1_grip ***
ObjectTemplate.create AnimatedBundle ZPU-4_handle1_grip
ObjectTemplate.addSkeletonIK Bip01_L_Hand 0.2/0.0/0.0 0/0/0
rem *** ZPU-4_handle2 ***
ObjectTemplate.create RotationalBundle ZPU-4_handle2
rem ObjectTemplate.geometry flak38_handle02_m1
rem -------------------------------------
ObjectTemplate.addTemplate ZPU-4_handle2_grip
rem -------------------------------------
ObjectTemplate.setMaxSpeed 0/800/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY
rem *** ZPU-4_handle2_grip ***
ObjectTemplate.create AnimatedBundle ZPU-4_handle2_grip
ObjectTemplate.addSkeletonIK Bip01_R_Hand 0.5/0.0/0.1 0/90/90
rem *** ZPU-4_pedal ***
ObjectTemplate.create SimpleObject ZPU-4_pedal
ObjectTemplate.geometry flak38_pedal_m1
rem *** ZPU-4_targeter ***
ObjectTemplate.create RotationalBundle ZPU-4_targeter
ObjectTemplate.geometry flak38_targeter_m1
ObjectTemplate.setMinRotation 0/-90/0
ObjectTemplate.setMaxRotation 0/90/0
ObjectTemplate.setMaxSpeed 90/90/90
rem - Tosses from Explosions.
rem *** ZPU-4_pedal_Toss ***
ObjectTemplate.create Bundle flak38_pedal_Toss
ObjectTemplate.geometry flak38_pedal_m1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.sinkInToLandAfterDeathSpeed 10
rem *** ZPU-4_gun_Barrel_Toss ***
ObjectTemplate.create SimpleObject flak38_gun_Barrel_Toss
ObjectTemplate.geometry ZPU-4_Barrel
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.sinkInToLandAfterDeathSpeed 10
rem *** ZPU-4_cannon_Toss ***
ObjectTemplate.create SimpleObject flak38_base_Toss
ObjectTemplate.geometry ZPU-4_Base
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.sinkInToLandAfterDeathSpeed 10
rem *** ZPU-4_gun_Toss ***
ObjectTemplate.create SimpleObject flak38_gun_Toss
ObjectTemplate.geometry ZPU-4_Gun
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.sinkInToLandAfterDeathSpeed 10
rem *** flak38_lavett_Toss ***
ObjectTemplate.create SimpleObject flak38_lavett_Toss
rem ObjectTemplate.geometry flak38_lavett_m1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.sinkInToLandAfterDeathSpeed 10