Capitalship tag for aircraft
Moderator: Moderators
Thinking it over, you can probably hack-up a good approximation of multiple hitspheres now with a little LUA.
1) make the main body of a unit small.
2) create many small, invisible units and attach them to the main body of the unit in the orientations you'd like them in.
3) redirect all damage from the small invisible units to the main body.
4) destroy small, invisble units when main body dies.
There are of course oodles of problems with this, not the least of which being that the main body believes it has a tiny hit-sphere instead of the large amalgam it really has.
1) make the main body of a unit small.
2) create many small, invisible units and attach them to the main body of the unit in the orientations you'd like them in.
3) redirect all damage from the small invisible units to the main body.
4) destroy small, invisble units when main body dies.
There are of course oodles of problems with this, not the least of which being that the main body believes it has a tiny hit-sphere instead of the large amalgam it really has.
Re: Capitalship tag for aircraft
A "first draft" of this patch is now in SVN (for
unit <--> projectile coldet, tieing the custom
volumes to features is next up). The final tag
names are:
unit <--> projectile coldet, tieing the custom
volumes to features is next up). The final tag
names are:
Code: Select all
CollisionVolumeType={"Ell" | "CylT" | "Box"}; // ('T' is one of "XYZ")
CollisionVolumeScales=X Y Z;
CollisionVolumeOffsets=P Q R;
Re: Capitalship tag for aircraft
This is beyond win. Keep up the good work! I'll be testing this week :)
Re: Capitalship tag for aircraft
Great news, thanks for coming back to this! I'll start testing this asap, I'm a bit busy tonight, painting something, but I'll be able to get to it tomorrow guaranteed.
Re: Capitalship tag for aircraft
Tested cuboid collision zones.
THEY WORK!!! eleventyone.
Great work, Kloot!
[EDIT]It's not a problem with the sizes, it was me not taking into account the centroid. It works just fine...
THEY WORK!!! eleventyone.
Great work, Kloot!
[EDIT]It's not a problem with the sizes, it was me not taking into account the centroid. It works just fine...
Re: Capitalship tag for aircraft
Rectangular prisms, or simple cubes?
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Capitalship tag for aircraft
oh fuck me silly... NICE WORK! (now I can go back and remove some of my horribly crappy hitspheres).
Re: Capitalship tag for aircraft
Features (with the exception of trees) can now be
given their own collision primitives too, tag names
are the same as for units.
given their own collision primitives too, tag names
are the same as for units.
Re: Capitalship tag for aircraft
one question, since it's not immediately obvious from the code - do the collision shapes rotate with the units?
Re: Capitalship tag for aircraft
Yep, see the old screenshot 

Re: Capitalship tag for aircraft
oooh shineh. missed it. vgj.
-
- Posts: 1176
- Joined: 23 Aug 2007, 19:46
Re: Capitalship tag for aircraft
Hooray! Finally you can make walls that really block shots depending on their height...Kloot wrote:Features (with the exception of trees) can now be
given their own collision primitives too, tag names
are the same as for units.

Re: Capitalship tag for aircraft
I'm certainly not complaining, since this is far better than what we had before, but would it be possible to have the different collision primitives built into s3o and upspring instead of only having the tags?
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Capitalship tag for aircraft
Yar this is definately ubar win.
Daddy lieks and approves.
Daddy lieks and approves.
Re: Capitalship tag for aircraft
Gnome: it would, but that route is best suited for truly
arbitrary convex collision meshes that cannot easily (or
at all) be defined as mathematical functions. For these
geometric primitives the FBI tag setup is more efficient,
and comes with the added bonus of not having to care
about the underlying model formats.
arbitrary convex collision meshes that cannot easily (or
at all) be defined as mathematical functions. For these
geometric primitives the FBI tag setup is more efficient,
and comes with the added bonus of not having to care
about the underlying model formats.
Re: Capitalship tag for aircraft
Um, as soon as installer builds are available again, I'll test it more...
BTW, peeps... at least as of now, the old collision spheres are being used for the "radius" value for aircraft collision-avoidance... and whereever the center of the model is, that's the center of the objects created, so keep that in mind when setting up the scale...
BTW, peeps... at least as of now, the old collision spheres are being used for the "radius" value for aircraft collision-avoidance... and whereever the center of the model is, that's the center of the objects created, so keep that in mind when setting up the scale...