def __init__(self, air):
     try:
         self.DistributedDroppableCollectableBackpackAI_initialized
         return
     except:
         self.DistributedDroppableCollectableBackpackAI_initialized = 1
     DistributedDroppableCollectableObjectAI.__init__(self, air)
     self.bp = []
     self.bpAmmo = []
    def __init__(self, air):
        try:
            self.DistributedDroppableCollectableBackpackAI_initialized
            return
        except:
            self.DistributedDroppableCollectableBackpackAI_initialized = 1

        DistributedDroppableCollectableObjectAI.__init__(self, air)
        self.bp = []
        self.bpAmmo = []
 def __init__(self, air):
     DistributedDroppableCollectableObjectAI.__init__(self, air)
     self.health = 0
     self.disabled = 0
 def delete(self):
     self.value = None
     DistributedDroppableCollectableObjectAI.delete(self)
     return
 def collectedObject(self):
     avId = self.air.getAvatarIdFromSender()
     avatar = self.air.doId2do.get(avId)
     if avatar:
         avatar.b_setMoney(avatar.getMoney() + self.getValue())
     DistributedDroppableCollectableObjectAI.collectedObject(self)
 def __init__(self, air):
     DistributedDroppableCollectableObjectAI.__init__(self, air)
     self.value = 0
 def collectedObject(self):
     avId = self.air.getAvatarIdFromSender()
     av = self.air.doId2do.get(avId)
     if av:
         av.b_setBackpackAmmo(self.getBP(), self.getBPAmmo())
     DistributedDroppableCollectableObjectAI.collectedObject(self)
 def delete(self):
     self.stopTimer()
     self.bp = None
     self.bpAmmo = None
     DistributedDroppableCollectableObjectAI.delete(self)
     return
 def disable(self):
     taskMgr.remove(self.uniqueName('disableInterval'))
     DistributedDroppableCollectableObjectAI.disable(self)
 def collectedObject(self):
     avId = self.air.getAvatarIdFromSender()
     av = self.air.doId2do.get(avId)
     if av:
         av.b_setBackpackAmmo(self.getBP(), self.getBPAmmo())
     DistributedDroppableCollectableObjectAI.collectedObject(self)
 def delete(self):
     self.stopTimer()
     self.bp = None
     self.bpAmmo = None
     DistributedDroppableCollectableObjectAI.delete(self)
Example #12
0
 def delete(self):
     self.value = None
     DistributedDroppableCollectableObjectAI.delete(self)
Example #13
0
 def collectedObject(self):
     avId = self.air.getAvatarIdFromSender()
     avatar = self.air.doId2do.get(avId)
     if avatar:
         avatar.b_setMoney(avatar.getMoney() + self.getValue())
     DistributedDroppableCollectableObjectAI.collectedObject(self)
Example #14
0
 def __init__(self, air):
     DistributedDroppableCollectableObjectAI.__init__(self, air)
     self.value = 0
 def delete(self):
     self.health = None
     self.disabled = None
     DistributedDroppableCollectableObjectAI.delete(self)
     return
 def disable(self):
     taskMgr.remove(self.uniqueName("disableInterval"))
     DistributedDroppableCollectableObjectAI.disable(self)
 def delete(self):
     self.health = None
     self.disabled = None
     DistributedDroppableCollectableObjectAI.delete(self)
 def __init__(self, air):
     DistributedDroppableCollectableObjectAI.__init__(self, air)
     self.health = 0
     self.disabled = 0