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

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

PIonEngine1.SetMaxCondition(600.000000)
PIonEngine1.SetCritical(0)
PIonEngine1.SetTargetable(1)
PIonEngine1.SetPrimary(1)
PIonEngine1.SetPosition(-0.035500, -0.008300, 0.000200)
PIonEngine1.SetPosition2D(0, 0)
PIonEngine1.SetRepairComplexity(1.000000)
PIonEngine1.SetDisabledPercentage(0.500000)
PIonEngine1.SetRadius(0.001000)
PIonEngine1.SetEngineType(PIonEngine1.EP_IMPULSE)
App.g_kModelPropertyManager.RegisterLocalTemplate(PIonEngine1)
#################################################
SIonEngine1 = App.EngineProperty_Create("S Ion Engine 1")

SIonEngine1.SetMaxCondition(600.000000)
SIonEngine1.SetCritical(0)
SIonEngine1.SetTargetable(1)
SIonEngine1.SetPrimary(1)
SIonEngine1.SetPosition(0.035500, -0.008300, 0.000200)
SIonEngine1.SetPosition2D(0, 0)
SIonEngine1.SetRepairComplexity(1.000000)
SIonEngine1.SetDisabledPercentage(0.500000)
SIonEngine1.SetRadius(0.001000)
SIonEngine1.SetEngineType(SIonEngine1.EP_IMPULSE)
App.g_kModelPropertyManager.RegisterLocalTemplate(SIonEngine1)
#################################################
Hull = App.HullProperty_Create("Hull")

Hull.SetMaxCondition(875.000000)
Hull.SetCritical(1)
Hull.SetTargetable(1)
Hull.SetPrimary(1)
Hull.SetPosition(0.000000, 0.000000, 0.000000)
Hull.SetPosition2D(0, 0)
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(450.000000)
SolarIonizationReactor.SetCritical(1)
SolarIonizationReactor.SetTargetable(1)
SolarIonizationReactor.SetPrimary(1)
SolarIonizationReactor.SetPosition(0.027000, -0.010000, 0.000000)
SolarIonizationReactor.SetPosition2D(0, 0)
SolarIonizationReactor.SetRepairComplexity(1.000000)
SolarIonizationReactor.SetDisabledPercentage(0.500000)
SolarIonizationReactor.SetRadius(0.005000)
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(200.000000)
SensorArray.SetCritical(0)
SensorArray.SetTargetable(1)
SensorArray.SetPrimary(1)
SensorArray.SetPosition(-0.027400, 0.005000, -0.009500)
SensorArray.SetPosition2D(0, 0)
SensorArray.SetRepairComplexity(1.000000)
SensorArray.SetDisabledPercentage(0.500000)
SensorArray.SetRadius(0.002500)
SensorArray.SetNormalPowerPerSecond(30.000000)
SensorArray.SetBaseSensorRange(920.000000)
SensorArray.SetMaxProbes(0)
App.g_kModelPropertyManager.RegisterLocalTemplate(SensorArray)
#################################################
SlaveCircuit = App.RepairSubsystemProperty_Create("Slave Circuit")

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

ShieldGenerator.SetMaxCondition(200.000000)
ShieldGenerator.SetCritical(0)
ShieldGenerator.SetTargetable(0)
ShieldGenerator.SetPrimary(1)
ShieldGenerator.SetPosition(0.000000, 0.000000, 0.000000)
ShieldGenerator.SetPosition2D(0.000000, 0.000000)
ShieldGenerator.SetRepairComplexity(1.000000)
ShieldGenerator.SetDisabledPercentage(0.500000)
ShieldGenerator.SetRadius(0.010000)
ShieldGenerator.SetNormalPowerPerSecond(1.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, 0.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.REAR_SHIELDS, 0.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.TOP_SHIELDS, 0.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.BOTTOM_SHIELDS, 0.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.LEFT_SHIELDS, 0.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.RIGHT_SHIELDS, 0.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.FRONT_SHIELDS, 0.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.REAR_SHIELDS, 0.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.TOP_SHIELDS, 0.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.BOTTOM_SHIELDS, 0.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.LEFT_SHIELDS, 0.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.RIGHT_SHIELDS, 0.000000)
App.g_kModelPropertyManager.RegisterLocalTemplate(ShieldGenerator)
#################################################
TIEExperimentalM1 = App.ShipProperty_Create("TIE Experimental M1")

TIEExperimentalM1.SetGenus(0)
TIEExperimentalM1.SetSpecies(401)
TIEExperimentalM1.SetMass(12.100000)
TIEExperimentalM1.SetRotationalInertia(2500.000000)
TIEExperimentalM1.SetShipName("M1")
TIEExperimentalM1.SetModelFilename("data/Models/Ships/tiefighter/TIE-EXM1.nif")
TIEExperimentalM1.SetDamageResolution(4.000000)
TIEExperimentalM1.SetAffiliation(0)
TIEExperimentalM1.SetStationary(0)
TIEExperimentalM1.SetAIString("NonFedAttack")
TIEExperimentalM1.SetDeathExplosionSound("g_lsDeathExplosions")
App.g_kModelPropertyManager.RegisterLocalTemplate(TIEExperimentalM1)
#################################################
Cockpit = App.TorpedoSystemProperty_Create("Cockpit")

Cockpit.SetMaxCondition(900.000000)
Cockpit.SetCritical(1)
Cockpit.SetTargetable(1)
Cockpit.SetPrimary(1)
Cockpit.SetPosition(0.000000, 0.010000, 0.000000)
Cockpit.SetPosition2D(0, 0)
Cockpit.SetRepairComplexity(1.000000)
Cockpit.SetDisabledPercentage(0.500000)
Cockpit.SetRadius(0.006000)
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, 200)
Cockpit.SetTorpedoScript(0, "Tactical.Projectiles.ImpFighterLaser2")
Cockpit.SetNumAmmoTypes(1)
App.g_kModelPropertyManager.RegisterLocalTemplate(Cockpit)
#################################################
LaserEmiter = App.WeaponSystemProperty_Create("Laser Emiter")

LaserEmiter.SetMaxCondition(250.000000)
LaserEmiter.SetCritical(0)
LaserEmiter.SetTargetable(1)
LaserEmiter.SetPrimary(1)
LaserEmiter.SetPosition(0.050000, 0.050000, 0.050000)
LaserEmiter.SetPosition2D(0, 0)
LaserEmiter.SetRepairComplexity(1.000000)
LaserEmiter.SetDisabledPercentage(0.500000)
LaserEmiter.SetRadius(0.003000)
LaserEmiter.SetNormalPowerPerSecond(220.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(500.000000)
TIEEngine.SetCritical(0)
TIEEngine.SetTargetable(0)
TIEEngine.SetPrimary(1)
TIEEngine.SetPosition(0.000000, -0.015000, 0.000000)
TIEEngine.SetPosition2D(0.000000, 0.000000)
TIEEngine.SetRepairComplexity(1.000000)
TIEEngine.SetDisabledPercentage(0.500000)
TIEEngine.SetRadius(0.010000)
TIEEngine.SetNormalPowerPerSecond(100.000000)
TIEEngine.SetMaxAccel(3.300000)
TIEEngine.SetMaxAngularAccel(1.200000)
TIEEngine.SetMaxAngularVelocity(1.200000)
TIEEngine.SetMaxSpeed(6.100000)
TIEEngine.SetEngineSound("TIEengine")
App.g_kModelPropertyManager.RegisterLocalTemplate(TIEEngine)
#################################################
Turbolaser = App.PulseWeaponProperty_Create("Turbolaser")

Turbolaser.SetMaxCondition(200.000000)
Turbolaser.SetCritical(0)
Turbolaser.SetTargetable(1)
Turbolaser.SetPrimary(1)
Turbolaser.SetPosition(0.026870, 0.016000, 0.000000)
Turbolaser.SetPosition2D(0, 0)
Turbolaser.SetRepairComplexity(1.000000)
Turbolaser.SetDisabledPercentage(0.500000)
Turbolaser.SetRadius(0.003000)
Turbolaser.SetDumbfire(1)
Turbolaser.SetWeaponID(0)
Turbolaser.SetGroups(0)
Turbolaser.SetDamageRadiusFactor(0.300000)
Turbolaser.SetIconNum(0)
Turbolaser.SetIconPositionX(0)
Turbolaser.SetIconPositionY(0)
Turbolaser.SetIconAboveShip(1)
Turbolaser.SetFireSound("")
Turbolaser.SetMaxCharge(3.000000)
Turbolaser.SetMaxDamage(1125.000000)
Turbolaser.SetMaxDamageDistance(40.000000)
Turbolaser.SetMinFiringCharge(1.000000)
Turbolaser.SetNormalDischargeRate(1.000000)
Turbolaser.SetRechargeRate(0.500000)
Turbolaser.SetIndicatorIconNum(0)
Turbolaser.SetIndicatorIconPositionX(0)
Turbolaser.SetIndicatorIconPositionY(0)
TurbolaserForward = App.TGPoint3()
TurbolaserForward.SetXYZ(0.000000, 1.000000, 0.000000)
TurbolaserUp = App.TGPoint3()
TurbolaserUp.SetXYZ(0.000000, 0.000000, 1.000000)
Turbolaser.SetOrientation(TurbolaserForward, TurbolaserUp)
Turbolaser.SetArcWidthAngles(-0.174533, 0.174533)
Turbolaser.SetArcHeightAngles(-0.174533, 0.174533)
Turbolaser.SetCooldownTime(0.100000)
Turbolaser.SetModuleName("Tactical.Projectiles.ImpFTLaser")
App.g_kModelPropertyManager.RegisterLocalTemplate(Turbolaser)
#################################################
ViewscreenForward = App.PositionOrientationProperty_Create("ViewscreenForward")

ViewscreenForwardForward = App.TGPoint3()
ViewscreenForwardForward.SetXYZ(0.000000, 1.000000, 0.000000)
ViewscreenForwardUp = App.TGPoint3()
ViewscreenForwardUp.SetXYZ(0.000000, 0.000000, 1.000000)
ViewscreenForwardRight = App.TGPoint3()
ViewscreenForwardRight.SetXYZ(1.000000, 0.000000, 0.000000)
ViewscreenForward.SetOrientation(ViewscreenForwardForward, ViewscreenForwardUp, ViewscreenForwardRight)
ViewscreenForwardPosition = App.TGPoint3()
ViewscreenForwardPosition.SetXYZ(-0.026900, 0.010000, 0.000000)
ViewscreenForward.SetPosition(ViewscreenForwardPosition)
App.g_kModelPropertyManager.RegisterLocalTemplate(ViewscreenForward)
#################################################
ViewscreenBack = App.PositionOrientationProperty_Create("ViewscreenBack")

ViewscreenBackForward = App.TGPoint3()
ViewscreenBackForward.SetXYZ(0.000000, -1.000000, 0.000000)
ViewscreenBackUp = App.TGPoint3()
ViewscreenBackUp.SetXYZ(0.000000, 0.000000, 1.000000)
ViewscreenBackRight = App.TGPoint3()
ViewscreenBackRight.SetXYZ(1.000000, 0.000000, 0.000000)
ViewscreenBack.SetOrientation(ViewscreenBackForward, ViewscreenBackUp, ViewscreenBackRight)
ViewscreenBackPosition = App.TGPoint3()
ViewscreenBackPosition.SetXYZ(0.000000, 0.088000, 0.000000)
ViewscreenBack.SetPosition(ViewscreenBackPosition)
App.g_kModelPropertyManager.RegisterLocalTemplate(ViewscreenBack)
#################################################
Dummy = App.TorpedoTubeProperty_Create("Dummy")

Dummy.SetMaxCondition(50.000000)
Dummy.SetCritical(0)
Dummy.SetTargetable(0)
Dummy.SetPrimary(1)
Dummy.SetPosition(0.026870, 0.016000, 0.000000)
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(101)
Dummy.SetIconPositionY(54)
Dummy.SetIconAboveShip(1)
Dummy.SetImmediateDelay(0.000000)
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(0.000000, 0.000000, -1.000000)
Dummy.SetRight(DummyRight)
App.g_kModelPropertyManager.RegisterLocalTemplate(Dummy)
#################################################
PIonEngine2 = App.EngineProperty_Create("P Ion Engine 2")

PIonEngine2.SetMaxCondition(600.000000)
PIonEngine2.SetCritical(0)
PIonEngine2.SetTargetable(1)
PIonEngine2.SetPrimary(1)
PIonEngine2.SetPosition(-0.018100, -0.008300, 0.000200)
PIonEngine2.SetPosition2D(0, 0)
PIonEngine2.SetRepairComplexity(1.000000)
PIonEngine2.SetDisabledPercentage(0.500000)
PIonEngine2.SetRadius(0.001000)
PIonEngine2.SetEngineType(PIonEngine2.EP_IMPULSE)
App.g_kModelPropertyManager.RegisterLocalTemplate(PIonEngine2)
#################################################
SIonEngine2 = App.EngineProperty_Create("S Ion Engine 2")

SIonEngine2.SetMaxCondition(600.000000)
SIonEngine2.SetCritical(0)
SIonEngine2.SetTargetable(1)
SIonEngine2.SetPrimary(1)
SIonEngine2.SetPosition(0.018100, -0.008300, 0.000200)
SIonEngine2.SetPosition2D(0, 0)
SIonEngine2.SetRepairComplexity(1.000000)
SIonEngine2.SetDisabledPercentage(0.500000)
SIonEngine2.SetRadius(0.001000)
SIonEngine2.SetEngineType(SIonEngine2.EP_IMPULSE)
App.g_kModelPropertyManager.RegisterLocalTemplate(SIonEngine2)
#################################################
Hyperdrive = App.WarpEngineProperty_Create("Hyperdrive")

Hyperdrive.SetMaxCondition(300.000000)
Hyperdrive.SetCritical(0)
Hyperdrive.SetTargetable(0)
Hyperdrive.SetPrimary(1)
Hyperdrive.SetPosition(0.026900, -0.010000, 0.000000)
Hyperdrive.SetPosition2D(0.000000, 0.000000)
Hyperdrive.SetRepairComplexity(1.000000)
Hyperdrive.SetDisabledPercentage(0.500000)
Hyperdrive.SetRadius(0.005000)
Hyperdrive.SetNormalPowerPerSecond(145.000000)
App.g_kModelPropertyManager.RegisterLocalTemplate(Hyperdrive)

# Property load function.
def LoadPropertySet(pObj):
	"Sets up the object's properties."
	prop = App.g_kModelPropertyManager.FindByName("P Ion Engine 1", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("S Ion Engine 1", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	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("TIE Experimental M1", 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("Shield Generator", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Turbolaser", 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)
	prop = App.g_kModelPropertyManager.FindByName("ViewscreenForward", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("ViewscreenBack", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Slave Circuit", 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("P Ion Engine 2", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("S Ion Engine 2", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("Hyperdrive", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
