[Help] how to make damagecurves working?

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

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

SkazheniyKhaak
Posts: 2
Joined: Sat, 11. Dec 10, 07:52
x4

[Help] how to make damagecurves working?

Post by SkazheniyKhaak »

I'm trying to modify `extensions\ego_dlc_terran\assets\fx\weaponfx\macros\bullet_ter_l_gatling_01_mk1_macro.xml`
File itself is working, because this main gun has 42km range. I can check this values in encyclopedia as well.
But damagecurves... they do nothing.

I already tried different values. From 0 to 1000.
I guess something wrong with this "add". Or with synrtax. Or some additional bullet property is missed. Or it should be registered somewhere as bullet with curves.
Running with "debug" gives me 0 errors for this file.

My script looks like following:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <replace sel="//bullet/@speed">4200</replace>
  <replace sel="//bullet/@lifetime">10</replace>

  <add sel="//properties/bullet">
    <damagecurves>
      <time>
        <point position="0" value="1" />
        <point position="0.1" value="0.01" />
        <point position="1" value="0.001" />
      </time>
      <distance>
        <point position="0" value="1" />
        <point position="0.1" value="0.01" />
        <point position="1" value="0.001" />
      </distance>
    </damagecurves>
  </add>
</diff>
But I still have full damage at any distance.

I tries to do replace for Erlking turrets. Without success too.

I've beed in discord, I've been at reddit.
SkazheniyKhaak
Posts: 2
Joined: Sat, 11. Dec 10, 07:52
x4

Re: [Help] how to make damagecurves working?

Post by SkazheniyKhaak »

I found an answer:
move <damagecurves> to <properties> level

It works for <time> perfectly. Even for beams lol.

Still have issue with beams (attach="1") distance. Distance works itself, but it always has damage from the last point.

This one is always has 0 damage:

Code: Select all

<point position="0" value="1"/>
<point position="1" value="0"/>

Return to “X4: Foundations - Scripts and Modding”