Quantcast
Channel: Homeworld Mods and Modding - The Official Gearbox Software Forums
Viewing all articles
Browse latest Browse all 663

[SCRIPTING] Cataclysm Mimic script

$
0
0

@Dom2 wrote:

@herobrine101902 contacted me about making a cataclysm acolyte script for HWRM.

My own linking scripts are a bit different (plaforms) and I know others (@Nathanius I am looking at you) have experience in this area, so I thought we could discuss publicly.

Clearly this would have to be a customcode script. The problem (as I see it) is that if the linking is done by docking, the player could press “d” and not know whether the acolytes would link with each other or dock with a carrier/mothership…

Anyway, this is how I do HOD swapping:

print("swapping HOD")

-- Store the position and rotation of the old HOD
temppos = SobGroup_GetPosition(OldGroup)
tempcoords = SobGroup_GetCoordSys(OldGroup)

-- Create the new ship
SobGroup_Create("new"..shipID)
SobGroup_SpawnNewShipInSobGroup(playerIndex, TargetShipType, "sqn_"..shipID, "new"..shipID, "NewSpawnVolume"..playerIndex..shipID)
SobGroup_SetPosition("new"..shipID, temppos)
SobGroup_SetTransform("new"..shipID, tempcoords)

-- Remove the old platform
SobGroup_MakeDead("trp_platform_"..shipID)

My suggestion would be to trigger this once the docking acolyte (the lower one) is docked with the top one. The new HOD would be the combined acolyte. Anyone got any better ideas?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 663

Trending Articles