Linked Fire Weapons

A place to discuss mods in development and concepts for new mods.
Post Reply
p2x909
Anarchist
Anarchist
Posts: 3
Joined: Sun Aug 20, 2023 1:58 am

Hey there,

So, some years back, I created a very basic godship mod full of linked weapons and piles of equipment slots. It worked then with Playership Drones, but it seems that the years of updates has caused Playership drones to not function like it used to. Still, I wanted to see if I could bring back linked weapons in my modded ship .xml, but I can't find anything about how to do that. There is mention of linked weapons still being a thing in the current version, but I can't for the life of me find any files of linked fire ships so that I can look at the code implementation. Here's what I used to have:

<TranscendenceExtension
UNID= "&scExperimentalWolfen;"
apiVersion= "22"
name= "Experimental Wolfen Playership"
release= "1"
version= "v1.00"
credits= "Pixelfck (Code), George Moromisato (Game art)"
>

<!-- Player Ship: Wolfen-class Gunship -->

<ShipClass UNID="&scExperimentalWolfenPlayer;"
manufacturer= "Pacific Defense Corporation"
class= "Experimental Wolfen"
type= "gunship"

attributes= "00200000_PlayerShip"
inherit= "&scPlayerWolfenBase;"
characterClass= "&unidPilgrimClass;"

size= "26"
mass= "30"
thrustRatio= "13"
maxSpeed= "30"
cargoSpace= "50"

reactorPower= "100"
fuelCapacity= "25000"
drivePowerUse= "15"
maxArmor= "12000000"
maxCargoSpace= "10000000"
maxDevices= "35"
maxNonWeapons= "35"
>
<StaticData>
<psdStaticData>
{
canvasPrimary: { pos:(0 96) fireArc:(330 30) linkedFireOptions:"always" canvas:(0 0) }
mounts:
( ; NOTE: If posZ=0, leave Z blank!
{ pos:(0 0) fireArc:"omnidirectional" linkedFireOptions:"whenInFireArc" canvas:(0 0) }
{ pos:(64 0) fireArc:"omnidirectional" linkedFireOptions:"whenInFireArc" canvas:(-70 0) }
{ pos:(117 0) fireArc:"omnidirectional" linkedFireOptions:"whenInFireArc" canvas:(-70 0) }
{ pos:(222 0) fireArc:"omnidirectional" linkedFireOptions:"whenInFireArc" canvas:(30 0) }
{ pos:(320 0) fireArc:"omnidirectional" linkedFireOptions:"whenInFireArc" canvas:(30 0) }
)
weaponLink: (Nil 1 2 3 4 5)
}
</psdStaticData>
</StaticData>
<!-- Configuration -->

<Armor>
<ArmorSection start="345" span="30" armorID="&itUltraLightTitaniumPlate;" />
<ArmorSection start="15" span="30" armorID="&itUltraLightTitaniumPlate;" />
<ArmorSection start="315" span="30" armorID="&itUltraLightTitaniumPlate;" />
<ArmorSection start="45" span="30" armorID="&itUltraLightTitaniumPlate;" />
<ArmorSection start="285" span="30" armorID="&itUltraLightTitaniumPlate;" />
<ArmorSection start="75" span="30" armorID="&itUltraLightTitaniumPlate;" />

<ArmorSection start="255" span="30" armorID="&itUltraLightTitaniumPlate;" />
<ArmorSection start="105" span="30" armorID="&itUltraLightTitaniumPlate;" />
<ArmorSection start="225" span="30" armorID="&itUltraLightTitaniumPlate;" />
<ArmorSection start="135" span="30" armorID="&itUltraLightTitaniumPlate;" />
<ArmorSection start="195" span="30" armorID="&itUltraLightTitaniumPlate;" />
<ArmorSection start="165" span="30" armorID="&itUltraLightTitaniumPlate;" />
</Armor>


<Devices>
<DeviceSlot criteria="p" posAngle="0" posRadius="24"/>
<DeviceSlot criteria="l" posAngle="152" posRadius="36" omnidirectional="true"/>
<DeviceSlot criteria="w" posAngle="0" posRadius="20" omnidirectional="true"/>
<DeviceSlot criteria="w" posAngle="0" posRadius="20" omnidirectional="true"/>
<DeviceSlot criteria="w" posAngle="0" posRadius="20" omnidirectional="true"/>
<DeviceSlot criteria="w" posAngle="0" posRadius="20" omnidirectional="true"/>
<DeviceSlot criteria="w" posAngle="0" posRadius="20"/>
<DeviceSlot criteria="w" posAngle="0" posRadius="20"/>
<DeviceSlot criteria="w" posAngle="0" posRadius="20"/>

<Device deviceID="&itLaserPistol;"/>
<Device deviceID="&it10MWReactor;"/>
</Devices>
relanat
Militia Captain
Militia Captain
Posts: 941
Joined: Tue Nov 05, 2013 9:56 am

Check the Minotaur code. It has a linked weapon. You'll need to decompile the Transcendence.tdb file to see the code. Search this forum for how to do that. Good luck.
Stupid code. Do what I want, not what I typed in!
p2x909
Anarchist
Anarchist
Posts: 3
Joined: Sun Aug 20, 2023 1:58 am

Thanks so much! I'll look into decompiling the tdb file
Post Reply