After a long while, I have FINALLY been able to get a start on a WORKING infection beam script for Homeworld Remastered. As of right now, it needs work. However, when the script is complete, I will post it here.
You should get with @Nathanius (Star Trek Continuum) His assimilation project is related to your infection project.
Ok, but the script is almost done. I just need to get the bugs out of it so it will work.
Maybe you’ve come up with a better way than I have! I’m excited to see your work
Thanks. I’m basing it off of a bug that I found in my cruise missile script while it was in its early stages.
The bug allowed it to capture any ship that was visible from any range. If I can set a limit on how far the “Infector” needs to be, it will work.
I also need to find a way of where only one beam will be fired and only targeting one ship.
May I see your script to use as an example??? I can’t get the ship to change teams.
Shoot me a PM and I’ll go through it with you in depth
THE INFECTION BEAM SCRIPT IS FINALLY COMPLETE AND FULLY OPERATIONAL! I DID IT GUYS!
Now I need to add more infect-able ships to the infection list
I have seen this video and the Beast Infection works perfectly. I just love the way that it subverted the Taiidan carrier into itself.
Thanks. @Nathanius pointed me in the right direction. Now I am using my time to fix the beast carrier and beast heavy cruiser so they can infect ships as well.
Nice! Well done for your perseverence on this one.
To stop the ship “flipping” round when it gets converted, you can track the coordinate system of the old sobgroup and apply it to the new one.
Any clue on how to track it?
SobGroup_GetCoordSys(<SobGroup>) to get the coordinate system (rotation) of a ship.
SobGroup_SetTransform(<SobGroup>) to set the coordinate system (rotation) of a ship.
@dom2 How could this be used to spawn an infected ship in the position and rotation of the non infected one?
Sorry I’ve had a busy couple of days. I’ll respond as soon as I can - I’ll need to extract a bit of code from my platform script that will be useful for you.
You don’t even need that probably. You can just store the variables and plug them into the functions to reposition the new ship, e.g.
temppos = SobGroup_GetPosition(OldGroup) tempcoords = SobGroup_GetCoordSys(OldGroup) SobGroup_SetPosition(NewGroup, temppos) SobGroup_SetTransform(NewGroup, tempcoords)
OldGroup is the sobgroup of the ship you are capturing,
NewGroup is the sobgroup of the ship you are spawning to replace it.
Well, I was posting from my phone, since my computer took a crap, and its hard to type out code on my phone.