Advertisement
Guest User

Untitled

a guest
Jan 26th, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. from direct.directnotify import DirectNotifyGlobal
  2. from pirates.creature import DistributedCreature
  3. from pirates.pirate import AvatarTypes
  4. from pirates.piratesbase import PiratesGlobals
  5. from otp.otpbase import OTPRender
  6.  
  7. class DistributedAnimal(DistributedCreature.DistributedCreature):
  8.  
  9. def __init__(self, cr):
  10. DistributedCreature.DistributedCreature.__init__(self, cr)
  11. self.battleCollisionBitmask = PiratesGlobals.WallBitmask | PiratesGlobals.TargetBitmask
  12. OTPRender.renderReflection(False, self, 'p_animal', None)
  13.  
  14.  
  15. def setupCreature(self, avatarType):
  16. DistributedCreature.DistributedCreature.setupCreature(self, avatarType)
  17. self.motionFSM.motionAnimFSM.setupSplashAnimOverride(self.creature.getSplashOverride())
  18. self.motionFSM.motionAnimFSM.setupSplashAnimOverrideDelay(12)
  19.  
  20.  
  21. def customInteractOptions(self):
  22. self.setInteractOptions(proximityText = None, allowInteract = False)
  23.  
  24.  
  25. def showHpMeter(self):
  26. pass
  27.  
  28.  
  29. def isBattleable(self):
  30. return 0
  31.  
  32.  
  33. def initializeBattleCollisions(self):
  34. pass
  35.  
  36.  
  37. def getMinimapObject(self):
  38. pass
  39.  
  40.  
  41. def canIdleSplashEver(self):
  42. return self.creature.getSplashOverride()
  43.  
  44.  
  45. def canIdleSplash(self):
  46. return self.creature.getCurrentAnim() == 'idle'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement