def Release(self): PlayerOwnedStructure.Release(self, 'spaceObject.StructureSentryGun')
def SetBuiltStructureGraphics(self, animate=0): PlayerOwnedStructure.SetBuiltStructureGraphics(self, animate) if gfxsettings.Get(gfxsettings.UI_TURRETS_ENABLED): self.FitHardpoints()
def __init__(self): PlayerOwnedStructure.__init__(self) self.modules = {} self.fitted = False self.turretTypeID = None self.typeID = None
def LoadModel(self, fileName=None, loadedModel=None): PlayerOwnedStructure.LoadModel(self, fileName, loadedModel) posState = self.typeData['slimItem'].posState if posState is None: return self.HandleStateChange(posState)
def StartBuildingEffect(self, state, dogmaBuildingLength, elapsedTime): PlayerOwnedStructure.StartBuildingEffect(self, state, dogmaBuildingLength, elapsedTime) if gfxsettings.Get(gfxsettings.UI_TURRETS_ENABLED): self.FitHardpoints()