Jump to content
Official BF Editor Forums
Sign in to follow this  
wurzelsepp

Creating New Positions

Recommended Posts

how can I create new seats for the ah1z?

I wanna create two more seats:

one at the right and one at the left OUTSIDE the heli

Create 2 new PlayerControlObjects under the Ah1z, call them Ah1z_WingSeat_Left and Ah1z_WingSeat_Right for example . Right click on each new PCO and choose makeSeatParent to. Then setup the path to the correct seat animation info for them under the PlayerControlObject componenet (you have to select the animation file path in the animation editor, or add it to the tweak in notepad). Once they are using the correct animations, switch back to the object editor and right click on your 2 new PCO's and choose ENTER, so the soldiers will show up (or maybe not to begin with, because he is probably in the middle of the helicopter). Now move the seats into the correct positions so they are actually "sitting" on the wing stubs, you will need to do this by adding the position numericaly, I suggest moving it 1 or 2 units at a time until its in roughly the right position, you may also need to rotate them as well, then change the decimal places until its perfect. Also setup the SoldierExitPosition for each seat and add a bit of negative and positive rotation on the X axis for the seat, so the soldier can swivel left and right a little and you should be most of the way there.

As a side note, if your not sure what animation files you want for your 2 new seats, try looking at the UH-60's tweak file and see which files the 2 passenger seats use, as i believe they will be the ones you want, ie sitting with legs dangling over the edge, holding their weapons. You would have to pay me ALOT of money to have to sit on the wing stub of a cobra...thats one close haircut in the making lol. Also to note, you will need to make sure your 2 new wingtip PCO's have BasicInfo for the networkable info and if you wish to use your modified Ah1Z in SinglePlayer, you will also have to setup the seats with AI or you will get a crash to desktop when you try to enter those seats.

As im guessing your kinda new to this whole thing, I have included the AI for you to add. You need to add this to the bottom of the AHE_A1Z/ai/objects.ai file

aiTemplatePlugIn.create Unit Ah1Z_Passenger1Unit
aiTemplatePlugIn.equipmentTypeName ParatrooperFixed
aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 1

aiTemplatePlugIn.create ControlInfo Ah1Z_Passenger1Ctrl
aiTemplatePlugIn.driveTurnControl		   PIYaw
aiTemplatePlugIn.driveThrottleControl	   PIThrottle
aiTemplatePlugIn.aimHorizontalControl	   PIMouseLookX
aiTemplatePlugIn.aimVerticalControl		 PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl	  PIMouseLookX
aiTemplatePlugIn.lookVerticalControl		PIMouseLookY
aiTemplatePlugIn.throttleSensitivity	   -1.0
rem aiTemplatePlugIn.pitchSensitivity		   0.021817
rem aiTemplatePlugIn.rollSensitivity		   -0.021817
aiTemplatePlugIn.pitchSensitivity		   0.21817
aiTemplatePlugIn.rollSensitivity		   -0.21817
aiTemplatePlugIn.yawSensitivity			-2.5
rem aiTemplatePlugIn.lookVerticalSensitivity	0.021817
rem aiTemplatePlugIn.lookHorizontalSensitivity -0.021817
aiTemplatePlugIn.lookVerticalSensitivity	0.21817
aiTemplatePlugIn.lookHorizontalSensitivity -0.21817
aiTemplatePlugIn.proportionalConstant	   -7
aiTemplatePlugIn.derivativeConstant	   -1
aiTemplatePlugIn.throttleLookAhead		  1.0
aiTemplatePlugIn.pitchLookAhead			 1.0
aiTemplatePlugIn.rollLookAhead			  1.0
aiTemplatePlugIn.yawLookAhead			   1.0
aiTemplatePlugIn.lookVerticalLookAhead	  1.0
aiTemplatePlugIn.lookHorizontalLookAhead	1.0
aiTemplatePlugIn.throttleScale			  1.0
rem *** Angle in radians ***
aiTemplatePlugIn.pitchScale				 5.0
aiTemplatePlugIn.rollScale				  5.0
aiTemplatePlugIn.yawScale				   0.0020
aiTemplatePlugIn.lookVerticalScale		  1.0
aiTemplatePlugIn.lookHorizontalScale		1.0
aiTemplatePlugIn.setCameraRelativeMinRotationDeg -45/-80/0
aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 60/60/0

rem *** AITemplate ***
aiTemplate.create Ah1Z_Passenger1
aiTemplate.addType ITUnit
aiTemplate.addType ITBiological
aiTemplate.addType ITAir
aiTemplate.addType ITHelicopter
aiTemplate.degeneration 10
aiTemplate.allowedTimeDiff 2
aiTemplate.basicTemp 5
aiTemplate.commonKnowledge 0
aiTemplate.secondary 1
aiTemplate.addPlugIn Ah1Z_Passenger1Unit
aiTemplate.addPlugIn Ah1Z_Passenger1Ctrl

aiTemplatePlugIn.create Unit Ah1Z_Passenger2Unit
aiTemplatePlugIn.equipmentTypeName ParatrooperFixed
aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 1

aiTemplatePlugIn.create ControlInfo Ah1Z_Passenger2Ctrl
aiTemplatePlugIn.driveTurnControl		   PIYaw
aiTemplatePlugIn.driveThrottleControl	   PIThrottle
aiTemplatePlugIn.aimHorizontalControl	   PIMouseLookX
aiTemplatePlugIn.aimVerticalControl		 PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl	  PIMouseLookX
aiTemplatePlugIn.lookVerticalControl		PIMouseLookY
aiTemplatePlugIn.throttleSensitivity	   -1.0
rem aiTemplatePlugIn.pitchSensitivity		   0.021817
rem aiTemplatePlugIn.rollSensitivity		   -0.021817
aiTemplatePlugIn.pitchSensitivity		   0.21817
aiTemplatePlugIn.rollSensitivity		   -0.21817
aiTemplatePlugIn.yawSensitivity			-2.5
rem aiTemplatePlugIn.lookVerticalSensitivity	0.021817
rem aiTemplatePlugIn.lookHorizontalSensitivity -0.021817
aiTemplatePlugIn.lookVerticalSensitivity	0.21817
aiTemplatePlugIn.lookHorizontalSensitivity -0.21817
aiTemplatePlugIn.proportionalConstant	   -7
aiTemplatePlugIn.derivativeConstant	   -1
aiTemplatePlugIn.throttleLookAhead		  1.0
aiTemplatePlugIn.pitchLookAhead			 1.0
aiTemplatePlugIn.rollLookAhead			  1.0
aiTemplatePlugIn.yawLookAhead			   1.0
aiTemplatePlugIn.lookVerticalLookAhead	  1.0
aiTemplatePlugIn.lookHorizontalLookAhead	1.0
aiTemplatePlugIn.throttleScale			  1.0
rem *** Angle in radians ***
aiTemplatePlugIn.pitchScale				 5.0
aiTemplatePlugIn.rollScale				  5.0
aiTemplatePlugIn.yawScale				   0.0020
aiTemplatePlugIn.lookVerticalScale		  1.0
aiTemplatePlugIn.lookHorizontalScale		1.0
aiTemplatePlugIn.setCameraRelativeMinRotationDeg -45/-80/0
aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 60/60/0

rem *** AITemplate ***
aiTemplate.create Ah1Z_Passenger2
aiTemplate.addType ITUnit
aiTemplate.addType ITBiological
aiTemplate.addType ITAir
aiTemplate.addType ITHelicopter
aiTemplate.degeneration 10
aiTemplate.allowedTimeDiff 2
aiTemplate.basicTemp 5
aiTemplate.commonKnowledge 0
aiTemplate.secondary 1
aiTemplate.addPlugIn Ah1Z_Passenger2Unit
aiTemplate.addPlugIn Ah1Z_Passenger2Ctrl

Now use Ah1Z_Passenger1 and Ah1Z_Passenger2 as the AI templates (under the PCO and "default" componenet) for your 2 new seats.

ah1zseats1.jpg

ah1zseats2.jpg

Edited by Fortran

Share this post


Link to post
Share on other sites

that is awsome thanks for showing us noobs how to do this Fortran

lol how awsome would it be to have them laying down just on top of those scoop things next to the soldiers or on the tail rotor ( only one side cause if he was on the other side the would be choped it half ):P:D

i can think of liek 4 extra positions for the AH1Z apart from the ones listed

Edited by Drifterboy

Share this post


Link to post
Share on other sites

Apart from getting sucked into the engine air intakes and getting their azzes lit up when you fire the hellfires, it looks very cool lol

Share this post


Link to post
Share on other sites
I only have to add that stuff (text) into my object.ai right?

Yes, add all that text to the bottom of the objects.ai then use use Ah1Z_Passenger1 and use Ah1Z_Passenger2 as the aitemplates for your 2 new passenger seats.

Edited by Fortran

Share this post


Link to post
Share on other sites

Follow the scheme of the first two: Create 2 additional PCO's on the heli, put their seats into a nice position and create additional AITemplates in the heli's Object.ai file. Most of the code is redundant, meaning you can re-use the controlinfo from the first passenger and only add Units per soldier.

Edited by mschoeldgen[Xww2]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×