|
Modding Tutorials Information and tutorials related to modding BF2. |
|
Thread Tools | Display Modes |
2023-09-01, 20:48 | #1 |
PR:BF2 Developer
|
How to add freelook function to stationary weapons
This is a quick tutorial on how to enable controls to allow you to move the camera with ctrl on a Player Controlled Object/Weapon - transferring the ability from airplanes to enterable weapons like stationaries.
You would need to add Code:
ObjectTemplate.controlsCategory VCAir Code:
ObjectTemplate.seatAnimationSystem x Code:
ObjectTemplate.setMinRotation -125/-20/0 ObjectTemplate.setMaxRotation 125/20/0 ObjectTemplate.setMaxSpeed 90/90/0 ObjectTemplate.setAcceleration 5000/5000/0 ObjectTemplate.setInputToYaw PIMouseLookX ObjectTemplate.setInputToPitch PIMouseLookY ObjectTemplate.restoreRotationOnExit 1 ObjectTemplate.toggleMouseLook 1 ObjectTemplate.CVMNose 1 Applied to stationary vehicles, you are basically setting it to use airplane controls which means inverted controls in the menu will apply to the freelook camera set on stationaries depending on configuration. |
|
|
Last edited by Arab; 2023-09-01 at 20:54..
|
|
|