Script: Missile Defence Mark II

The place to discuss scripting and game modifications for X³: Reunion.

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

User avatar
s9ilent
Posts: 2033
Joined: Wed, 29. Jun 05, 01:45
x4

Script: Missile Defence Mark II

Post by s9ilent »

Script: Missile Defence Mark II
MDmk2

Its a turret script, that fires ONLY at missiles.

I tested this script, it works flawless within its given environment. Having said that, I'm EXTREMELY disappointed at its results.
(There are ... issues with the way how turrets work in X3, issues I can't get around with out making this script cheating)



In any case, here is the script in..

SPK
[ external image ]
http://members.optuszoo.com.au/whyistha ... /mdmk2.spk



Or if you want to just look at it just click here
http://members.optuszoo.com.au/whyistha ... .mdmk2.xml
You will notice that I append the " find nearest missile aiming to me" to the missile array. This is due to the fact that sometimes its not in the array?!? (I checked very thoroughly). So far as I can tell, the get array of all missiles aiming at me, doesn't get "all" the missiles.

Some of the general turret buggy-ness which I commented on earlier is when a target is in range of a turret, but out of range of the cockpit, meaning you will be stuck in the loop and unable to fire. I have found no non-cheating way around this (Switching targets works to a degree although its somewhat iffy to code)


Technical Tidbits
Commands
Turret (31), 32

Tfile
44 7142

Page ID's
-

Command Names Text ID's are used for turret command 31 and 32 (i.e. Page ID 30210, text 931 and 932, and similarly with page ID 302011), as it shares the same Tfile with my Point Def Script


*Eeep* Just realised fud's script is also called Missile Defence Mk II, Ill change mine to MkIII when I get back

Return to “X³: Reunion - Scripts and Modding”