This page is under construction
Archives/bf1942/levels/SG_Pacific_Invasion.rfa
bf1942/levels/SG_Pacific_Invasion/Objects/SPAi'emain/Objects.con
rem *** coop/SP version has a 360 rotation and increased radius & AI spawner ***
rem *** gun is remote controlled.
rem *** ai'emain ***
ObjectTemplate.create playercontrolobject ai'emainSP
ObjectTemplate.setNetworkableInfo Ai'emain_BodyInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasArmor 1
ObjectTemplate.hitPoints 500
ObjectTemplate.maxHitPoints 500
ObjectTemplate.material 45
ObjectTemplate.addArmorEffect 35 e_AA-GunDamage 0/0.3/0
ObjectTemplate.addArmorEffect 0 e_scrapmetal_willy 0/0/0
ObjectTemplate.addArmorEffect 0 e_ExplGas 0/0/0
ObjectTemplate.aiTemplate AiemainSP1
rem ----------------------------------
ObjectTemplate.addTemplate lodai'emainSP
rem ----------------------------------
ObjectTemplate.setSoldierExitLocation -2/0.5/0 0/0/0
ObjectTemplate.GUIIndex 19
ObjectTemplate.setVehicleIcon "Vehicle/icon_aiemain.tga"
ObjectTemplate.setVehicleIconPos 45/76
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Weapon/Icon_staff.dds"
ObjectTemplate.setPrimaryAmmoBar ABIconOnly
ObjectTemplate.setCrossHairType CHTIcon
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTAAGun
ObjectTemplate.setToolTipType TTAAGun
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_stationary_16x16.tga"

ObjectTemplate.create lodobject lodai'emainSP
rem ---------------------------------------
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem --------------------------------------
ObjectTemplate.addTemplate ai'emaincomplex
ObjectTemplate.addTemplate ai'emainsimple
ObjectTemplate.addTemplate ai'emainwreck
rem ------------------------------------
ObjectTemplate.lodselector Ai'emainLodSelector

rem *** ai'emainCOMPLEX ***
ObjectTemplate.create bundle ai'emaincomplexSP
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -----------------------------------------
ObjectTemplate.addTemplate ai'emain_towerbaseSP
ObjectTemplate.setRotation -90.0/0.0/0.0
ObjectTemplate.addTemplate ai'emain_entrySP
ObjectTemplate.addTemplate ai'emain_body
rem ------------------------------------

rem *** ai'emain_TOWERBASE ***
ObjectTemplate.create simpleobject ai'emain_towerbaseSP
ObjectTemplate.geometry Ai'emain_tower_base
ObjectTemplate.setHasCollisionPhysics 1
ObjectTemplate.setHasResponsePhysics 1
ObjectTemplate.destroyed 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.sinkInToLandAfterDeathSpeed 10

rem *** ai'emain_ENTRY ***
ObjectTemplate.create entrypoint ai'emain_entrySP
ObjectTemplate.setEntryRadius 15

rem *** ai'emain_BODY ***
ObjectTemplate.create rotationalbundle ai'emain_bodySP
ObjectTemplate.setNetworkableInfo Ai'emain_BodyInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/Ai'emainCarriage.ssc
rem -------------------------------------
ObjectTemplate.addTemplate lodai'emaincockpit
ObjectTemplate.setPosition 0.0/-300.0/0.0
ObjectTemplate.addTemplate ai'emain_entrySP
ObjectTemplate.addTemplate ai'emain_camerarotateSP
ObjectTemplate.setPosition 0.0/7.1/0.0
ObjectTemplate.addTemplate ai'emain_seatSP
ObjectTemplate.setPosition 0.0/6.9/0.0
ObjectTemplate.addTemplate ai'emain_chairandgunsupports
ObjectTemplate.setPosition 0.0/7.1/-0.2
ObjectTemplate.setRotation -90.0/0.0/0.0
ObjectTemplate.addTemplate ai'emain_staffweaponrotateSP
ObjectTemplate.setPosition 0.0/7.7283/0.17573
rem -----------------------------------------
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/0/0
ObjectTemplate.setMaxSpeed 100/0/0
ObjectTemplate.setAcceleration 1000/0/0
ObjectTemplate.setInputToYaw c_PIMouseLookX






rem *** ai'emain_camerarotate ***
ObjectTemplate.create rotationalbundle ai'emain_camerarotateSP
ObjectTemplate.setNetworkableInfo Ai'emain_BodyInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/Ai'emaingunbase.ssc
rem --------------------------------------
ObjectTemplate.addTemplate ai'emain_cameraSP
rem --------------------------------------
ObjectTemplate.setMinRotation 0/-30/0
ObjectTemplate.setMaxRotation 0/60/0
ObjectTemplate.setMaxSpeed 0/100/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY

rem *** ai'emain_camera ***
ObjectTemplate.create camera ai'emain_cameraSP
ObjectTemplate.setMaxSpeed 0/0/0
ObjectTemplate.setAcceleration 0/0/0
rem ObjectTemplate.OutsideHudOffset 0/-0.4/4.45
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY


rem *** ai'emain_seat ***
ObjectTemplate.create seatobject ai'emain_seatSP
rem ObjectTemplate.seatFlags c_SeatShowHalfBodySoldier
rem ObjectTemplate.seatFlags c_SeatIsOutside

rem *** ai'emain_chairandgunsupports ***
ObjectTemplate.create simpleobject ai'emain_chairandgunsupports
ObjectTemplate.geometry Ai'emain_chair
ObjectTemplate.setHasCollisionPhysics 1

rem *** ai'emain_staffweaponrotate ***
ObjectTemplate.create rotationalbundle ai'emain_staffweaponrotateSP
ObjectTemplate.setNetworkableInfo Ai'emain_BodyInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/Ai'emaingunbase.ssc
rem -------------------------------------------
ObjectTemplate.addTemplate ai'emain_staffweapon
rem -------------------------------------------
ObjectTemplate.setMinRotation 0/-30/0
ObjectTemplate.setMaxRotation 0/70/0
ObjectTemplate.setMaxSpeed 0/100/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIMouseLookY