@BitVenom wrote:
Howdy everyone!
As has been discussed MANY times, this patch sees the introduction of a new toolset for Mod authors that don't want, or even can't, create their own ships. We call this 'Ship Patching', and it essentially allows an author to bolt new Hard-points to a ship, as well as edit existing ones - including hiding them (which harmlessly prevents things from being added to them).
Here's an example using the Sp_Tanker ship...
In a file under Sp_Tanker\Patches - let's call it 'Test.lua' place this text:
Patch_Priority = 3.0 Patch_Exclusive = 0 Patch_Ops = { hp_def = { -- force the joints to understand change... root = "Root", name = "NavLightR6", pos = { -132.7466, -14.2374, -240.2300 }, rot = { 0, 0, 0 }, axis = { 0, 0, 0 }, }, hp_0 = { root = "Root", name = "Hardpoint_IonBeam1_Position", pos = { 0, 13, 280 }, rot = { 0, 0, 0 }, axis = { 0, 0, 0 }, }, hp_1 = { root = "Root", name = "Hardpoint_IonBeam2_Position", pos = { 0, 13, -207 }, rot = { 0, 0, 0 }, axis = { 0, 0, 0 }, }, }
Then, in the Sp_Tanker.ship file itself, add these 2 lines:
StartShipHardPointConfig(NewShipType,"Weapon IonBeam 1","Hardpoint_IonBeam1","Weapon","Innate","Damageable","Hgn_BattleCruiserIonBeamTurret","","","","","","","",""); StartShipHardPointConfig(NewShipType,"Weapon IonBeam 2","Hardpoint_IonBeam2","Weapon","Innate","Damageable","Hgn_BattleCruiserIonBeamTurret","","","","","","","","");
As you'll see - now the Tanker spawns with 2 very formidable ion cannons... which probably makes HW2 a great deal easier
![]()
A few notes:
The 'Patches' folders follow the same Rules logic as Tags/Props - meaning you can put them in a sub-folder named for your custom Rules if you want them to be limited to those rules only.
The first HP edit in the example (hp_def) is there to resolve a bug which will be fixed in the next patch - that adding new nodes doesn't cause the tree to refresh. Editing an existing one (NavLightR6) however does. That won't be required post-2.1.
So, give it a shot - you can add a buttload of Point Defense guns now, or just go crazy with almost anything else. This isn't the entire system, but some of it depends on the new HODOR, more complex skills, etc...
Cheers!
Posts: 1
Participants: 1