# C:\Program Files\Activision\Bridge Commander\scripts\ships\Hardpoints\TIEX1.py
# This file was automatically generated - modify at your own risk.
# 

import App
import GlobalPropertyTemplates
# Setting up local templates.
#################################################
IonEngine1 = App.EngineProperty_Create("Ion Engine 1")

IonEngine1.SetMaxCondition(600.000000)
IonEngine1.SetCritical(0)
IonEngine1.SetTargetable(1)
IonEngine1.SetPrimary(1)
IonEngine1.SetPosition(0.012400, -0.012000, 0.005400)
IonEngine1.SetPosition2D(49, 54)
IonEngine1.SetRepairComplexity(1.000000)
IonEngine1.SetDisabledPercentage(0.500000)
IonEngine1.SetRadius(0.001000)
IonEngine1.SetEngineType(IonEngine1.EP_IMPULSE)
App.g_kModelPropertyManager.RegisterLocalTemplate(IonEngine1)
#################################################
IonEngine2 = App.EngineProperty_Create("Ion Engine 2")

IonEngine2.SetMaxCondition(600.000000)
IonEngine2.SetCritical(0)
IonEngine2.SetTargetable(1)
IonEngine2.SetPrimary(1)
IonEngine2.SetPosition(-0.012400, -0.012000, 0.005400)
IonEngine2.SetPosition2D(80, 54)
IonEngine2.SetRepairComplexity(1.000000)
IonEngine2.SetDisabledPercentage(0.500000)
IonEngine2.SetRadius(0.001000)
IonEngine2.SetEngineType(IonEngine2.EP_IMPULSE)
App.g_kModelPropertyManager.RegisterLocalTemplate(IonEngine2)
#################################################
Hull = App.HullProperty_Create("Hull")

Hull.SetMaxCondition(1500.000000)
Hull.SetCritical(1)
Hull.SetTargetable(1)
Hull.SetPrimary(1)
Hull.SetPosition(0.000000, 0.000000, 0.000000)
Hull.SetPosition2D(66, 62)
Hull.SetRepairComplexity(3.000000)
Hull.SetDisabledPercentage(0.750000)
Hull.SetRadius(0.020000)
App.g_kModelPropertyManager.RegisterLocalTemplate(Hull)
#################################################
SolarIonizationReactor = App.PowerProperty_Create("Solar Ionization Reactor")

SolarIonizationReactor.SetMaxCondition(1200.000000)
SolarIonizationReactor.SetCritical(1)
SolarIonizationReactor.SetTargetable(1)
SolarIonizationReactor.SetPrimary(1)
SolarIonizationReactor.SetPosition(0.000000, -0.050000, 0.000000)
SolarIonizationReactor.SetPosition2D(66, 73)
SolarIonizationReactor.SetRepairComplexity(1.000000)
SolarIonizationReactor.SetDisabledPercentage(0.500000)
SolarIonizationReactor.SetRadius(0.010000)
SolarIonizationReactor.SetMainBatteryLimit(150000.000000)
SolarIonizationReactor.SetBackupBatteryLimit(100000.000000)
SolarIonizationReactor.SetMainConduitCapacity(500.000000)
SolarIonizationReactor.SetBackupConduitCapacity(120.000000)
SolarIonizationReactor.SetPowerOutput(400.000000)
App.g_kModelPropertyManager.RegisterLocalTemplate(SolarIonizationReactor)
#################################################
SensorArray = App.SensorProperty_Create("Sensor Array")

SensorArray.SetMaxCondition(600.000000)
SensorArray.SetCritical(0)
SensorArray.SetTargetable(1)
SensorArray.SetPrimary(1)
SensorArray.SetPosition(0.000000, 0.000000, -0.015000)
SensorArray.SetPosition2D(65, 30)
SensorArray.SetRepairComplexity(1.000000)
SensorArray.SetDisabledPercentage(0.500000)
SensorArray.SetRadius(0.006000)
SensorArray.SetNormalPowerPerSecond(1.000000)
SensorArray.SetBaseSensorRange(1000.000000)
SensorArray.SetMaxProbes(0)
App.g_kModelPropertyManager.RegisterLocalTemplate(SensorArray)
#################################################
RepairSystem = App.RepairSubsystemProperty_Create("Repair System")

RepairSystem.SetMaxCondition(200.000000)
RepairSystem.SetCritical(0)
RepairSystem.SetTargetable(0)
RepairSystem.SetPrimary(1)
RepairSystem.SetPosition(0.000000, 0.000000, 0.000000)
RepairSystem.SetPosition2D(0.000000, 0.000000)
RepairSystem.SetRepairComplexity(1.000000)
RepairSystem.SetDisabledPercentage(0.500000)
RepairSystem.SetRadius(0.006000)
RepairSystem.SetNormalPowerPerSecond(1.000000)
RepairSystem.SetMaxRepairPoints(20.000000)
RepairSystem.SetNumRepairTeams(1)
App.g_kModelPropertyManager.RegisterLocalTemplate(RepairSystem)
#################################################
ShieldGenerator = App.ShieldProperty_Create("Shield Generator")

ShieldGenerator.SetMaxCondition(1200.000000)
ShieldGenerator.SetCritical(0)
ShieldGenerator.SetTargetable(0)
ShieldGenerator.SetPrimary(1)
ShieldGenerator.SetPosition(0.000000, -0.030000, 0.000000)
ShieldGenerator.SetPosition2D(0.000000, 0.000000)
ShieldGenerator.SetRepairComplexity(1.000000)
ShieldGenerator.SetDisabledPercentage(0.500000)
ShieldGenerator.SetRadius(0.004000)
ShieldGenerator.SetNormalPowerPerSecond(25.000000)
ShieldGeneratorShieldGlowColor = App.TGColorA()
ShieldGeneratorShieldGlowColor.SetRGBA(0.000000, 0.000000, 0.000000, 0.000000)
ShieldGenerator.SetShieldGlowColor(ShieldGeneratorShieldGlowColor)
ShieldGenerator.SetShieldGlowDecay(1.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.FRONT_SHIELDS, 750.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.REAR_SHIELDS, 750.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.TOP_SHIELDS, 750.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.BOTTOM_SHIELDS, 750.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.LEFT_SHIELDS, 750.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.RIGHT_SHIELDS, 750.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.FRONT_SHIELDS, 5.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.REAR_SHIELDS, 4.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.TOP_SHIELDS, 4.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.BOTTOM_SHIELDS, 4.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.LEFT_SHIELDS, 4.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.RIGHT_SHIELDS, 4.000000)
App.g_kModelPropertyManager.RegisterLocalTemplate(ShieldGenerator)
#################################################
TIEX1 = App.ShipProperty_Create("TIE X1")

TIEX1.SetGenus(0)
TIEX1.SetSpecies(401)
TIEX1.SetMass(8.000000)
TIEX1.SetRotationalInertia(2500.000000)
TIEX1.SetShipName("TieX1")
TIEX1.SetModelFilename("data/Models/Ships/tiex1/tie-x1.nif")
TIEX1.SetDamageResolution(10.000000)
TIEX1.SetAffiliation(0)
TIEX1.SetStationary(0)
TIEX1.SetAIString("NonFedAttack")
TIEX1.SetDeathExplosionSound("g_lsDeathExplosions")
App.g_kModelPropertyManager.RegisterLocalTemplate(TIEX1)
#################################################
Cockpit = App.TorpedoSystemProperty_Create("Cockpit")

Cockpit.SetMaxCondition(500.000000)
Cockpit.SetCritical(1)
Cockpit.SetTargetable(1)
Cockpit.SetPrimary(1)
Cockpit.SetPosition(0.000000, 0.014000, 0.000000)
Cockpit.SetPosition2D(65, 45)
Cockpit.SetRepairComplexity(1.000000)
Cockpit.SetDisabledPercentage(0.500000)
Cockpit.SetRadius(0.010000)
Cockpit.SetNormalPowerPerSecond(1.000000)
Cockpit.SetWeaponSystemType(Cockpit.WST_TORPEDO)
Cockpit.SetSingleFire(1)
Cockpit.SetAimedWeapon(0)
kFiringChainString = App.TGString()
kFiringChainString.SetString("")
Cockpit.SetFiringChainString(kFiringChainString)
Cockpit.SetMaxTorpedoes(0, 300)
Cockpit.SetTorpedoScript(0, "Tactical.Projectiles.ImpFighterLaser2")
Cockpit.SetNumAmmoTypes(1)
App.g_kModelPropertyManager.RegisterLocalTemplate(Cockpit)
#################################################
LaserEmiter = App.WeaponSystemProperty_Create("Laser Emiter")

LaserEmiter.SetMaxCondition(2200.000000)
LaserEmiter.SetCritical(0)
LaserEmiter.SetTargetable(1)
LaserEmiter.SetPrimary(1)
LaserEmiter.SetPosition(0.000000, -0.010000, 0.010000)
LaserEmiter.SetPosition2D(52, 41)
LaserEmiter.SetRepairComplexity(1.000000)
LaserEmiter.SetDisabledPercentage(0.500000)
LaserEmiter.SetRadius(0.005000)
LaserEmiter.SetNormalPowerPerSecond(100.000000)
LaserEmiter.SetWeaponSystemType(LaserEmiter.WST_PULSE)
LaserEmiter.SetSingleFire(0)
LaserEmiter.SetAimedWeapon(0)
kFiringChainString = App.TGString()
kFiringChainString.SetString("")
LaserEmiter.SetFiringChainString(kFiringChainString)
App.g_kModelPropertyManager.RegisterLocalTemplate(LaserEmiter)
#################################################
TIEEngine = App.ImpulseEngineProperty_Create("TIE Engine")

TIEEngine.SetMaxCondition(1200.000000)
TIEEngine.SetCritical(0)
TIEEngine.SetTargetable(0)
TIEEngine.SetPrimary(1)
TIEEngine.SetPosition(0.000000, -0.020000, 0.000000)
TIEEngine.SetPosition2D(0.000000, 0.000000)
TIEEngine.SetRepairComplexity(1.000000)
TIEEngine.SetDisabledPercentage(0.500000)
TIEEngine.SetRadius(0.005000)
TIEEngine.SetNormalPowerPerSecond(80.000000)
TIEEngine.SetMaxAccel(5.000000)
TIEEngine.SetMaxAngularAccel(1.200000)
TIEEngine.SetMaxAngularVelocity(1.200000)
TIEEngine.SetMaxSpeed(6.150000)
TIEEngine.SetEngineSound("TIEengine")
App.g_kModelPropertyManager.RegisterLocalTemplate(TIEEngine)
#################################################
hyperback = App.WarpEngineProperty_Create("hyper back")

hyperback.SetMaxCondition(200.000000)
hyperback.SetCritical(0)
hyperback.SetTargetable(0)
hyperback.SetPrimary(1)
hyperback.SetPosition(0.000000, -0.020000, 0.000000)
hyperback.SetPosition2D(0.000000, 0.000000)
hyperback.SetRepairComplexity(1.000000)
hyperback.SetDisabledPercentage(0.500000)
hyperback.SetRadius(0.006000)
hyperback.SetNormalPowerPerSecond(1.000000)
App.g_kModelPropertyManager.RegisterLocalTemplate(hyperback)
#################################################
Laser1 = App.PulseWeaponProperty_Create("Laser 1")

Laser1.SetMaxCondition(400.000000)
Laser1.SetCritical(0)
Laser1.SetTargetable(1)
Laser1.SetPrimary(1)
Laser1.SetPosition(-0.003100, 0.013000, -0.013400)
Laser1.SetPosition2D(57, 17)
Laser1.SetRepairComplexity(1.000000)
Laser1.SetDisabledPercentage(0.500000)
Laser1.SetRadius(0.003000)
Laser1.SetDumbfire(1)
Laser1.SetWeaponID(0)
Laser1.SetGroups(0)
Laser1.SetDamageRadiusFactor(0.300000)
Laser1.SetIconNum(0)
Laser1.SetIconPositionX(0)
Laser1.SetIconPositionY(0)
Laser1.SetIconAboveShip(1)
Laser1.SetFireSound("")
Laser1.SetMaxCharge(3.000000)
Laser1.SetMaxDamage(25.000000)
Laser1.SetMaxDamageDistance(100.000000)
Laser1.SetMinFiringCharge(1.000000)
Laser1.SetNormalDischargeRate(1.000000)
Laser1.SetRechargeRate(0.600000)
Laser1.SetIndicatorIconNum(0)
Laser1.SetIndicatorIconPositionX(0)
Laser1.SetIndicatorIconPositionY(0)
Laser1Forward = App.TGPoint3()
Laser1Forward.SetXYZ(0.000000, 1.000000, 0.000000)
Laser1Up = App.TGPoint3()
Laser1Up.SetXYZ(0.000000, 0.000000, 1.000000)
Laser1.SetOrientation(Laser1Forward, Laser1Up)
Laser1.SetArcWidthAngles(-0.261799, 0.261799)
Laser1.SetArcHeightAngles(-0.261799, 0.261799)
Laser1.SetCooldownTime(0.300000)
Laser1.SetModuleName("Tactical.Projectiles.ImpFighterLaser")
App.g_kModelPropertyManager.RegisterLocalTemplate(Laser1)
#################################################
Laser2 = App.PulseWeaponProperty_Create("Laser 2")

Laser2.SetMaxCondition(400.000000)
Laser2.SetCritical(0)
Laser2.SetTargetable(1)
Laser2.SetPrimary(1)
Laser2.SetPosition(0.003100, 0.013000, -0.013400)
Laser2.SetPosition2D(71, 17)
Laser2.SetRepairComplexity(1.000000)
Laser2.SetDisabledPercentage(0.500000)
Laser2.SetRadius(0.003000)
Laser2.SetDumbfire(1)
Laser2.SetWeaponID(0)
Laser2.SetGroups(0)
Laser2.SetDamageRadiusFactor(0.300000)
Laser2.SetIconNum(365)
Laser2.SetIconPositionX(82)
Laser2.SetIconPositionY(50)
Laser2.SetIconAboveShip(1)
Laser2.SetFireSound("")
Laser2.SetMaxCharge(3.000000)
Laser2.SetMaxDamage(25.000000)
Laser2.SetMaxDamageDistance(100.000000)
Laser2.SetMinFiringCharge(1.000000)
Laser2.SetNormalDischargeRate(1.000000)
Laser2.SetRechargeRate(0.600000)
Laser2.SetIndicatorIconNum(0)
Laser2.SetIndicatorIconPositionX(15)
Laser2.SetIndicatorIconPositionY(15)
Laser2Forward = App.TGPoint3()
Laser2Forward.SetXYZ(0.000000, 1.000000, 0.000000)
Laser2Up = App.TGPoint3()
Laser2Up.SetXYZ(0.000000, 0.000000, 1.000000)
Laser2.SetOrientation(Laser2Forward, Laser2Up)
Laser2.SetArcWidthAngles(-0.261799, 0.261799)
Laser2.SetArcHeightAngles(-0.261799, 0.261799)
Laser2.SetCooldownTime(0.300000)
Laser2.SetModuleName("Tactical.Projectiles.ImpFighterLaser")
App.g_kModelPropertyManager.RegisterLocalTemplate(Laser2)
#################################################
IonEngine3 = App.EngineProperty_Create("Ion Engine 3")

IonEngine3.SetMaxCondition(600.000000)
IonEngine3.SetCritical(0)
IonEngine3.SetTargetable(1)
IonEngine3.SetPrimary(1)
IonEngine3.SetPosition(0.012400, -0.012000, -0.005400)
IonEngine3.SetPosition2D(42, 50)
IonEngine3.SetRepairComplexity(1.000000)
IonEngine3.SetDisabledPercentage(0.500000)
IonEngine3.SetRadius(0.001000)
IonEngine3.SetEngineType(IonEngine3.EP_IMPULSE)
App.g_kModelPropertyManager.RegisterLocalTemplate(IonEngine3)
#################################################
IonEngine4 = App.EngineProperty_Create("Ion Engine 4")

IonEngine4.SetMaxCondition(600.000000)
IonEngine4.SetCritical(0)
IonEngine4.SetTargetable(1)
IonEngine4.SetPrimary(1)
IonEngine4.SetPosition(-0.012400, -0.012000, -0.005400)
IonEngine4.SetPosition2D(86, 50)
IonEngine4.SetRepairComplexity(1.000000)
IonEngine4.SetDisabledPercentage(0.500000)
IonEngine4.SetRadius(0.001000)
IonEngine4.SetEngineType(IonEngine4.EP_IMPULSE)
App.g_kModelPropertyManager.RegisterLocalTemplate(IonEngine4)
#################################################
Dummy = App.TorpedoTubeProperty_Create("Dummy")

Dummy.SetMaxCondition(50.000000)
Dummy.SetCritical(0)
Dummy.SetTargetable(0)
Dummy.SetPrimary(0)
Dummy.SetPosition(0.000000, 0.000000, -0.016000)
Dummy.SetPosition2D(0, 0)
Dummy.SetRepairComplexity(1.000000)
Dummy.SetDisabledPercentage(0.500000)
Dummy.SetRadius(0.000500)
Dummy.SetDumbfire(1)
Dummy.SetWeaponID(0)
Dummy.SetGroups(0)
Dummy.SetDamageRadiusFactor(0.600000)
Dummy.SetIconNum(365)
Dummy.SetIconPositionX(73)
Dummy.SetIconPositionY(50)
Dummy.SetIconAboveShip(1)
Dummy.SetImmediateDelay(0.250000)
Dummy.SetReloadDelay(5.000000)
Dummy.SetMaxReady(5)
DummyDirection = App.TGPoint3()
DummyDirection.SetXYZ(0.000000, 1.000000, 0.000000)
Dummy.SetDirection(DummyDirection)
DummyRight = App.TGPoint3()
DummyRight.SetXYZ(1.000000, 0.000000, 0.000000)
Dummy.SetRight(DummyRight)
App.g_kModelPropertyManager.RegisterLocalTemplate(Dummy)

# Property load function.
def LoadPropertySet(pObj):
	"Sets up the object's properties."
	prop = App.g_kModelPropertyManager.FindByName("Hull", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Solar Ionization Reactor", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Repair System", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Cockpit", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Laser Emiter", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("TIE Engine", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("hyper back", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Shield Generator", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Laser 1", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Laser 2", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("TIE X1", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Ion Engine 1", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Ion Engine 2", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Ion Engine 3", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Ion Engine 4", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Dummy", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Sensor Array", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
