def __init__(self, cr): ModPlayer.__init__(self, cr) BaseLocalAvatar.__init__(self) self.moneyGui = MoneyGUI() self.waveGui = WaveGUI() self.waveReportGui = WaveReportGUI() self.codeGUI = CodeGUI()
def handleHealthChange(self, hp, oldHp): BaseLocalAvatar.handleHealthChange(self, hp, oldHp) delta = hp - oldHp if delta == 0: return CIGlobals.makeDeltaTextEffect(delta, base.a2dBottomLeft, (0.07, 0, 0.1))
def stopPlay(self): if not self.playState: self.notify.warning("Redundant call to stopPlay()") return self.hideBookButton() self.hideFriendButton() BaseLocalAvatar.stopPlay(self) self.stopTrackAnimToSpeed()
def startPlay(self, gags=False, book=False, friends=False, laff=False, chat=False, wantMouse=1): if self.playState: self.notify.warning("Redundant call to startPlay()") return if book: self.showBookButton() if friends: self.showFriendButton() if chat: self.createChatInput() self.startTrackAnimToSpeed() BaseLocalAvatar.startPlay(self, gags, laff, wantMouse)
def enableAvatarControls(self, wantMouse=0): BaseLocalAvatar.enableAvatarControls(self, wantMouse) self.accept('jumpStart', self.__jump)
def setupAttacks(self): DistributedPlayerToon.setupAttacks(self) BaseLocalAvatar.setupAttacks(self)
def updateAttackAmmo(self, attackId, ammo, maxAmmo, ammo2, maxAmmo2, clip, maxClip): DistributedPlayerToon.updateAttackAmmo(self, attackId, ammo, maxAmmo, ammo2, maxAmmo2, clip, maxClip) BaseLocalAvatar.updateAttackAmmo(self, attackId, ammo, maxAmmo, ammo2, maxAmmo2, clip, maxClip)
def setEquippedAttack(self, gagId): DistributedPlayerToon.setEquippedAttack(self, gagId) BaseLocalAvatar.setEquippedAttack(self, gagId)
def areGagsAllowed(self): return (BaseLocalAvatar.areGagsAllowed(self) and (self.chatInput is not None and self.chatInput.fsm.getCurrentState().getName() == 'idle'))
def setupAttacks(self): ModPlayer.setupAttacks(self) BaseLocalAvatar.setupAttacks(self)
def updateAttackAmmo(self, attackId, ammo, maxAmmo, ammo2, maxAmmo2, clip, maxClip): ModPlayer.updateAttackAmmo(self, attackId, ammo, maxAmmo, ammo2, maxAmmo2, clip, maxClip) BaseLocalAvatar.updateAttackAmmo(self, attackId, ammo, maxAmmo, ammo2, maxAmmo2, clip, maxClip)
def handleDamage(self, x, y, z): BaseLocalAvatar.handleDamage(self, x, y, z)
def setEquippedAttack(self, gagId): ModPlayer.setEquippedAttack(self, gagId) BaseLocalAvatar.setEquippedAttack(self, gagId)