diff --git a/otp/level/EntityTypes.py b/otp/level/EntityTypes.py index 43541ffe..31dcbfea 100755 --- a/otp/level/EntityTypes.py +++ b/otp/level/EntityTypes.py @@ -13,7 +13,7 @@ class Entity(EntityTypeDesc): class LevelMgr(Entity): type = 'levelMgr' permanent = 1 - attribs = (('name', 'LevelMgr', 'const'), ('parentEntId', 0, 'const'), ('modelFilename', '', 'const')) + attribs = (('name', 'LevelMgr', 'const'), ('parentEntId', 0, 'const'), ('modelFilename', '', 'const'), ('removeNodes', [], 'const')) class AttribModifier(Entity): diff --git a/otp/level/LevelMgr.py b/otp/level/LevelMgr.py index 9803a3e2..55ec02ef 100755 --- a/otp/level/LevelMgr.py +++ b/otp/level/LevelMgr.py @@ -6,6 +6,11 @@ class LevelMgr(LevelMgrBase.LevelMgrBase): def __init__(self, level, entId): LevelMgrBase.LevelMgrBase.__init__(self, level, entId) self.geom = loader.loadModel(self.modelFilename) + + if hasattr(self, 'removeNodes'): + for node in self.removeNodes: + self.geom.find(node).removeNode() + self.zoneNums = [] self.level.zoneNum2zoneId = {} self.level.zoneId2zoneNum = {} diff --git a/toontown/coghq/BossbotCountryClubMazeRoom_Battle00.py b/toontown/coghq/BossbotCountryClubMazeRoom_Battle00.py index d5dd4e46..bbd86bf9 100755 --- a/toontown/coghq/BossbotCountryClubMazeRoom_Battle00.py +++ b/toontown/coghq/BossbotCountryClubMazeRoom_Battle00.py @@ -6,6 +6,7 @@ GlobalEntities = {1000: {'type': 'levelMgr', 'cogLevel': 0, 'farPlaneDistance': 1500, 'modelFilename': 'phase_12/models/bossbotHQ/BossbotMazex1_C', + 'removeNodes': ['**/clubHouse'], 'wantDoors': 1}, 0: {'type': 'zone', 'name': 'UberZone', diff --git a/toontown/coghq/BossbotCountryClubMazeRoom_Battle01.py b/toontown/coghq/BossbotCountryClubMazeRoom_Battle01.py index 73714423..5f449043 100755 --- a/toontown/coghq/BossbotCountryClubMazeRoom_Battle01.py +++ b/toontown/coghq/BossbotCountryClubMazeRoom_Battle01.py @@ -6,6 +6,7 @@ GlobalEntities = {1000: {'type': 'levelMgr', 'cogLevel': 0, 'farPlaneDistance': 1500, 'modelFilename': 'phase_12/models/bossbotHQ/BossbotMazex2_straight_C', + 'removeNodes': ['**/clubHouse'], 'wantDoors': 1}, 0: {'type': 'zone', 'name': 'UberZone', diff --git a/toontown/coghq/BossbotCountryClubMazeRoom_Battle02.py b/toontown/coghq/BossbotCountryClubMazeRoom_Battle02.py index 51fe54fd..2f608a76 100755 --- a/toontown/coghq/BossbotCountryClubMazeRoom_Battle02.py +++ b/toontown/coghq/BossbotCountryClubMazeRoom_Battle02.py @@ -6,6 +6,7 @@ GlobalEntities = {1000: {'type': 'levelMgr', 'cogLevel': 0, 'farPlaneDistance': 1500, 'modelFilename': 'phase_12/models/bossbotHQ/BossbotMazex4_C', + 'removeNodes': ['**/clubHouse'], 'wantDoors': 1}, 0: {'type': 'zone', 'name': 'UberZone',