cargo.py (1042B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\environment\spaceObject\cargo.py 2 from eve.client.script.environment.spaceObject.spaceObject import SpaceObject 3 import trinity 4 5 class Cargo(SpaceObject): 6 7 def Assemble(self): 8 self.UnSync() 9 if self.model is not None: 10 self.model.ChainAnimationEx('NormalLoop', 0, 0, 1.0) 11 12 def Explode(self): 13 if self.exploded: 14 return False 15 if self.model is None: 16 return 17 self.exploded = True 18 fileName = 'res:/dx9/Model/WorldObject/Cargo/cargoContainerImploding.red' 19 gfx = trinity.Load(fileName) 20 if gfx: 21 gfx.translationCurve = self 22 gfx.modelRotationCurve = self.model.modelRotationCurve 23 self.explosionModel = gfx 24 else: 25 self.logger.error('Cargo Container Misisng GFX for explosion. Could not find %s', fileName) 26 scene = self.spaceMgr.GetScene() 27 scene.objects.append(gfx) 28 return False