friendly fire...

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

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

Frostedawg
Posts: 6
Joined: Fri, 7. Dec 18, 13:23

friendly fire...

Post by Frostedawg »

So I know nothing about modding x4 but I'm curious how hard it would be for someone to say... make a mod that just makes it so you can't damage anything from a faction you have 20+ rep with unless you manually set something of theirs to hostile... in which case by all means nuke my rep with them. I love this game but I am so sick of constant rep grinds getting erased in seconds because of stray fire from AI fighters. Any insight would be great!
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13487
Joined: Sun, 15. Feb 04, 20:12
x4

Re: friendly fire...

Post by euclid »

You would need to make all ships and station (going through all modules) invulnerable and then reverse that if you decide to declare war. However, It's a tricky subject as it may break things (missions) and, to be honest, I'm not sure it would be enough to prevent hostility.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
j.harshaw
EGOSOFT
EGOSOFT
Posts: 2200
Joined: Mon, 23. Nov 15, 18:02

Re: friendly fire...

Post by j.harshaw »

Should be possible to mod the relation thresholds in defaults.xml. Not sure if that's all that's needed, though, not really my area.

edit: Whoops! Sorry, didn't realize this was back in October.
Buck
Posts: 39
Joined: Thu, 29. Jun 23, 16:10
x4

Re: friendly fire...

Post by Buck »

Please explain more I'm interested
kuertee
EGOSOFT
EGOSOFT
Posts: 818
Joined: Sun, 14. Dec 03, 13:05
x4

Re: friendly fire...

Post by kuertee »

You can use my Friendly Fire Tweaks mod from Nexus.

The victim only reacts to friendly fire if:
1. the victim is the actual target of the attacker or
2. the victim's shields are below 25%

Otherwise, friendly fire is ignored.
Buck
Posts: 39
Joined: Thu, 29. Jun 23, 16:10
x4

Re: friendly fire...

Post by Buck »

Thank you guys so much, J & K :mrgreen:

Return to “X4: Foundations - Scripts and Modding”