예제 #1
0
 def __init__(self, air, dispatch):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.numbers = []
     self.code = []
     self.setModel("models/keypad.bam")
     self.entityState = self.CodeEntry
     self.codeWasCorrect = False
예제 #2
0
 def __init__(self, air, dispatch=None):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.hp = 100
     self.maxHp = 100
     self.avId = None
     self.lastGive = 0.0
     self.giveIval = 0.09
예제 #3
0
 def __init__(self, air, dispatch):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.pickupState = 1
     self.gagId = self.__pickGagId()
     self.oneTimePickup = False
     self.random = True
     self.cost = self.air.attackMgr.getAttackClassByID(self.gagId).Cost
예제 #4
0
 def __init__(self, air, dispatch):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.scriptFilename = ""
     self.scriptSrc = ""
     self.target = None
     self.scriptTasks = {}
     self.scriptEnvirons = []
     self.clientSide = False
예제 #5
0
    def __init__(self, air, dispatch):
        DistributedEntityAI.__init__(self, air, dispatch)

        self.entState = self.StateStopped

        self.sndFile = ""
        self.looping = self.LoopNo
        self.volume = 1.0

        self.randomDelayMin = 1
        self.randomDelayMax = 20
        self.randomDelay = 0.0
예제 #6
0
 def __init__(self, air, dispatch):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.height = 1.0
     self.stompSpeed = 1
     self.raiseSpeed = 1
     self.timeOnGround = 0.0
     self.timeInAir = 0.0
     self.damage = 20
     self.scale = Vec3(1)
     self.floorColl = None
     self.damaged = []
     self.moveDir = Vec3.up()
     self.stomped = False
     self.startDelay = 0.0
예제 #7
0
    def __init__(self, air, dispatch=None):
        DistributedEntityAI.__init__(self, air, dispatch)
        AvatarShared.__init__(self)

        self.latestDamage = None

        self.blockAIChat = False

        # Activity translations
        self.actTable = {}

        self.lastPos = Point3(0)
        self.movementDelta = Vec3(0)
        self.movementVector = Vec3(0)
        self.attackFinished = False

        return
 def __init__(self, air, battle, eType = ELEVATOR_NORMAL):
     DistributedElevatorAI.__init__(self, air, battle, 0, eType)
     DistributedEntityAI.__init__(self, air, battle)
     self.index = 0
예제 #9
0
 def __init__(self, air, dispatch):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.flashColor = Vec3(1)
     self.brightTime = 1.0
     self.darkTime = 1.0
예제 #10
0
 def __init__(self, air, dispatch=None):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.number = 0
 def __init__(self, air, dispatch):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.pickupState = 1
     self.gagId = self.__pickGagId()
     self.oneTimePickup = False
     self.random = True
예제 #12
0
 def __init__(self, air, dispatch = None):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.setModel("models/jellybean.bam")
     self.setModelScale(3.0)
예제 #13
0
 def __init__(self, air, dispatch):
     DistributedEntityAI.__init__(self, air, dispatch)
     DistributedNodeAI.__init__(self, air)
     self.usedAvIds = []
예제 #14
0
 def __init__(self, air, dispatch):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.aliveTime = 0.0
예제 #15
0
 def __init__(self, air, dispatch):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.entState = self.StateClosed
예제 #16
0
 def __init__(self, air, dispatch):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.startPoint = None
     self.endPoint = None
     self.moveTrack = None
     self.speed = 0.0
예제 #17
0
 def __init__(self, air, dispatch):
     DistributedEntityAI.__init__(self, air, dispatch)
     self.nextLevelName = ""