Mod Hand repair laser

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

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

ptich9km
Posts: 3
Joined: Thu, 19. Feb 26, 09:07
x4

Mod Hand repair laser

Post by ptich9km »

Dear Devs help me to impuve Hand repair laser efficiency in 10X

1 I made a mod folder in "Steam\steamapps\common\X4 Foundations\extensions\ch_repair_laser_mod"
2 Made a changes in file "bullet_spacesuit_repairlaser_01_mk1_macro"

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<!--Exported by: nick (192.168.3.57) at 11.01.2020_17-07-04-->
<macros>
  <macro name="bullet_spacesuit_repairlaser_01_mk1_macro" class="bullet">
    <component ref="bullet_spacesuit_repairlaser_01_mk1" />
    <properties>
      <bullet speed="800" lifetime="4" range="25" icon="weapon_repairlaser_mk1" maxhits="1" ricochet="0" scale="1" attach="1" />
      <reload time="0.5" />
      <damage hull="2" repair="10" />
      <effects>
        <impact ref="impact_spacesuit_repair_01_mk1" />
        <launch ref="muzzle_gen_s_repair_01_mk1" />
      </effects>
      <sounds>
        <ambient ref="wpn_beam_repair" />
      </sounds>
      <weapon system="weapon_repair" />
    </properties>
  </macro>
</macros>
This changes didn't change of Hand repair laser repairing efficiency

3 Made a changes by another way

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <replace sel="//properties/reload/@time">0.5</replace>
  <replace sel="//properties/damage/@repair">10</replace>
  <replace sel="//properties/damage/@hull">2</replace>
</diff>
This changes didn't change of Hand repair laser repairing efficiency

4 Made a changes by another way

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <replace sel="//reload/@time">0.5</replace>
  <replace sel="//damage/@hull">2</replace>
  <replace sel="//damage/@repair">10</replace>
</diff>
This changes broke Hand repair laser repairing - it's make a damage

5 Made a changes by another way

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <!-- repair laser tic 0.5-->
  <replace sel="//reload/@time">0.5</replace>
  <!-- Repair effect x10 -->
  <replace sel="//damage/@repair">10</replace>
</diff>
This changes broke Hand repair laser repairing - it's make a damage

6 Made a changes by another way

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <replace sel="/macros/macro/properties/reload/@time">1</replace>
  <replace sel="/macros/macro/properties/damage/@repair">10</replace>
</diff>
No changes
sprIder
Posts: 143
Joined: Sat, 3. Jul 10, 23:23
x4

Re: Mod Hand repair laser

Post by sprIder »

Hi ptich9km,

try something different: Do not touch "repair"!
With repair="1" this variable just says that this weapon repairs hulls (1=true). repair="10" is no more true :wink:

As iforgotmysocks once wrote somewhere:

Code: Select all

<diff>
  <replace sel="//damage/@hull">10000</replace>     <!-- This number is the amount of hull points per second which are healed -->
</diff>
in addition, more range:

Code: Select all

<diff>
  <replace sel="//bullet/@range">10000</replace>   <!-- This number determines the range in meters that the laser reaches -->
  <replace sel="//damage/@hull">10000</replace>     <!-- This number is the amount of hull points per second which are healed -->
</diff>
ptich9km
Posts: 3
Joined: Thu, 19. Feb 26, 09:07
x4

Re: Mod Hand repair laser

Post by ptich9km »

@sprIder Big thanks to you, your solution works

Return to “X4: Foundations - Scripts and Modding”