# C:\Program Files\Activision\Bridge Commander\scripts\ships\Hardpoints\TIERC.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.008720, -0.008000, 0.000200)
IonEngine1.SetPosition2D(54.000000, 64.000000)
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.008720, -0.008000, 0.000200)
IonEngine2.SetPosition2D(77.000000, 64.000000)
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(375.000000)
Hull.SetCritical(1)
Hull.SetTargetable(1)
Hull.SetPrimary(1)
Hull.SetPosition(0.000000, 0.000000, 0.000000)
Hull.SetPosition2D(65.000000, 57.000000)
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(600.000000)
SolarIonizationReactor.SetCritical(1)
SolarIonizationReactor.SetTargetable(1)
SolarIonizationReactor.SetPrimary(1)
SolarIonizationReactor.SetPosition(0.000000, -0.010000, 0.000000)
SolarIonizationReactor.SetPosition2D(43.000000, 53.000000)
SolarIonizationReactor.SetRepairComplexity(1.000000)
SolarIonizationReactor.SetDisabledPercentage(0.500000)
SolarIonizationReactor.SetRadius(0.006000)
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)
#################################################
Sensor = App.SensorProperty_Create("Sensor")

Sensor.SetMaxCondition(600.000000)
Sensor.SetCritical(0)
Sensor.SetTargetable(1)
Sensor.SetPrimary(1)
Sensor.SetPosition(0.000000, 0.001500, 0.011600)
Sensor.SetPosition2D(65.000000, 44.000000)
Sensor.SetRepairComplexity(1.000000)
Sensor.SetDisabledPercentage(0.500000)
Sensor.SetRadius(0.002000)
Sensor.SetNormalPowerPerSecond(1.000000)
Sensor.SetBaseSensorRange(2400.000000)
Sensor.SetMaxProbes(0)
App.g_kModelPropertyManager.RegisterLocalTemplate(Sensor)
#################################################
RepairSystem = App.RepairSubsystemProperty_Create("Repair System")

RepairSystem.SetMaxCondition(400.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.010000)
RepairSystem.SetNormalPowerPerSecond(1.000000)
RepairSystem.SetMaxRepairPoints(10.000000)
RepairSystem.SetNumRepairTeams(1)
App.g_kModelPropertyManager.RegisterLocalTemplate(RepairSystem)
#################################################
ShieldGenerator = App.ShieldProperty_Create("Shield Generator")

ShieldGenerator.SetMaxCondition(500.000000)
ShieldGenerator.SetCritical(0)
ShieldGenerator.SetTargetable(1)
ShieldGenerator.SetPrimary(1)
ShieldGenerator.SetPosition(0.000000, -0.006400, 0.008000)
ShieldGenerator.SetPosition2D(76.000000, 53.000000)
ShieldGenerator.SetRepairComplexity(1.000000)
ShieldGenerator.SetDisabledPercentage(0.500000)
ShieldGenerator.SetRadius(0.003000)
ShieldGenerator.SetNormalPowerPerSecond(100.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, 500.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.TOP_SHIELDS, 500.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.BOTTOM_SHIELDS, 500.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.LEFT_SHIELDS, 500.000000)
ShieldGenerator.SetMaxShields(ShieldGenerator.RIGHT_SHIELDS, 500.000000)
ShieldGenerator.SetShieldChargePerSecond(ShieldGenerator.FRONT_SHIELDS, 6.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)
#################################################
TIERC = App.ShipProperty_Create("TIE RC")

TIERC.SetGenus(0)
TIERC.SetSpecies(401)
TIERC.SetMass(6.000000)
TIERC.SetRotationalInertia(2500.000000)
TIERC.SetShipName("TIEVanguard")
TIERC.SetModelFilename("data/Models/Ships/tiefighter/TIE-RC.nif")
TIERC.SetDamageResolution(4.000000)
TIERC.SetAffiliation(0)
TIERC.SetStationary(0)
TIERC.SetAIString("NonFedAttack")
TIERC.SetDeathExplosionSound("g_lsDeathExplosions")
App.g_kModelPropertyManager.RegisterLocalTemplate(TIERC)
#################################################
MissileSystem = App.TorpedoSystemProperty_Create("Missile System")

MissileSystem.SetMaxCondition(175.000000)
MissileSystem.SetCritical(0)
MissileSystem.SetTargetable(0)
MissileSystem.SetPrimary(1)
MissileSystem.SetPosition(0.000000, 0.001000, -0.010000)
MissileSystem.SetPosition2D(65.000000, 42.000000)
MissileSystem.SetRepairComplexity(1.000000)
MissileSystem.SetDisabledPercentage(0.500000)
MissileSystem.SetRadius(0.003000)
MissileSystem.SetNormalPowerPerSecond(1.000000)
MissileSystem.SetWeaponSystemType(MissileSystem.WST_TORPEDO)
MissileSystem.SetSingleFire(1)
MissileSystem.SetAimedWeapon(0)
kFiringChainString = App.TGString()
kFiringChainString.SetString("")
MissileSystem.SetFiringChainString(kFiringChainString)
MissileSystem.SetMaxTorpedoes(0, 200)
MissileSystem.SetTorpedoScript(0, "Tactical.Projectiles.ImpFighterLaser2")
MissileSystem.SetNumAmmoTypes(1)
App.g_kModelPropertyManager.RegisterLocalTemplate(MissileSystem)
#################################################
LaserEmiter = App.WeaponSystemProperty_Create("Laser Emiter")

LaserEmiter.SetMaxCondition(800.000000)
LaserEmiter.SetCritical(0)
LaserEmiter.SetTargetable(0)
LaserEmiter.SetPrimary(1)
LaserEmiter.SetPosition(0.000000, 0.008500, 0.007000)
LaserEmiter.SetPosition2D(51.000000, 46.000000)
LaserEmiter.SetRepairComplexity(1.000000)
LaserEmiter.SetDisabledPercentage(0.500000)
LaserEmiter.SetRadius(0.001000)
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(400.000000)
TIEEngine.SetCritical(0)
TIEEngine.SetTargetable(0)
TIEEngine.SetPrimary(1)
TIEEngine.SetPosition(0.000000, -0.010000, 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(4.000000)
TIEEngine.SetMaxAngularAccel(1.200000)
TIEEngine.SetMaxAngularVelocity(1.200000)
TIEEngine.SetMaxSpeed(5.800000)
TIEEngine.SetEngineSound("TIEengine")
App.g_kModelPropertyManager.RegisterLocalTemplate(TIEEngine)
#################################################
Laser = App.PulseWeaponProperty_Create("Laser")

Laser.SetMaxCondition(750.000000)
Laser.SetCritical(0)
Laser.SetTargetable(1)
Laser.SetPrimary(1)
Laser.SetPosition(0.000000, 0.010000, -0.009500)
Laser.SetPosition2D(65.000000, 27.000000)
Laser.SetRepairComplexity(1.000000)
Laser.SetDisabledPercentage(0.500000)
Laser.SetRadius(0.001000)
Laser.SetDumbfire(1)
Laser.SetWeaponID(0)
Laser.SetGroups(0)
Laser.SetDamageRadiusFactor(0.300000)
Laser.SetIconNum(365)
Laser.SetIconPositionX(78.000000)
Laser.SetIconPositionY(58.000000)
Laser.SetIconAboveShip(1)
Laser.SetFireSound("")
Laser.SetMaxCharge(1.000000)
Laser.SetMaxDamage(1125.000000)
Laser.SetMaxDamageDistance(40.000000)
Laser.SetMinFiringCharge(1.000000)
Laser.SetNormalDischargeRate(1.000000)
Laser.SetRechargeRate(0.500000)
Laser.SetIndicatorIconNum(0)
Laser.SetIndicatorIconPositionX(15.000000)
Laser.SetIndicatorIconPositionY(15.000000)
LaserForward = App.TGPoint3()
LaserForward.SetXYZ(0.000000, 1.000000, 0.000000)
LaserUp = App.TGPoint3()
LaserUp.SetXYZ(0.000000, 0.000000, 1.000000)
Laser.SetOrientation(LaserForward, LaserUp)
Laser.SetArcWidthAngles(-0.174533, 0.174533)
Laser.SetArcHeightAngles(-0.174533, 0.174533)
Laser.SetCooldownTime(0.100000)
Laser.SetModuleName("Tactical.Projectiles.ImpFighterLaser")
App.g_kModelPropertyManager.RegisterLocalTemplate(Laser)
#################################################
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.000000, 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.100000, 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.000000, 0.010000, -0.009500)
Dummy.SetPosition2D(0.000000, 0.000000)
Dummy.SetRepairComplexity(1.000000)
Dummy.SetDisabledPercentage(0.500000)
Dummy.SetRadius(0.001000)
Dummy.SetDumbfire(1)
Dummy.SetWeaponID(0)
Dummy.SetGroups(0)
Dummy.SetDamageRadiusFactor(0.600000)
Dummy.SetIconNum(0)
Dummy.SetIconPositionX(0.000000)
Dummy.SetIconPositionY(0.000000)
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)
#################################################
Cockpit = App.HullProperty_Create("Cockpit")

Cockpit.SetMaxCondition(600.000000)
Cockpit.SetCritical(1)
Cockpit.SetTargetable(1)
Cockpit.SetPrimary(0)
Cockpit.SetPosition(0.000000, 0.010000, 0.000000)
Cockpit.SetPosition2D(0.000000, 0.000000)
Cockpit.SetRepairComplexity(1.000000)
Cockpit.SetDisabledPercentage(0.500000)
Cockpit.SetRadius(0.006000)
App.g_kModelPropertyManager.RegisterLocalTemplate(Cockpit)

# Property load function.
def LoadPropertySet(pObj):
	"Sets up the object's properties."
	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("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("Missile System", 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("Sensor", 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("Laser", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
	prop = App.g_kModelPropertyManager.FindByName("TIE RC", 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("Cockpit", App.TGModelPropertyManager.LOCAL_TEMPLATES)
	if (prop != None):
		pObj.AddToSet("Scene Root", prop)
