V8.0 flight model: How to change maximum turn rate for ships

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

cnk
Posts: 1
Joined: Sat, 15. Apr 23, 12:33
x4

V8.0 flight model: How to change maximum turn rate for ships

Post by cnk »

Since the introduction of the new flight model I could not get my L destroyer to feel more agile again, no matter how much increased thruster values, or reduced mass or drag.

I found that somehow the turn rate was limited to a maximum value, but could not find infos on how to change that (it is not mentioned in the flight model wiki page https://wiki.egosoft.com/X4%20Foundatio ... JPMFlight/).

Originally I wanted to ask the community about that, but stumbled upon the solution while looking through the xml defaults:

Code: Select all

<defaults xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <!-- ... -->
  <dataset class="ship_l">
    <properties>
      <!-- ... -->
      <physics collisionmassmultiplier="100000.0">
        <maxspeed angular="30" />
      </physics>
      <!-- ... -->
By overwriting <maxspeed angular="30" /> with a higher value in the ship's _.macro.xml file

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<macros>
  <macro name="ship_arg_l_destroyer_02_a_macro" class="ship_l">
    <component ref="ship_arg_l_destroyer_02" />
    <properties>
      <!-- ... -->
      <physics mass="160.472">
        <inertia pitch="110" yaw="110" roll="84.764" />
        <drag forward="40.583" reverse="260.472" horizontal="23.26" vertical="23.26" pitch="69.094" yaw="69.094" roll="69.094" />
        <accfactors reverse="0.85" />
        <maxspeed angular="60" /> <!-- increase to have higher maximum turn rate -->
      </physics>   
      <!-- ... -->
</macros>
The maximum turn rate limit can be increased (or decreased) as desired and finally my ship feels not like its stuck in pudding.
User avatar
ChemODun
Posts: 612
Joined: Mon, 12. Feb 07, 21:58
x4

Re: V8.0 flight model: How to change maximum turn rate for ships

Post by ChemODun »

Thanks sharing this useful info!
Multiply entropy by absolute zero

Freedom in space

Return to “X4: Foundations - Scripts and Modding”