morphing tracked objects...

Moderators: GSH, VSMIT, Red Devil, Commando

Post Reply
Josiah
Sabre
Posts: 213
Joined: Mon Feb 21, 2011 6:45 am
Contact:

morphing tracked objects...

Post by Josiah »

is that even possible? would a dll do it?
User avatar
Zax
Attila
Posts: 1388
Joined: Sat Feb 19, 2011 6:56 am

Re: morphing tracked objects...

Post by Zax »

If you want to swap out one tracked object for another.
Josiah
Sabre
Posts: 213
Joined: Mon Feb 21, 2011 6:45 am
Contact:

Re: morphing tracked objects...

Post by Josiah »

yes, that'd be fine. just how would I do it?
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: morphing tracked objects...

Post by Nielk1 »

You would put int he DLL's addObject function to watch for a trigger object. That object would be a mine dropped the said unit. You would try to match the mine to the unit by either checking its owner (I think the owner if it is an AI unit whom dropped it would be the commander) or pre-tracking all of said morphing tracked units and simply finding which is closer to the mine. Once you have the information of what unit dropped the trigger object, you can copy the hull and ammo percentages, weapons, position/angle matrix and velocity vector of the craft, remove it, place a new unit and apply all the copied settings, and if a player set it as the player, if not a player re-send its orders (which you should have also saved off).
Josiah
Sabre
Posts: 213
Joined: Mon Feb 21, 2011 6:45 am
Contact:

Re: morphing tracked objects...

Post by Josiah »

Image

um, would it be easier to just have it play an animation?
Last edited by Josiah on Thu May 19, 2011 2:09 pm, edited 1 time in total.
User avatar
Zax
Attila
Posts: 1388
Joined: Sat Feb 19, 2011 6:56 am

Re: morphing tracked objects...

Post by Zax »

You heard the man, now make it happen cap'n
Post Reply