Author Topic: FTech Moving models  (Read 1575 times)

Offline DKealt

  • Posts: 110
  • Cookies: 4
FTech Moving models
« on: January 20, 2009, 02:28:54 PM »
Ive managed to get the PuddleJumper for the new Stargate Pack to deploy its weapons pods when activating red alert. Just like the VasKholer and LC Intrepid when warping.

Problem is for some unknown reason, once the ship deploys the pods moving straight outward along the X axis, they bizarley start moving backwards!! until the next model is loaded. The script im using is this...

Code: [Select]
abbrev = 'PuddleJumper'
iconName = 'PuddleJumper'
longName = 'Puddle Jumper'
shipFile = 'PuddleJumper'
menuGroup = 'Stargate Ships'
playerMenuGroup = 'Stargate Ships'
species = 776
SubMenu = "Ancient"

Foundation.ShipDef.PuddleJumper = Foundation.FedShipDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile, "SubMenu": SubMenu })
Foundation.ShipDef.PuddleJumper.CloakingSFX   = "AncientCloak"
Foundation.ShipDef.PuddleJumper.DeCloakingSFX = "AncientDeCloak"
Foundation.ShipDef.PuddleJumper.hasTGLName = 0
Foundation.ShipDef.PuddleJumper.hasTGLDesc = 0
Foundation.ShipDef.PuddleJumper.dTechs = { 'SubModel': {
        "Setup":        {
                "Body":                 "PuddleJumperBody",
                "NormalModel":          shipFile,
                "AttackModel":          "PuddleJumperDeployed",
                "Hardpoints":       {
                        "Port Drone 1":  [-0.0252, 0.029, -0.0065],
                        "Port Drone 2":  [-0.0235, 0.029, -0.0135],
                        "Port Drone 3":  [-0.0210, 0.029, -0.0200],
                        "Star Drone 1":  [0.0252, 0.029, -0.0065],
                        "Star Drone 2":  [0.0235, 0.029, -0.0135],
                        "Star Drone 3":  [0.0210, 0.029, -0.0200],
                },
                "AttackHardpoints":       {
                        "Port Drone 1":  [-0.0342, 0.029, -0.0065],
                        "Port Drone 2":  [-0.0325, 0.029, -0.0135],
                        "Port Drone 3":  [-0.0300, 0.029, -0.0200],
                        "Star Drone 1":  [0.0342, 0.029, -0.0065],
                        "Star Drone 2":  [0.0325, 0.029, -0.0135],
                        "Star Drone 3":  [0.0300, 0.029, -0.0200],
                },
        },
               
        "Port Drones":     ["DroneBaysLeft", {
                "Position":             [0, 0, 0],
                "AttackDuration":         50.0, # Value is 1/100 of a second
                "AttackPosition":         [-0.009, 0, 0],

                }
        ],
       
        "Starboard Drones":     ["DroneBaysRight", {
                "Position":             [0, 0, 0],
                "AttackDuration":         50.0, # Value is 1/100 of a second
                "AttackPosition":         [0.009, 0, 0],

                }
        ],
}}


if menuGroup:           Foundation.ShipDef.PuddleJumper.RegisterQBShipMenu(menuGroup)
if playerMenuGroup:     Foundation.ShipDef.PuddleJumper.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]

Any help would be much appreciated

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: FTech Moving models
« Reply #1 on: January 20, 2009, 03:11:11 PM »
I think you will have to ask Defiant this, I would say that somehow the duration is too long, and it's on it's way back (going full circle). But I'm afraid I'm not sure.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline DKealt

  • Posts: 110
  • Cookies: 4
Re: FTech Moving models
« Reply #2 on: January 20, 2009, 03:24:02 PM »
Awesome, good instinct

the duration had to be a minimum of 1 second to work

thanks

Offline KrrKs

  • Posts: 461
  • Cookies: 25
Re: FTech Moving models
« Reply #3 on: January 20, 2009, 03:40:08 PM »
May I ask what exact value you set it to? Because on one of my Ships using this, the Wings are moving backward even on a duration of 120

Offline DKealt

  • Posts: 110
  • Cookies: 4
Re: FTech Moving models
« Reply #4 on: January 21, 2009, 06:25:38 AM »
In the end i set it to 100, maybe try using whole number like, 100, 200 it might not like using the value of 1.2 seconds

Offline KrrKs

  • Posts: 461
  • Cookies: 25
Re: FTech Moving models
« Reply #5 on: January 21, 2009, 12:36:17 PM »
Ahh, Ok I'll try later, thank you anyway. And I'm looking forward flying this PuddleJumper when the pack gets released :D

EDIT: Thats strange, it seems like it does move the Wings backward half their length, no matter how long I set the
        duration. But in fact it looks quite ... well funny.