Poodletooth-iLand/toontown/town/BRStreet.py

21 lines
571 B
Python
Raw Normal View History

2015-03-03 16:10:12 -06:00
from direct.task.Task import Task
import random
from toontown.town import Street
class BRStreet(Street.Street):
def enter(self, requestStatus):
Street.Street.enter(self, requestStatus)
taskMgr.doMethodLater(1, self.__windTask, 'BR-wind')
def exit(self):
Street.Street.exit(self)
taskMgr.remove('BR-wind')
def __windTask(self, task):
base.playSfx(random.choice(self.loader.windSound))
time = random.random() * 8.0 + 1
taskMgr.doMethodLater(time, self.__windTask, 'BR-wind')
2015-07-05 18:59:25 -05:00
return Task.done