How do I create a new PCO for an existing vehicle ie the Littlebird?
I want to add a Co-Pilot point on the Littlebird, but have no idea how I do it....
Also, with this co-pilot, how do I code it so that when the co-pilot hits PIFire it uses the code "Enemy Spotted" and PIAltFire to request artillery on that selected point?
May sound far fetched but it's a concept that I would like to integrate into my mod.
Thanks
Page 1 of 1
Create a new PCO on an existing Vehicle.... How?
#1
Posted 10 June 2006 - 05:28 PM
Head Designer
Lusted Enterprises Design Team (Site under construction)
Lusted Enterprises Design Team (Site under construction)
#2
Posted 10 June 2006 - 10:34 PM
ok as far as the added pco here goes:
ObjectTemplate.create PlayerControlObject dcon_semi_b_passengerRF
ObjectTemplate.modifiedByUser "Censored"
ObjectTemplate.setNetworkableInfo BasicInfo
ObjectTemplate.createdInEditor 1
rem ---BeginComp:VehicleHud ---
ObjectTemplate.createComponent VehicleHud
ObjectTemplate.vehicleHud.hudName "KILLMESSAGE_VEHICLE_whatever"
ObjectTemplate.vehicleHud.miniMapIconLeaderSize Medium
ObjectTemplate.vehicleHud.useChildHud 1
ObjectTemplate.vehicleHud.vehicleIconPos 17/13
rem ---EndComp ---
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.aiTemplate HmmwvPassenger
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation 2/0/-0.5 0/0/0
ObjectTemplate.exitSpeedMod 0.4
ObjectTemplate.seatInformation (the name of THIS PCO for example"dcon_semi_b_passengerRF") 0/0/0 0/0/0
ObjectTemplate.seatAnimationSystem Objects/Vehicles/Land/jep_paratrooper/3p_coDriver_gunner_animSys.inc
------only include me if you want the player to be able to rotate and look around
ObjectTemplate.seatLeftRotationLimit -135
ObjectTemplate.seatRightRotationLimit 135
-------------------------------------------------------------------------------------
ObjectTemplate.cockpitSubGeom 1
ObjectTemplate.autoUseAbility 1
ObjectTemplate.hasRestrictedExit 1
ObjectTemplate.isOpenVehicle 1
that above seatanimationsystem file makes the soldier sit as if in a chair
if you wana have that soldier on 1 knee use this for seatanimationsystem
Objects/Vehicles/Common/Animations/3p_passenger_B2_animSys.inc
if you want him to stand upright then rem the seatanimationsystem line out!
then add that to the tweak for the vehicle, and then on the vehicles main pco add this
ObjectTemplate.addTemplate dcon_semi_b_passengerRF
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 0/0/0
to move the player himself around just adjust the above position and rotations, leave the positions on the seat info line alone unless the character is gonna be looking through a scope or something!
i am still looking into the spotting for arty and spotting out things
read again as i have editted several times to add things
read again as i have editted and added things several times
ObjectTemplate.create PlayerControlObject dcon_semi_b_passengerRF
ObjectTemplate.modifiedByUser "Censored"
ObjectTemplate.setNetworkableInfo BasicInfo
ObjectTemplate.createdInEditor 1
rem ---BeginComp:VehicleHud ---
ObjectTemplate.createComponent VehicleHud
ObjectTemplate.vehicleHud.hudName "KILLMESSAGE_VEHICLE_whatever"
ObjectTemplate.vehicleHud.miniMapIconLeaderSize Medium
ObjectTemplate.vehicleHud.useChildHud 1
ObjectTemplate.vehicleHud.vehicleIconPos 17/13
rem ---EndComp ---
ObjectTemplate.floaterMod 0
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.aiTemplate HmmwvPassenger
rem -------------------------------------
ObjectTemplate.setSoldierExitLocation 2/0/-0.5 0/0/0
ObjectTemplate.exitSpeedMod 0.4
ObjectTemplate.seatInformation (the name of THIS PCO for example"dcon_semi_b_passengerRF") 0/0/0 0/0/0
ObjectTemplate.seatAnimationSystem Objects/Vehicles/Land/jep_paratrooper/3p_coDriver_gunner_animSys.inc
------only include me if you want the player to be able to rotate and look around
ObjectTemplate.seatLeftRotationLimit -135
ObjectTemplate.seatRightRotationLimit 135
-------------------------------------------------------------------------------------
ObjectTemplate.cockpitSubGeom 1
ObjectTemplate.autoUseAbility 1
ObjectTemplate.hasRestrictedExit 1
ObjectTemplate.isOpenVehicle 1
that above seatanimationsystem file makes the soldier sit as if in a chair
if you wana have that soldier on 1 knee use this for seatanimationsystem
Objects/Vehicles/Common/Animations/3p_passenger_B2_animSys.inc
if you want him to stand upright then rem the seatanimationsystem line out!
then add that to the tweak for the vehicle, and then on the vehicles main pco add this
ObjectTemplate.addTemplate dcon_semi_b_passengerRF
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 0/0/0
to move the player himself around just adjust the above position and rotations, leave the positions on the seat info line alone unless the character is gonna be looking through a scope or something!
i am still looking into the spotting for arty and spotting out things
read again as i have editted several times to add things
read again as i have editted and added things several times
This post has been edited by masterx: 10 June 2006 - 10:32 PM
Proud to be a Desert Conflict Coder

The only limit of ones self is the limit his mind imposes on himself! --X

The only limit of ones self is the limit his mind imposes on himself! --X
Page 1 of 1

Sign In
Register
Help


MultiQuote