Official BF Editor Forums: Create a new PCO on an existing Vehicle.... How? - Official BF Editor Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Create a new PCO on an existing Vehicle.... How?

#1 User is offline   D_Lusted Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 173
  • Joined: 27-February 06
  • Location:UK

Posted 10 June 2006 - 05:28 PM

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
Head Designer
Lusted Enterprises Design Team (Site under construction)
0

#2 User is offline   masterx Icon

  • Member
  • PipPip
  • Group: Members
  • Posts: 128
  • Joined: 28-August 05
  • Gender:Male
  • Location:Maricopa, Az, USA
  • Interests:Linux, Posix, PHP, Perl, Python, Linux, more Linux, Real Hacking(Security Testing), Did i forget Linux??

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

This post has been edited by masterx: 10 June 2006 - 10:32 PM

Proud to be a Desert Conflict Coder
Posted Image
The only limit of ones self is the limit his mind imposes on himself! --X
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users