Having a few issues with this program.
I'm adding it to a ship that has a rear section that starts Horizontal, but ends up Vertical once raising Weapons.
The scripting won;t let me reach 90 degrees, Once put put the rotational value past 1.0 the models parts still don't move any further, but instead begin to increase or decrease in scale? This I find most confusing.
This is the current plugin ...
abbrev = 'MartinsShip'
iconName = 'MartinsShip'
longName = 'Martins Ship'
shipFile = 'MartinsShip'
species = 815
SubMenu = 'Other'
menuGroup = 'Stargate Ships'
playerMenuGroup = 'Stargate Ships'
Foundation.ShipDef.MartinsShip = Foundation.ShipDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile, 'SubMenu': SubMenu })
#Foundation.ShipDef.MartinsShip.fMaxWarp = 3.2
#Foundation.ShipDef.MartinsShip.fCruiseWarp = 2.8
Foundation.ShipDef.MartinsShip.desc = ''
Foundation.ShipDef.MartinsShip.dTechs = { 'SubModel': {
"Setup": {
"Body": "MartinsInnerHull",
"NormalModel": shipFile,
"AttackModel": "MartinLLoydsShip",
"Hardpoints": {
"Fore Pulse 3": [-0.345, 0.295, 0],
"Fore Pulse 4": [0.345, 0.295, 0],
},
"AttackHardpoints": {
"Fore Pulse 3": [0, 0.295, -0.345],
"Fore Pulse 4": [0, 0.295, 0.345],
},
},
"MartinsOuterArm": ["MartinsOuterArm", {
"Position": [0, 0, 0],
"Rotation": [0, 0, 0], # normal Rotation used if not Red Alert and if not Warp
"AttackPosition": [0, 0, 0],
"AttackRotation": [0, 0.5, 0],
"AttackDuration": 150.0, # Value is 1/100 of a second
}
],
}}
if menuGroup: Foundation.ShipDef.MartinsShip.RegisterQBShipMenu(menuGroup)
if playerMenuGroup: Foundation.ShipDef.MartinsShip.RegisterQBPlayerShipMenu(playerMenuGroup)
if Foundation.shipList._keyList.has_key(longName):
Foundation.ShipDef.__dict__[longName].friendlyDetails[2] = Foundation.shipList[longName].friendlyDetails[2]
Foundation.ShipDef.__dict__[longName].enemyDetails[2] = Foundation.shipList[longName].enemyDetails[2]