Remove club house from front threes

This commit is contained in:
John 2015-05-24 21:56:10 +03:00 committed by Loudrob
parent e22248e742
commit 196de9056e
5 changed files with 9 additions and 1 deletions

View file

@ -13,7 +13,7 @@ class Entity(EntityTypeDesc):
class LevelMgr(Entity): class LevelMgr(Entity):
type = 'levelMgr' type = 'levelMgr'
permanent = 1 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): class AttribModifier(Entity):

View file

@ -6,6 +6,11 @@ class LevelMgr(LevelMgrBase.LevelMgrBase):
def __init__(self, level, entId): def __init__(self, level, entId):
LevelMgrBase.LevelMgrBase.__init__(self, level, entId) LevelMgrBase.LevelMgrBase.__init__(self, level, entId)
self.geom = loader.loadModel(self.modelFilename) self.geom = loader.loadModel(self.modelFilename)
if hasattr(self, 'removeNodes'):
for node in self.removeNodes:
self.geom.find(node).removeNode()
self.zoneNums = [] self.zoneNums = []
self.level.zoneNum2zoneId = {} self.level.zoneNum2zoneId = {}
self.level.zoneId2zoneNum = {} self.level.zoneId2zoneNum = {}

View file

@ -6,6 +6,7 @@ GlobalEntities = {1000: {'type': 'levelMgr',
'cogLevel': 0, 'cogLevel': 0,
'farPlaneDistance': 1500, 'farPlaneDistance': 1500,
'modelFilename': 'phase_12/models/bossbotHQ/BossbotMazex1_C', 'modelFilename': 'phase_12/models/bossbotHQ/BossbotMazex1_C',
'removeNodes': ['**/clubHouse'],
'wantDoors': 1}, 'wantDoors': 1},
0: {'type': 'zone', 0: {'type': 'zone',
'name': 'UberZone', 'name': 'UberZone',

View file

@ -6,6 +6,7 @@ GlobalEntities = {1000: {'type': 'levelMgr',
'cogLevel': 0, 'cogLevel': 0,
'farPlaneDistance': 1500, 'farPlaneDistance': 1500,
'modelFilename': 'phase_12/models/bossbotHQ/BossbotMazex2_straight_C', 'modelFilename': 'phase_12/models/bossbotHQ/BossbotMazex2_straight_C',
'removeNodes': ['**/clubHouse'],
'wantDoors': 1}, 'wantDoors': 1},
0: {'type': 'zone', 0: {'type': 'zone',
'name': 'UberZone', 'name': 'UberZone',

View file

@ -6,6 +6,7 @@ GlobalEntities = {1000: {'type': 'levelMgr',
'cogLevel': 0, 'cogLevel': 0,
'farPlaneDistance': 1500, 'farPlaneDistance': 1500,
'modelFilename': 'phase_12/models/bossbotHQ/BossbotMazex4_C', 'modelFilename': 'phase_12/models/bossbotHQ/BossbotMazex4_C',
'removeNodes': ['**/clubHouse'],
'wantDoors': 1}, 'wantDoors': 1},
0: {'type': 'zone', 0: {'type': 'zone',
'name': 'UberZone', 'name': 'UberZone',