Attach <piece> to <piece>

Attach <piece> to <piece>

Requests for features in the spring code.

Moderator: Moderators

Post Reply
User avatar
Guessmyname
Posts: 3301
Joined: 28 Apr 2005, 21:07

Attach <piece> to <piece>

Post by Guessmyname »

Basically, a bos/cob command that will allow to attach a piece in a model to another - in effect changing the model's hierarchy on the fly.

Preferably used something like this?
Attach <piece1> to <piece2>;
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Attach <piece> to <piece>

Post by lurker »

1. How does it know where on piece2 to put the origin of piece1?
2. Hope you don't plan to use scriptor for this.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: Attach <piece> to <piece>

Post by rattle »

Yeah, can't have new keywords.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Attach <piece> to <piece>

Post by lurker »

Not if you're such a lazy bum you can't hex edit machine code.
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: Attach <piece> to <piece>

Post by rattle »

Don't you have a compiler to finish? :P
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Attach <piece> to <piece>

Post by lurker »

I have transcended compilation.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Attach <piece> to <piece>

Post by AF »

lua ftw
User avatar
rattle
Damned Developer
Posts: 8278
Joined: 01 Jun 2006, 13:15

Re: Attach <piece> to <piece>

Post by rattle »

Luargh!
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Attach <piece> to <piece>

Post by Argh »

I don't think this can be solved with LUA, until LUA can get the exact positions of a given Piece.

We need a way in COB to GET unpacked coordinates, so that we can finally get the full XYZ without having to unpack it with COB (which is inaccurate and very time-consuming). My understanding is that work is ongoing to get these values, at least in LUA, but I hope it can be done on both sides, this is a big deal, as COB's most major flaw, imo, is that it was designed with angles and internal distances in mind, but has only the crudest ways of "reacting" to the external world.
User avatar
lurker
Posts: 3842
Joined: 08 Jan 2007, 06:13

Re: Attach <piece> to <piece>

Post by lurker »

Yeah, elmo resolution updated every frame isn't that great for adding pieces.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Attach <piece> to <piece>

Post by KDR_11k »

Spring.GetUnitPieceMatrix says hello.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Attach <piece> to <piece>

Post by AF »

Argh, I wasn't talking about lua talking to cob, rather, lua talking to lua.
Post Reply

Return to “Feature Requests”