[Request] - Reducing graviton damage mod

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

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

JoeJinis
Posts: 63
Joined: Thu, 20. Sep 18, 02:06
x4

[Request] - Reducing graviton damage mod

Post by JoeJinis »

Hello,

If a good soul is passing by....
I'm bored to hell after dozens hours of game to cannot be able to make a Cruiser vs Cruiser battle against Xenon.
One battleship can destroy easily ten L or XL because of the cheated graviton turrets damage.
But it will be annihilated by 30 fighters...

Basically I must reload the game every hour because one stupid captain decided he could do a 1vs1 or 10vs1 xenon battleship fight.

There should be a real fight, not a "ten second spam graviton salve and see you".

I thought there would be a simple mod like that but no, or maybe a "boost every non xenon shields by 500%".

Thank you very much !!
sprIder
Posts: 135
Joined: Sat, 3. Jul 10, 23:23
x4

Re: [Request] - Reducing graviton damage mod

Post by sprIder »

Hi JoeJinis,

since you didn't say by how much the damage should be reduced, I'll go by the 500% shield value:

The following mod reduces the damage of the XEN L Graviton turret to 20% of the original damage: Dropbox-Download

Since it is only one line of code that matters, you can easily adjust the code / value yourself via Notepad++, Editor or similar.
To do this, open the file in the mod under xen_dec_graviton_dmg\assets\fx\weaponFx\macros and change the value 646 of the following code.

Code: Select all

<replace sel="/macros/macro/properties/damage/@value">646</replace>
Currently it is 20% or 1/5 of the original damage: 3229/5 = 646.
The value is not the one that is also shown in the game in the encyclopedia, but it is crucial for the damage (calculation).
If you want to reduce the damage for example only to half (3229/2), just change the value to 1615.

I hope this helps you.

sprIder
JoeJinis
Posts: 63
Joined: Thu, 20. Sep 18, 02:06
x4

Re: [Request] - Reducing graviton damage mod

Post by JoeJinis »

Hello,

Seriously? So fast !
I love you =o

I didn't even expect to receive a response :o

Exactly what I wanted, I was trying to find a turret mode and remove nearly everything excepted my relevant need.

<3 <3

Trying it right now !

Edit: Interesting to see how a simple mod is done ^^
I'm going with a 50% first test, thanks.
JoeJinis
Posts: 63
Joined: Thu, 20. Sep 18, 02:06
x4

Re: [Request] - Reducing graviton damage mod

Post by JoeJinis »

Hey SprIder,

Would it be hard for you to make an other mini mod?
I would like to remove the damage/explosion radius of teleporting the HQ.
I want to use it as peacefuly as possible but I'm still killing people ( even some of my ships ) even when Boso tells that the spot is good.
I don't think it could be removed easily but maybe the radius could be greatly reduced to something like 1-5km.

Thanks :)
sprIder
Posts: 135
Joined: Sat, 3. Jul 10, 23:23
x4

Re: [Request] - Reducing graviton damage mod

Post by sprIder »

You are welcome. That is indeed a simple mod.

Sorry, but the other thing is unfortunately beyond my knowledge. I don't know where that is defined and if it is midifiable oder hardcoded. Sorry about that.
Maybe there is someone else who knows.
JoeJinis
Posts: 63
Joined: Thu, 20. Sep 18, 02:06
x4

Re: [Request] - Reducing graviton damage mod

Post by JoeJinis »

Hello, no problem :)

It seems that it's here :
"It's in X4Ep1_Mentor_Subscriptions in the MD folder.

You'd need to search on Radius."

viewtopic.php?f=181&t=439527&p=5133210#p5133210

I'm answering there, maybe someone did a small mod for it since that post :)

Edit : Lines 7760 and 7835, need to understand how to create this mini mod now ^^

Return to “X4: Foundations - Scripts and Modding”