def __init__(self, parent = hidden):
     NodePath.__init__(self)
     self.assign(globalPropPool.getProp('wake'))
     self.reparentTo(parent)
     tformNode = self.getChild(0)
     tformNode.setZ(0.10000000000000001)
     self.startNodePath = self.find('**/+SequenceNode')
     self.startSeqNode = self.startNodePath.node()
     self.startSeqNode.setName('start')
     self.startSeqNode.setCycleRate(0)
     self.cycleNodePath = NodePath(SequenceNode(0, 'cycle'))
     self.cycleNodePath.reparentTo(tformNode)
     self.cycleSeqNode = self.cycleNodePath.node()
     self.endNodePath = NodePath(SequenceNode(0, 'end'))
     self.endNodePath.reparentTo(tformNode)
     self.endSeqNode = self.endNodePath.node()
     children = self.startNodePath.getChildrenAsList()
     for child in children[12:16]:
         child.reparentTo(self.cycleNodePath)
     
     for child in children[16:]:
         child.reparentTo(self.endNodePath)
     
     self.tracks = []
     self.rate = None
     self.trackId = Wake.wakeCount
     Wake.wakeCount += 1
     self.setBin('fixed', 10, 1)
     self.hide()
예제 #2
0
 def __init__(self, parent = hidden):
     NodePath.__init__(self)
     self.assign(globalPropPool.getProp('ripples'))
     self.reparentTo(parent)
     self.getChild(0).setZ(0.10000000000000001)
     self.seqNode = self.find('**/+SequenceNode').node()
     self.seqNode.setCycleRate(0)
     self.track = None
     self.trackId = Ripples.rippleCount
     Ripples.rippleCount += 1
     self.setBin('fixed', 100, 1)
     self.hide()
예제 #3
0
 def __init__(self, parent=hidden, fBillboard=1):
     NodePath.__init__(self)
     self.assign(globalPropPool.getProp('suit_explosion_dust'))
     if fBillboard:
         self.setBillboardAxis()
     self.reparentTo(parent)
     self.seqNode = self.find('**/+SequenceNode').node()
     self.seqNode.setCycleRate(0)
     self.track = None
     self.trackId = DustCloud.dustCloudCount
     DustCloud.dustCloudCount += 1
     self.setBin('fixed', 100, 1)
     self.hide()
     return
예제 #4
0
 def __init__(self, parent = hidden, fBillboard = 1):
     NodePath.__init__(self)
     self.assign(globalPropPool.getProp('suit_explosion_dust'))
     if fBillboard:
         self.setBillboardAxis()
     
     self.reparentTo(parent)
     self.seqNode = self.find('**/+SequenceNode').node()
     self.seqNode.setCycleRate(0)
     self.track = None
     self.trackId = DustCloud.dustCloudCount
     DustCloud.dustCloudCount += 1
     self.setBin('fixed', 100, 1)
     self.hide()
 def __init__(self, parent = hidden, target = hidden):
     NodePath.__init__(self)
     self.assign(parent.attachNewNode('wake'))
     self.target = target
     self.ripples = globalPropPool.getProp('ripples')
     tformNode = self.ripples.getChild(0)
     tformNode.setZ(0.01)
     self.seqNodePath = self.ripples.find('**/+SequenceNode')
     self.seqNode = self.seqNodePath.node()
     self.sortBase = 10
     self.rippleCount = 0
     self.doLaters = [
         None] * 20
     self.trackId = Wake.wakeCount
     Wake.wakeCount += 1
 def __init__(self, parent=hidden):
     NodePath.__init__(self, parent)
     self.assign(parent.attachNewNode('splash'))
     self.splashdown = globalPropPool.getProp('splashdown')
     self.splashdown.reparentTo(self)
     self.splashdown.setZ(-0.01)
     self.splashdown.setScale(0.40000000000000002)
     ta = TransparencyAttrib.make(TransparencyAttrib.MBinary)
     self.splashdown.node().setAttrib(ta, 1)
     self.splashdown.setBin('fixed', 130, 1)
     self.ripples = Ripples(self)
     self.ripples.setBin('fixed', 120, 1)
     self.pSystem = BattleParticles.createParticleEffect('SplashLines')
     self.pSystem.setScale(0.40000000000000002)
     self.pSystem.setBin('fixed', 150, 1)
     self.particles = self.pSystem.particlesDict.get('particles-1')
     self.track = None
     self.trackId = Splash.splashCount
     Splash.splashCount += 1
     self.setBin('fixed', 100, 1)
     self.hide()