New (for X2 atleast) Missile Question

The place to discuss scripting and game modifications for X²: The Threat.

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

youtookmyname
Posts: 80
Joined: Thu, 13. May 04, 06:15
x2

New (for X2 atleast) Missile Question

Post by youtookmyname »

Been hashing out the details on a new mod for the game, and while trying to get my mits on 3dmax was curious if anyone knew if its possible to script a cluster/swarm missile. Basiaclly you for the missile and a short distance from your ship it breaks up into anywhere from 4-10 smaller, more maneuverable warheads. A possible Twist on it would be anti cap ship version, menat to cause mass damage over a wide hull area.
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

I'll take a stab.
I don't think you can add new missiles. So here's what you could do.
Replace one of the exisiting missile types with a new 'mother' missile. All speed / manevuerability parameters are editable through modding.
Replace another of the existing missile types with a new 'child' missile.
Again it's easy to set flight characteristics of these.
When a mother is launched it starts a script (not sure if you can tie a script into this event or not)
If you can't, you'd have to tie a command into the command window called 'activate mirv warhead' or something that manually runs the script.
Once activated, script checks distance to target, and at x meters, script:
1. spawns y number of child missiles with target same as mother in some arrangement around it.
2. destroys mother missile.
You might have a problem with newly spawned children missiles sitting there for a second before they speed up, so it may not be that useful.
Also, you'll have to decomission two missile types to do it.
But it sounds doable.
"Nature's first green is gold" . . . stay golden.
XeHonk
Posts: 1087
Joined: Sun, 7. Mar 04, 23:03
x3tc

Post by XeHonk »

you might have to write a loop to detect missile launches :]
youtookmyname
Posts: 80
Joined: Thu, 13. May 04, 06:15
x2

Post by youtookmyname »

Seems kinda limitng not being able to create new missile types. For a moddable game, the more i learn you can do, the more it seems you cant do.
User avatar
JustHere4Coffee
Posts: 1075
Joined: Wed, 6. Nov 02, 20:31
x2

Post by JustHere4Coffee »

I think the problem is more that people expect to be able to rewrite the game engine...
youtookmyname
Posts: 80
Joined: Thu, 13. May 04, 06:15
x2

Post by youtookmyname »

well i really dont expect the ability to recode the game, but certain things, I.E. ship ezuipment/weapons, shouldnt be hard coded. IN this mod i planned on making very different factions and changing the X2 gun system to Classes. Like there are 5 calsses each with 3 teirs of compatibility. Each factio has their own version and ups and downs. Now ti seems that it's not possible.
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

as of right now, you can only change (or at least that's all anyone's figured out yet)
you can't add.
although for ship equipment (software, scanners, not weapons, shields), they added a few empty slots so you can add there.
"Nature's first green is gold" . . . stay golden.
youtookmyname
Posts: 80
Joined: Thu, 13. May 04, 06:15
x2

Post by youtookmyname »

well thas no fun for people who really want to get ambtious with the mods, like a babylon 5 mod. Too bad since hte game being moddable gave it replayability.

Return to “X²: The Threat - Scripts and Modding”