How to create working AoE Weapons

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
Cronos988
Posts: 691
Joined: Mon, 27. Aug 07, 12:34
x3tc

How to create working AoE Weapons

Post by Cronos988 » Tue, 21. Aug 12, 10:36

Dear modding community,

I am currently experimenting with new weapon designs, especially weapons making use of the various special effects X has to offer.

Making a weapon an Area effect weapon has many interesting side effects, such as creating weapons that only work for specific target sizes. However, all my weapons currently use the Flame Thrower projectile, since I cannot get other projectiles to work.

Here is what I know:
- Checking the "area" flag in Tbullets disables normal bullet collision, making the projectile pierce targets and deal damage per second as long as it is in contact

- In order for the projectile to hit anything, the projectile needs some kind of collision model that normal bullets do not have. This collision model is set somewhere in the "body" files

- The Plasma Burst Generator (or Flamethrower) projectile has an entry in the BodyData.pck, giving it a "collision body" with the id 256 (default is -2, which I assume means no collision).

Replicating that entry for other projectiles does nothing. So either that entry is not really what causes the collsision, or the "collision body" 256 needs to be set to a different value.

Does anybody know how to create new area of effect weapons and where to put the entries to enable collision?

TonyEvans
Posts: 1055
Joined: Sun, 15. Jan 12, 05:53
x4

Post by TonyEvans » Tue, 21. Aug 12, 20:47

I'm interested in knowing as well. I wouldn't mind even having a type of "shotgun" cannon.

Cronos988
Posts: 691
Joined: Mon, 27. Aug 07, 12:34
x3tc

Post by Cronos988 » Thu, 23. Aug 12, 01:24

Some Testing revealed that it is indeed the TBodyData entry that needs to be set.

However, you apparently cannot append new entries to the File. Maybe the entry's Index needs to be between existing ones.

Edit: No, that's not it. I can only modify the two existing entries, but not make a new one. I can make the flamethrower a Point Singularity projector with area, but I cannot make a new one.

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”