def LoadModel(self, fileName=None, loadedModel=None): animationState = self.GetAnimationState(self.GetPosState()) if animationState is STATE_NONE: LargeCollidableStructure.LoadModel(self, NANO_CONTAINER) else: LargeCollidableStructure.LoadModel(self) self.LoadAllianceLogo() self.TriggerAnimation(animationState)
def DoModelChange(self): oldModel = self.model if self.level is None or self.level not in self.modelLists: LargeCollidableStructure.LoadModel(self) else: modelName = GetGraphicFile(self.modelLists[self.level]) LargeCollidableStructure.LoadModel(self, modelName) if self.model is None: LargeCollidableStructure.LoadModel(self) self.SetStaticRotation() if oldModel is not None: uthread.pool('CustomsOffice::DelayedRemove', self.DelayedRemove, oldModel, int(1000)) if self.model is not None: self.model.display = True
def LoadModel(self, fileName=None, loadedModel=None): self.LogInfo('================ POS LoadModel ') if self.IsAnchored(): self.LoadStationModel(True) else: LargeCollidableStructure.LoadModel( self, 'res:/dx9/Model/deployables/nanocontainer/nanocontainer.red')
def LoadStationModel(self, builtAlready): LargeCollidableStructure.LoadModel(self) if hasattr(self.model, 'ChainAnimationEx'): self.model.ChainAnimationEx('NormalLoop', 0, 0, 1) if not self.IsOnline(): self.buildAnim, self.onlineAnim = self.PrepareModelForConstruction(builtAlready, False) self.OfflineAnimation(0) if hasattr(self.model, 'EndAnimation'): self.model.EndAnimation() else: self.ResetAfterConstruction()
def SetCapsuleGraphics(self, animate = 0): self.LogInfo(' SetCapsuleGraphics - Animate:', animate) safeModel = self.model LargeCollidableStructure.LoadModel(self, 'res:/dx9/Model/deployables/nanocontainer/nanocontainer.red') self.Assemble() self.Display(1) if animate == 1: if self.buildAnim: self.buildAnim.scale = -1.0 self.buildAnim.PlayFrom(self.buildAnim.GetMaxCurveDuration()) uthread.pool('PlayerOwnedStructure::DelayedRemove', self.DelayedRemove, safeModel, int(self.buildAnim.GetMaxCurveDuration() * 1000)) else: self.DelayedRemove(safeModel, 0) if animate == 1: if self.IsControlTower(): self.PlayGeneralAudioEvent('wise:/msg_ct_disassembly_play') else: self.PlayGeneralAudioEvent('wise:/msg_pos_disassembly_play')
def LoadModel(self, fileName = None, loadedModel = None): LargeCollidableStructure.LoadModel(self) animationState = self._GetAnimationState() self.TriggerAnimation(animationState) self._LoadAllianceLogo()