I want to make a Ju88A with a guided Wasserfall-Rocket. The Ju88A have 4 passeneger seats. You can get in the Ju88A without crashing and you can change the passenger place from first to second(PcoId 0 to PcoId 1) and you can also use the Wasserfall-Rocket.
Starting the Wasserfall-Rocket is also possible. But if the time is over for guiding, youre in the wrong passenger place( in the first). You can not use the the PcoId 1(the second), but you can use the other three(it shows that im sitting still in the second place). And during the rocket-guide you can not use some usual commands like c_PIAltFire to destroy the rocket.
The Ju88A file is in Objects/Ju88A, the Wasserfall Rocket file is in Objects/Vehicles/Air/WasserfallRocket, (does this any matter?)
In the weapons.con of the Ju88A i have this code:
Code: Select all
rem *** Ju88A_NoseGunner_Gun ***
ObjectTemplate.create FireArms Ju88A_NoseGunner_Gun
ObjectTemplate.setNetworkableInfo TankFireArmInfo
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.setAsynchronyFire 0
ObjectTemplate.aiTemplate WasserFallLauncherWeapon
ObjectTemplate.projectileTemplate WasserfallRocket
ObjectTemplate.projectilePosition 0/0/2
ObjectTemplate.visibleDummyProjectileTemplate WasserfallRocketDummy
ObjectTemplate.setHasMag 1
ObjectTemplate.magSize 1
ObjectTemplate.numOfMag -1
ObjectTemplate.magType 0
ObjectTemplate.reloadtime 20
ObjectTemplate.roundOfFire 10000
ObjectTemplate.autoReload 1
ObjectTemplate.AmmoType 10
ObjectTemplate.velocity 45
ObjectTemplate.fireingForce 30
ObjectTemplate.disableWhenFired 1
ObjectTemplate.create SimpleObject WasserfallRocketDummy
ObjectTemplate.geometry Wasserfall_r_rocket_m1
ObjectTemplate.hasCollisionPhysics 1
Code: Select all
rem **********************************************
rem * Nose Gunner PCO *
rem **********************************************
rem *** Ju88A_NoseGunner_PCO ***
ObjectTemplate.create PlayerControlObject Ju88A_NoseGunner_PCO
ObjectTemplate.setNetworkableInfo Ju88ABodyInfo
ObjectTemplate.aiTemplate B17MG
rem -------------------------------------
ObjectTemplate.addTemplate Ju88A_NoseGunnerSeat
ObjectTemplate.setPosition 0/-0.199/-0.339
ObjectTemplate.addTemplate Ju88A_NoseGunner_WeaponBase
ObjectTemplate.setPosition 0.141/-0.141/0.435
ObjectTemplate.addTemplate Ju88A_Entry
ObjectTemplate.setPosition -0.05/-0.173/-4.8
beginrem
ObjectTemplate.addTemplate Ju88A_NoseGunner_RightFoot
ObjectTemplate.setPosition 0.2/-0.499/0
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.addTemplate Ju88A_NoseGunner_LeftFoot
ObjectTemplate.setPosition -0.2/-0.499/0
ObjectTemplate.setRotation 0/0/0
endrem
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation 1.5/-1.298/-0.338 0/0/0
ObjectTemplate.GUIIndex 31
ObjectTemplate.setVehicleIcon "Vehicle/Junker_Icon.tga"
ObjectTemplate.setVehicleIconPos 85/120
ObjectTemplate.setNumberOfWeaponIcons 1
ObjectTemplate.setPrimaryAmmoIcon "Ammo/Icon_bullet.tga"
ObjectTemplate.setPrimaryAmmoBar ABAmmoBarOnly
ObjectTemplate.setCrossHairType CHTIcon
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTBomber
ObjectTemplate.setToolTipType TTBomber
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_plane_16x16.tga"
rem *** Ju88A_Turret_Nose ***
ObjectTemplate.create RotationalBundle Ju88A_NoseGunner_WeaponBase
ObjectTemplate.setNetworkableInfo Ju88ANoseTurretInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/NoseGun.ssc
rem -------------------------------------
ObjectTemplate.addTemplate Ju88A_NoseGunner_Camera
ObjectTemplate.setPosition 0/0.20/-0.259
ObjectTemplate.addTemplate Ju88A_NoseGunner_Gun
ObjectTemplate.setPosition 0/-0.102/-0.305
rem ObjectTemplate.setPosition 0/-0.158/-0.306
rem -------------------------------------
ObjectTemplate.setMinRotation -50/-30/0
ObjectTemplate.setMaxRotation 50/30/0
ObjectTemplate.setMaxSpeed 80/80/0
ObjectTemplate.setAcceleration 5000/5000/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY
rem *** Ju88A_NoseGunnerSeat ***
ObjectTemplate.create SeatObject Ju88A_NoseGunnerSeat
ObjectTemplate.seatFlags c_SeatShowHalfBodySoldier
ObjectTemplate.seatFlags c_SeatIsOutside
rem *** Ju88A_NoseGunner_Camera ***
ObjectTemplate.create Camera Ju88A_NoseGunner_Camera
ObjectTemplate.setPivotPosition 0/0.25/0.2
ObjectTemplate.setMaxSpeed 0/0/0
ObjectTemplate.setAcceleration 0/0/0
ObjectTemplate.CVMChase 0
ObjectTemplate.CVMFrontChase 0
ObjectTemplate.CVMFlyBy 1
ObjectTemplate.CVMTrace 0
ObjectTemplate.CVMExternTrace 0
beginrem
ObjectTemplate.create AnimatedBundle Ju88A_NoseGunner_RightFoot
ObjectTemplate.addSkeletonIK Bip01_R_Foot 0/0/0 0/0/0
ObjectTemplate.create AnimatedBundle Ju88A_NoseGunner_LeftFoot
ObjectTemplate.addSkeletonIK Bip01_L_Foot 0/0/0 0/0/0
endrem
Best regards,
elvan1111