This page is under construction
Archives/BF1942/levels/Dustbowl Modded/DustBowl_Modded.rfa
bf1942/levels/DustBowl_Modded/objects/Stationary_Weapons/Tower_TOW/Objects.con
rem ============================================================================
rem
rem *** TOW on low Tripod ***
rem
ObjectTemplate.create PlayerControlObject Tower_TOW
ObjectTemplate.networkableInfo StatTOW_BodyInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.aiTemplate StatTOWAI
ObjectTemplate.setPcoId 0
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.HasArmor 1
ObjectTemplate.HitPoints 35
ObjectTemplate.MaxHitPoints 35
ObjectTemplate.material 52
ObjectTemplate.addArmorEffect 0 e_Browning_Destroy 0/0.1/0.8
ObjectTemplate.addArmorEffect 0 e_RichoCascadesPlane 0/0.25/0
ObjectTemplate.fadeAtTimeToLiveAfterDeath 0
ObjectTemplate.timetoliveafterdeath 4
rem -------------------------------------
ObjectTemplate.addTemplate Stationary_TOW_Holder
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation 0/0.25/-1.2 0/0/0
Objecttemplate.GUIIndex 81
ObjectTemplate.setVehicleIcon "Vehicle/ATS_TOW.tga"
ObjectTemplate.setVehicleIconPos 35/13
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/icon_Tow_Ammo.dds"
ObjectTemplate.setPrimaryAmmoBar ABReloadBarOnly
ObjectTemplate.setCrossHairType CHTCrossHair
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTStationaryMG
ObjectTemplate.setToolTipType TTStationaryMG
ObjectTemplate.setMinimapIcon "Minimap/mini_armourdefsmall.tga"

rem *** Stationary_TOW mount ***
ObjectTemplate.create RotationalBundle Stationary_TOW_Holder
ObjectTemplate.setNetworkableInfo StatTOW_BodyInfo
ObjectTemplate.geometry DC_gun-tripod1_m1
rem -------------------------------------
ObjectTemplate.addTemplate Stationary_TOW_Seat
ObjectTemplate.setPosition 0.45/1.1/-0.2
ObjectTemplate.setRotation 0/-5/0
ObjectTemplate.addTemplate Stationary_TOWEntry
ObjectTemplate.setPosition 0/0.5/-0.6
ObjectTemplate.addTemplate Stationary_TOW_Base
ObjectTemplate.setPosition 0/0.336/0.055
ObjectTemplate.setRotation -179.99/0/0
rem -------------------------------------
ObjectTemplate.setMaxSpeed 60/0/0
ObjectTemplate.setAcceleration 1000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX

rem *** Stationary_TOW mount ***
ObjectTemplate.create Bundle Stationary_TOW_Base
ObjectTemplate.geometry STATTOW_Base
ObjectTemplate.setHasCollisionPhysics 1
rem -------------------------------------
ObjectTemplate.addTemplate Stationary_TOW_Pitch
ObjectTemplate.setPosition 0/0.452/0
ObjectTemplate.setRotation -179.99/0/0
rem -------------------------------------


rem *** Stationary_TOW_Mount ***
ObjectTemplate.create SimpleObject Stationary_TOW_Mount
ObjectTemplate.geometry STATTOW_Base
ObjectTemplate.setHasCollisionPhysics 1

ObjectTemplate.create RotationalBundle Stationary_TOW_Pitch
ObjectTemplate.setNetworkableInfo StatTOW_TurretInfo
rem -------------------------------------
ObjectTemplate.addTemplate lodStatTow_Cockpit
rem ObjectTemplate.setPosition 0.25/0.275/0.80
ObjectTemplate.addTemplate TOW_Unlimited
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.addTemplate Stationary_TOWCamera
ObjectTemplate.setPosition 0.25/0.25/0.50
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation 0/-18/0
ObjectTemplate.setMaxRotation 0/12/0
ObjectTemplate.setMaxSpeed 0/40/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY

ObjectTemplate.create SeatObject Stationary_TOW_Seat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
ObjectTemplate.seatFlags c_SeatIsOutside
ObjectTemplate.seatAnimationUpperBody Ub_KneelMortar
ObjectTemplate.seatAnimationLowerBody Lb_KneelMortar

ObjectTemplate.create Camera Stationary_TOWCamera
ObjectTemplate.setMaxSpeed 0/0/0
ObjectTemplate.setAcceleration 0/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY

ObjectTemplate.create EntryPoint Stationary_TOWEntry
ObjectTemplate.setEntryRadius 2.5

ObjectTemplate.create LodObject lodStatTow_Cockpit
rem -------------------------------------
ObjectTemplate.addTemplate StatTow_Cockpit_External
ObjectTemplate.addTemplate StatTow_Cockpit_Internal
ObjectTemplate.setPosition 0.25/0.275/0.80
rem -------------------------------------
ObjectTemplate.lodSelector StatTow_Cockpit_Selector

ObjectTemplate.create SimpleObject StatTow_Cockpit_External
ObjectTemplate.geometry STATTOW_Body

ObjectTemplate.create SimpleObject StatTow_Cockpit_Internal
ObjectTemplate.geometry TOW_Sight

rem *** StatTow_Cockpit_Selector***
LodSelectorTemplate.create DistCompareSelector StatTow_Cockpit_Selector
LodSelectorTemplate.addLodDistance 1
LodSelectorTemplate.addLodComparison 0.50