<s> """<STR_LIT>""" <EOL> import sys , sylphis <EOL> from string import * <EOL> from CSimpleActor import * <EOL> from util import manage <EOL> import pyui <EOL> class CParticleSystem ( CSimpleActor ) : <EOL> __classname__ = '<STR_LIT>' <EOL> __desc__ = '<STR_LIT>' <EOL> __actortype__ = '<STR_LIT:e>' <EOL> __specs__ = [ <EOL> { '<STR_LIT:name>' : '<STR_LIT>' , '<STR_LIT>' : '<STR_LIT>' } <EOL> ] <EOL> emitter = '<STR_LIT>' <EOL> def __init__ ( self , * args ) : <EOL> CSimpleActor . __init__ ( self , * args ) <EOL> def join ( self , ent ) : <EOL> CSimpleActor . join ( self , ent ) <EOL> from core . particlesystem import manager <EOL> self . partdef = manager . registerParticleSystem ( self . particledef ) <EOL> m = manage ( sylphis . CRenderableMultiMesh , self . mScene ) <EOL> p = manage ( sylphis . CParticleSystem ) <EOL> p . setDefinition ( self . partdef ) <EOL> p . setDefaultShader ( self . partdef . getMaterial ( ) ) <EOL> p . setDieAfterUse ( False ) <EOL> self . mScene . addParticleSystem ( p ) <EOL> m . getBound ( ) . setBounds ( sylphis . CVector3 ( - <NUM_LIT:1000> , - <NUM_LIT:1000> , - <NUM_LIT:1000> ) , sylphis . CVector3 ( <NUM_LIT:1000> , <NUM_LIT:1000> , <NUM_LIT:1000> ) ) <EOL> m . addMesh ( p ) <EOL> m . setPosition ( self . origin ) <EOL> self . node = m <EOL> self . particleSystem = p <EOL> def start ( self ) : <EOL> CSimpleActor . start ( self ) <EOL> if self . emitter != '<STR_LIT>' : <EOL> emitter = self . mCont . actors . getActorByName ( self . emitter ) <EOL> if emitter != None : <EOL> self . particleSystem . setEmitter ( emitter . node ) <EOL> def Action_fire ( self , other ) : <EOL> print "<STR_LIT>" <EOL> self . particleSystem . fire ( ) </s>
