This page is under construction
Archives/BF1942/levels/Dustbowl Modded/DustBowl_Modded.rfa
bf1942/levels/DustBowl_Modded/objects/vehicles/Air/Mi28/Objects.con
rem ******************************************
rem - 21CW
rem - My 1st. attemp IM/was a noob but lots o searxhing and time prevails!8)
rem - 09/27/04
rem - by JD from 21CW
rem - inspired by DC apache and POE mi28 ..a melting pot of many codes and much of my own
rem - all original meshes All original textures and main sounds
rem - thanks to Sanglant for final physics tweaks assist
rem ******************************************

rem **** mi28 ****
ObjectTemplate.create playercontrolobject MI-28_Havoc
ObjectTemplate.setNetworkableInfo Mi28_Body_Info
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasDynamicShadow 1
objectTemplate.cullRadiusScale 5
ObjectTemplate.drag 0.8
ObjectTemplate.mass 2600
ObjectTemplate.inertiaModifier 0.415/.311/.4
ObjectTemplate.explosionRadius 10
ObjectTemplate.explosionDamage 6
ObjectTemplate.hasArmor 1
ObjectTemplate.angleMod 1
ObjectTemplate.speedMod 2
ObjectTemplate.hitpoints 190
ObjectTemplate.maxhitpoints 190
ObjectTemplate.material 63
ObjectTemplate.criticalDamage 20
ObjectTemplate.hpLostWhileCriticalDamage 1.5
ObjectTemplate.explosionForceMod 15
ObjectTemplate.hpLostWhileUpSideDown 100
ObjectTemplate.hpLostWhileDamageFromWater 10
ObjectTemplate.addArmorEffect 100 em_StukaDamage 0/0.418/0
ObjectTemplate.addArmorEffect 100 em_PlaneDamage 0/0.418/0
ObjectTemplate.addArmorEffect 50 e_StukaFire 0/0.6/4.94
ObjectTemplate.addArmorEffect 100 e_StukaFire 0/0.4/0
ObjectTemplate.addArmorEffect 50 e_StukaFire 0/0.418/0
ObjectTemplate.addArmorEffect 50 e_warning_jet_iraqi 0/-0.35/7.24
ObjectTemplate.addArmorEffect 0 e_ExplGas_air 0/0/0
ObjectTemplate.addArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.damageFromWater 1
ObjectTemplate.aiTemplate Mi28

rem -------------------------------------
ObjectTemplate.addTemplate lodMi28
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation -2.5/0/-1.364 0/0/0
ObjectTemplate.GUIIndex 108
ObjectTemplate.setvehicleIcon "Vehicle/Icon_Mi28.TGA"
ObjectTemplate.setvehicleIconPos 60/74
ObjectTemplate.setnumberOfWeaponIcons 2
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_hellfire.dds"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBar
ObjectTemplate.setSecondaryAmmoIcon "Ammo/Icon_rocket.tga"
ObjectTemplate.setSecondaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setcrossHairType CHTIcon
ObjectTemplate.setvehicleCategory VCAir
ObjectTemplate.setVehicleType VTDiveBomber
ObjectTemplate.setToolTipType TTDiveBomber
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_heli1_16x16.tga"



rem **** lodmi28 ****
ObjectTemplate.create lodobject lodmi28
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate mi28Complex
ObjectTemplate.addTemplate mi28Simple
ObjectTemplate.addTemplate mi28Wreck
rem -------------------------------------
ObjectTemplate.lodSelector mi28LodSelector


rem **** mi28complex ****
ObjectTemplate.create bundle mi28complex
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
rem **** mi28entitys ****
ObjectTemplate.addTemplate lodmi28cockpit
ObjectTemplate.addTemplate mi28camera
ObjectTemplate.setPosition 0/0.34/3.63
ObjectTemplate.addTemplate mi28entry
ObjectTemplate.setPosition 0.0/0.0/4.23
ObjectTemplate.addTemplate mi28pilotseat
ObjectTemplate.setPosition 0.0/0.2/4.35
ObjectTemplate.addTemplate mi28DummyEngineRack
ObjectTemplate.setPosition 0.0/1.3092/3.0365
ObjectTemplate.addTemplate mi28DummyRearEngineRack
ObjectTemplate.setPosition 0.71/1.19/-7.6145

ObjectTemplate.addTemplate mi28EngineRack1
ObjectTemplate.setPosition 0/2/2.5
ObjectTemplate.addTemplate mi28EngineRack2
ObjectTemplate.setPosition 0/2/-2.5
ObjectTemplate.addTemplate mi28EngineRack3
ObjectTemplate.setPosition 0/2/0

ObjectTemplate.addTemplate mi28_FFARload
ObjectTemplate.addTemplate mi28MissileRack
ObjectTemplate.addTemplate mi28copilot_pco
ObjectTemplate.addTemplate mi28_FFARrackl
ObjectTemplate.setPosition -2.134/-0.68/2.2685
ObjectTemplate.addTemplate mi28_FFARrackr
ObjectTemplate.setPosition 2.126/-0.68/2.2685

rem **** Dummy mi28_FARRpod for 8 lodout ****
ObjectTemplate.addTemplate mi28_FARRpoda
ObjectTemplate.setPosition -2.267/-0.738/2.2785
ObjectTemplate.addTemplate mi28_FARRpodb
ObjectTemplate.setPosition -2.42/-0.738/2.2785
ObjectTemplate.addTemplate mi28_FARRpodc
ObjectTemplate.setPosition 2.267/-0.738/2.2785
ObjectTemplate.addTemplate mi28_FARRpodd
ObjectTemplate.setPosition 2.42/-0.738/2.2785
ObjectTemplate.addTemplate mi28_FARRpode
ObjectTemplate.setPosition -2.267/-0.488/2.2785
ObjectTemplate.addTemplate mi28_FARRpodf
ObjectTemplate.setPosition -2.42/-0.488/2.2785
ObjectTemplate.addTemplate mi28_FARRpodg
ObjectTemplate.setPosition 2.267/-0.488/2.2785
ObjectTemplate.addTemplate mi28_FARRpodh
ObjectTemplate.setPosition 2.42/-0.488/2.2785

ObjectTemplate.addTemplate mi28_Hydrapodl
ObjectTemplate.setPosition -1.467/-0.652/2.396
ObjectTemplate.addTemplate mi28_Hydrapodr
ObjectTemplate.setPosition 1.467/-0.652/2.396
ObjectTemplate.addTemplate mi28tirer
ObjectTemplate.setPosition 1.15/-1.75/3.79
ObjectTemplate.addTemplate mi28tirel
ObjectTemplate.setPosition -1.15/-1.75/3.79
ObjectTemplate.addTemplate mi28rearwheelrot
ObjectTemplate.setPosition 0.0/-1.04/-6.96




rem **** mi28rearwheel ****
ObjectTemplate.create rotationalbundle mi28rearwheelrot
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.geometry mi28_tailwheelhousing
ObjectTemplate.setNetworkableInfo Mi28_Body_Info
ObjectTemplate.setminRotation -30/0/0
ObjectTemplate.setmaxRotation 30/0/0
ObjectTemplate.setMaxSpeed 30/0/0
ObjectTemplate.setacceleration -80/0/0
ObjectTemplate.setautomaticreset 1
remObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.addTemplate mi28reartire
ObjectTemplate.setPosition 0.0/-0.25/-0.3



rem **** mi28copilot_pco ****
ObjectTemplate.create playercontrolobject mi28copilot_pco
ObjectTemplate.setNetworkableInfo Mi28_Body_Info
ObjectTemplate.setSoldierExitLocation -3/0/2.9 0/0/0
ObjectTemplate.ShowPCOCockpit 0
ObjectTemplate.hasRestrictedExit 1
ObjectTemplate.setHasTurretIcon 1
ObjectTemplate.GUIIndex 54
ObjectTemplate.setvehicleIcon "Vehicle/Icon_Mi28.dds"
ObjectTemplate.setvehicleIconPos 75/88
ObjectTemplate.setNumberOfWeaponIcons 2
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_m260.dds"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setSecondaryAmmoIcon "Ammo/Icon_bullet.tga"
ObjectTemplate.setSecondaryAmmoBar ABAmmoBarReloadBar
ObjectTemplate.setcrossHairType CHTCrossHair
ObjectTemplate.setvehicleCategory VCLand
ObjectTemplate.setvehicleType VTFighter
ObjectTemplate.setToolTipType TTFighter
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_heli1_16x16.tga"
ObjectTemplate.aiTemplate Mi28_Cannon
ObjectTemplate.addTemplate mi28cannonrotation
ObjectTemplate.setPosition 0.0/-1.06/5.655
ObjectTemplate.addTemplate mi28seat
ObjectTemplate.setPosition 0.0/-0.42/5.635

ObjectTemplate.addTemplate mi28entry
ObjectTemplate.setPosition 0.0/0.0/5.73

rem **** lodmi28gunnercockpit ****
ObjectTemplate.create lodobject lodmi28gunnercockpit
ObjectTemplate.lodSelector Mi28gunnercockpitselector
ObjectTemplate.addTemplate Mi28gunnercockpitexternal
ObjectTemplate.addTemplate Mi28gunnercockpitinternal
ObjectTemplate.setPosition 0.0/0.0/5.96

rem **** mi28gunnercockpitexternal ****
ObjectTemplate.create simpleobject mi28gunnercockpitexternal

rem *** mi28gunnercockpitinternal ***
ObjectTemplate.create simpleobject mi28gunnercockpitinternal


rem **** mi28_FFARrackl ****
ObjectTemplate.create simpleobject mi28_FFARrackl
ObjectTemplate.geometry mi28_FFARrackl

rem **** mi28_FFARrackr ****
ObjectTemplate.create simpleobject mi28_FFARrackr
ObjectTemplate.geometry mi28_FFARrackl

rem **** mi28_FARRpod ****
ObjectTemplate.create simpleobject mi28_FARRpoda
ObjectTemplate.geometry mi28_FARRpod

rem **** mi28_FARRpod ****
ObjectTemplate.create simpleobject mi28_FARRpodb
ObjectTemplate.geometry mi28_FARRpod

rem **** mi28_FARRpod ****
ObjectTemplate.create simpleobject mi28_FARRpodc
ObjectTemplate.geometry mi28_FARRpod

rem **** mi28_FARRpod ****
ObjectTemplate.create simpleobject mi28_FARRpodd
ObjectTemplate.geometry mi28_FARRpod

rem **** mi28_FARRpod ****
ObjectTemplate.create simpleobject mi28_FARRpode
ObjectTemplate.geometry mi28_FARRpod

rem **** mi28_FARRpod ****
ObjectTemplate.create simpleobject mi28_FARRpodf
ObjectTemplate.geometry mi28_FARRpod

rem **** mi28_FARRpod ****
ObjectTemplate.create simpleobject mi28_FARRpodg
ObjectTemplate.geometry mi28_FARRpod

rem **** mi28_FARRpod ****
ObjectTemplate.create simpleobject mi28_FARRpodh
ObjectTemplate.geometry mi28_FARRpod

rem **** mi28_Hydrapodl ****
ObjectTemplate.create simpleobject mi28_Hydrapodl
ObjectTemplate.geometry mi28_Hydrapodl

rem **** mi28_mi28_Hydrapodr ****
ObjectTemplate.create simpleobject mi28_Hydrapodr
ObjectTemplate.geometry mi28_Hydrapodl

rem **** mi28copilot_weaponbase ****
ObjectTemplate.create bundle mi28copilot_weaponbase
ObjectTemplate.setNetworkableInfo Mi28_Body_Info
ObjectTemplate.addTemplate Mi28cannonrotation


rem **** mi28cannonrotation ****
ObjectTemplate.create rotationalbundle mi28cannonrotation
ObjectTemplate.setNetworkableInfo Mi28_Body_Info
ObjectTemplate.attachToListener 1
ObjectTemplate.geometry Mi28_gunbase
ObjectTemplate.setminRotation -90/0/0
ObjectTemplate.setmaxRotation 90/0/0
ObjectTemplate.setMaxSpeed 80/0/0
ObjectTemplate.setacceleration 5000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.addTemplate mi28cannonbarrel
ObjectTemplate.setPosition -0.0/-0.3/0.55


rem **** mi28gunbarrel ****
ObjectTemplate.create rotationalbundle mi28cannonbarrel
ObjectTemplate.setNetworkableInfo Mi28_Body_Info
ObjectTemplate.attachToListener 1
ObjectTemplate.setminRotation 0/-24/0
ObjectTemplate.setmaxRotation 0/30/0
ObjectTemplate.setMaxSpeed 0/60/0
ObjectTemplate.setacceleration 0/5000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY
ObjectTemplate.addTemplate Mi28_S5Arms
ObjectTemplate.setPosition 0/0.865/0.2355
ObjectTemplate.addTemplate mi28cannonweapon
ObjectTemplate.addTemplate mi28copilot_camera
ObjectTemplate.setPosition 0.0/0.25/1.1


rem **** mi28camera ****
ObjectTemplate.create camera mi28camera
ObjectTemplate.setminRotation -45/-35/0
ObjectTemplate.setmaxRotation 45/15/0
ObjectTemplate.setmaxSpeed 90/90/0
ObjectTemplate.setacceleration 5000/-5000/0
ObjectTemplate.setinputToYaw c_PIMouseLookX
ObjectTemplate.setinputToPitch c_PIMouseLookY
ObjectTemplate.toggleMouseLook 1
ObjectTemplate.OutsideHudOffset 0/0/4.2


rem **** lodmi28cockpit ****
ObjectTemplate.create lodobject lodmi28cockpit
ObjectTemplate.lodSelector Mi28cockpitSelector
ObjectTemplate.addTemplate mi28cockpitexternal
ObjectTemplate.addTemplate mi28cockpitinternal
ObjectTemplate.setPosition 0.0/-0.33/2.1355

rem **** mi28cockpitexternal ****
ObjectTemplate.create bundle mi28cockpitexternal
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.geometry Mi28_Fus_M1


rem **** mi28cockpitinternal ****
ObjectTemplate.create Bundle mi28cockpitinternal
ObjectTemplate.geometry MI28_dash



rem **** mi28copilot_camera ****
ObjectTemplate.create camera mi28copilot_camera
ObjectTemplate.setMinRotation -60/-20/0
ObjectTemplate.setMaxRotation 60/60/0
ObjectTemplate.setMaxSpeed 60/60/0
ObjectTemplate.setAcceleration 500/100/0
ObjectTemplate.OutsideHudOffset 0/0/2.0


rem **** mi28pilotseat ****
ObjectTemplate.create seatobject mi28pilotseat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier


rem **** mi28seat ****
ObjectTemplate.create seatobject mi28seat
ObjectTemplate.seatFlags c_SeatShowHalfBodySoldier


rem **** mi28entry ****
ObjectTemplate.create entrypoint mi28entry
ObjectTemplate.setEntryRadius 4



rem **** mi28topprop ****
ObjectTemplate.create lodobject lodmi28topprop
ObjectTemplate.addTemplate mi28toppropstatic
ObjectTemplate.addTemplate mi28toppropblurred
ObjectTemplate.lodSelector mi28PropSelector


rem **** mi28toppropstatic ****
ObjectTemplate.create simpleobject mi28toppropstatic
ObjectTemplate.geometry Mi28_Prop



rem **** mi28toppropblurred ****
ObjectTemplate.create simpleobject mi28toppropblurred
ObjectTemplate.geometry Mi28_Prop_blur


rem **** Mi28PropellerBlurred ****
ObjectTemplate.create SimpleObject Mi28PropellerBlurred
ObjectTemplate.geometry Mi28_Prop_Blur
ObjectTemplate.hasCollisionPhysics 1
LodSelectorTemplate.create CompareSelector mi28PropSelector
LodSelectorTemplate.addLodComparison 0.08



rem **** mi28rearprop ****
ObjectTemplate.create lodobject lodmi28rearprop
rem -------------------------------------
ObjectTemplate.addTemplate mi28rearpropstatic
ObjectTemplate.addTemplate mi28rearpropblurred
rem -------------------------------------
ObjectTemplate.lodSelector mi28PropSelector


rem **** mi28rearpropstatic ****
ObjectTemplate.create simpleobject mi28rearpropstatic
ObjectTemplate.geometry Mi28_RearProp
ObjectTemplate.setPosition 1/1/1
ObjectTemplate.setRotation 0/270/0

rem **** mi28rearpropblurred ****
ObjectTemplate.create simpleobject mi28rearpropblurred
ObjectTemplate.geometry Mi28_RearProp_blur
LodSelectorTemplate.create CompareSelector mi28PropSelector
LodSelectorTemplate.addLodComparison 0.08


rem **** mi28DummyEngineRack ****
ObjectTemplate.create RotationalBundle mi28DummyEngineRack
ObjectTemplate.setNetworkableInfo Mi28_Body_Info
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate mi28DummyEngine
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 0/-90/0
rem -------------------------------------
ObjectTemplate.setMinRotation -2/-2/-2
ObjectTemplate.setMaxRotation 2/2/2
ObjectTemplate.setMaxSpeed 150/150/-150
ObjectTemplate.setAcceleration 150/150/-150
ObjectTemplate.setInputToRoll c_PIRoll
ObjectTemplate.setInputToPitch c_PIPitch
ObjectTemplate.setAutomaticReset 1


rem **** mi28DummyRearEngineRack ****
ObjectTemplate.create Bundle mi28DummyRearEngineRack
ObjectTemplate.setNetworkableInfo Mi28_Body_Info
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate mi28DummyRearEngine
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotatation 0/270/0
rem -------------------------------------
beginrem
ObjectTemplate.setMinRotation -2/-2/-2
ObjectTemplate.setMaxRotation 2/2/2
ObjectTemplate.setMaxSpeed 150/150/-150
ObjectTemplate.setAcceleration 150/150/-150
ObjectTemplate.setInputToRoll c_PIRoll
ObjectTemplate.setInputToPitch c_PIPitch
ObjectTemplate.setAutomaticReset 1
endrem

rem **** mi28EngineRack1 ****
ObjectTemplate.create RotationalBundle Mi28EngineRack1
rem ObjectTemplate.setNetworkableInfo Mi28_Body_Info
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate mi28HoverEngine1
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 0/270/0
rem -------------------------------------
ObjectTemplate.setMinRotation -20/-20/-20
ObjectTemplate.setMaxRotation 20/20/20
ObjectTemplate.setMaxSpeed 150/150/-150
ObjectTemplate.setAcceleration 150/150/-150
ObjectTemplate.setInputToRoll c_PIYaw
ObjectTemplate.setInputToPitch c_PIPitch
ObjectTemplate.setAutomaticReset 1


rem **** mi28EngineRack2 ****
ObjectTemplate.create RotationalBundle Mi28EngineRack2
rem ObjectTemplate.setNetworkableInfo Mi28_Body_Info
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate mi28HoverEngine2
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 0/270/0
rem -------------------------------------
ObjectTemplate.setMinRotation -20/-20/-20
ObjectTemplate.setMaxRotation 20/20/20
ObjectTemplate.setMaxSpeed 150/150/150
ObjectTemplate.setAcceleration 150/150/150
ObjectTemplate.setInputToRoll c_PIYaw
ObjectTemplate.setInputToPitch c_PIPitch
ObjectTemplate.setAutomaticReset 1

rem **** mi28EngineRack3 ****
ObjectTemplate.create RotationalBundle Mi28EngineRack3
rem ObjectTemplate.setNetworkableInfo Mi28_Body_Info
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate mi28HoverEngine3
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 0/270/0
rem -------------------------------------
ObjectTemplate.setMinRotation -20/-20/-20
ObjectTemplate.setMaxRotation 20/20/20
ObjectTemplate.setMaxSpeed 150/150/-150
ObjectTemplate.setAcceleration 150/150/-150
ObjectTemplate.setInputToRoll c_PIRoll
ObjectTemplate.setInputToPitch c_PIPitch
ObjectTemplate.setAutomaticReset 1

rem **** mi28gunnercockpitselector ****
LodSelectorTemplate.create distcompareselector mi28gunnercockpitselector
LodSelectorTemplate.addLodDistance 20
LodSelectorTemplate.addLodComparison 0.5


rem **** mi28cockpitselector ****
LodSelectorTemplate.create distcompareselector mi28cockpitselector
LodSelectorTemplate.addLodDistance 10
LodSelectorTemplate.addLodComparison 0.5



rem **** mi28lodselector ****
LodSelectorTemplate.create distcompareselector2 mi28lodselector
LodSelectorTemplate.hasDestroyedLod 1
LodSelectorTemplate.addLodDistance 200


rem **** mi28simple ****
ObjectTemplate.create simpleobject mi28simple
ObjectTemplate.geometry Mi28_fus_L1



rem **** Wreckage ****

ObjectTemplate.create Bundle mi28wreck
ObjectTemplate.geometry mi28_wreck
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.addArmorEffect 50 e_StukaFire 0/0/0
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.addArmorEffect 50 e_StukaFire 0/26.7/-5.93
ObjectTemplate.setPosition 0/26.7/-5.93
ObjectTemplate.mass 300