def showBoss(): self._setCamTarget(bossSuit, 20, offset=Point3(0, 0, 7), angle=Point3(0, 15, 0)) bossSuit.loop('victory') self._state = 1
from pandac.PandaModules import Point3, VBase3, Vec4 objectStruct = {'Objects': {'1233168640.0akelts6': {'Type': 'Building Interior','Name': '','AdditionalData': ['interior_spanish_store_weapons'],'Instanced': True,'Objects': {'1157098075.78jasyeung': {'Type': 'Townsperson','Category': 'Gunsmith','Aggro Radius': '12.0000','AnimSet': 'default','CustomModel': 'None','DNA': '1157098075.78jasyeung','Hpr': VBase3(44.363, 0.0, 0.0),'Patrol Radius': '12.0000','Pos': Point3(12.744, -19.11, 0.0),'Private Status': 'All','Respawns': True,'Scale': VBase3(1.0, 1.0, 1.0),'Start State': 'Idle','Team': 'Villager'}},'Visual': {'Model': 'models/buildings/interior_spanish_store'}}},'Node Links': [],'Layers': {},'ObjectIds': {'1157098075.78jasyeung': '["Objects"]["1233168640.0akelts6"]["Objects"]["1157098075.78jasyeung"]','1233168640.0akelts6': '["Objects"]["1233168640.0akelts6"]'}}
def setCollSphereToTargeting(self): if hasattr(self, 'collSphere') and self.collSphere is not None: radius = Globals.LegalEagle.DamageSphereRadius self.collSphere.setCenter(Point3(0, 0, radius * 2)) self.collSphere.setRadius(radius) return
# File: p (Python 2.4) from pandac.PandaModules import Point3, VBase3 objectStruct = { 'Objects': { '1172185213.66sdnaik': { 'Type': 'Island Game Area', 'Name': 'CaveCTemplate', 'Objects': { '1172185301.05sdnaik': { 'Type': 'Locator Node', 'Name': 'portal_interior_1', 'Hpr': VBase3(-145.119, -1.51, 0.55600000000000005), 'Pos': Point3(295.63299999999998, 137.404, 2.8380000000000001), 'Scale': VBase3(1.0, 1.0, 1.0) }, '1172185301.08sdnaik': { 'Type': 'Locator Node', 'Name': 'portal_interior_2', 'Hpr': VBase3(144.768, 0.624, -0.46500000000000002), 'Pos': Point3(299.39600000000002, -583.52800000000002, 3.411), 'Scale': VBase3(1.0, 1.0, 1.0) } }, 'Visual': { 'Model': 'models/caves/cave_c_zero' } } },
objectStruct = { 'AmbientColors': {}, 'DirectionalColors': {}, 'FogColors': {}, 'FogRanges': {}, 'Objects': { '1231799668.74caoconno0': { 'Type': 'Building Interior', 'Name': '', 'AdditionalData': ['interior_shanty_store_weapons'], 'Instanced': True, 'Objects': { '1172092324.47kmuller': { 'Type': 'Flower_Pots', 'Hpr': VBase3(0.0, 0.0, 0.0), 'Pos': Point3(-2.65, -7.033, 2.629), 'Scale': VBase3(0.881, 0.881, 0.881), 'Visual': { 'Model': 'models/props/FlowerPot1' } }, '1181605248.0dxschafe': { 'Type': 'Townsperson', 'Category': 'Gunsmith', 'Aggro Radius': '12.0000', 'AnimSet': 'bar_wipe', 'CustomModel': 'None', 'Hpr': VBase3(104.382, 0.0, 0.0), 'Patrol Radius': '12.0000', 'Pos': Point3(33.071, 8.412, -0.237), 'PoseAnim': '',
def load(self): CogdoGameMovie.load(self) self.toonDNA = ToonDNA.ToonDNA() self.toonDNA.newToonFromProperties('dss', 'ss', 'm', 'm', 2, 0, 2, 2, 1, 8, 1, 8, 1, 14, 0) self.toonHead = Toon.Toon() self.toonHead.setDNA(self.toonDNA) self.makeSuit('sc') self.toonHead.getGeomNode().setDepthWrite(1) self.toonHead.getGeomNode().setDepthTest(1) self.toonHead.loop('neutral') self.toonHead.setPosHprScale(-0.73, 0, -1.27, 180, 0, 0, 0.18, 0.18, 0.18) self.toonHead.reparentTo(hidden) self.toonHead.startBlink() self.cogHead = Suit.Suit() self.cogDNA = SuitDNA.SuitDNA() self.cogDNA.newSuit('le') self.cogHead.setDNA(self.cogDNA) self.cogHead.getGeomNode().setDepthWrite(1) self.cogHead.getGeomNode().setDepthTest(1) self.cogHead.loop('neutral') self.cogHead.setPosHprScale(-0.74, 0, -1.79, 180, 0, 0, 0.12, 0.14, 0.14) self.cogHead.reparentTo(hidden) self.cogHead.nametag3d.hide() self.clipPlane = self.toonHead.attachNewNode(PlaneNode('clip')) self.clipPlane.node().setPlane(Plane(0, 0, 1, 0)) self.clipPlane.setPos(0, 0, 2.45) audioMgr = base.cogdoGameAudioMgr self._cogDialogueSfx = audioMgr.createSfx('cogDialogue') self._toonDialogueSfx = audioMgr.createSfx('toonDialogue') def start(): camera.wrtReparentTo(render) self._startUpdateTask() def end(): self._stopUpdateTask() introDuration = Globals.Gameplay.IntroDurationSeconds dialogue = TTLocalizer.CogdoFlyingIntroMovieDialogue waitDur = introDuration / len(dialogue) flyDur = introDuration - waitDur * 0.5 flyThroughIval = Parallel( camera.posInterval(flyDur, self._exit.getPos(render) + Point3(0, -22, 1), blendType='easeInOut'), camera.hprInterval(flyDur, Point3(0, 5, 0), blendType='easeInOut')) self._ival = Sequence( Func(start), Parallel( flyThroughIval, Sequence( Func(self.displayLine, 'cog', self._getRandomLine(dialogue[0])), Wait(waitDur), Func(self.displayLine, 'toon', self._getRandomLine(dialogue[1])), Wait(waitDur), Func(self.displayLine, 'cog', self._getRandomLine(dialogue[2])), Wait(waitDur))), Func(end))
from pandac.PandaModules import Point3, VBase3 objectStruct = {'Objects': {'1156815549.07jubutler': {'Type': 'Region','Name': 'default','Objects': {'1156815620.72jubutler': {'Type': 'Island Game Area','File': 'JungleAreaA','Hpr': Point3(0.0, 0.0, 0.0),'Objects': {'1156815891.07jubutler': {'Type': 'Locator Node','Name': 'portal_interior_1','Hpr': VBase3(-90.0, 0.0, 0.0),'Pos': Point3(416.227, 263.732, 3.255),'Scale': VBase3(1.0, 1.0, 1.0)},'1156815891.1jubutler': {'Type': 'Locator Node','Name': 'portal_interior_2','Hpr': VBase3(167.778, 0.0, 0.0),'Pos': Point3(-122.269, -368.445, 0.591),'Scale': VBase3(1.0, 1.0, 1.0)},'1156873680.28dzlu': {'Type': 'Locator Node','Name': 'portal_interior_3','Hpr': VBase3(30.734, 0.0, 0.0),'Pos': Point3(-393.1, 224.544, 0.503),'Scale': VBase3(1.0, 1.0, 1.0)}},'Pos': Point3(0.0, 0.0, 0.0),'Scale': VBase3(1.0, 1.0, 1.0),'Visual': {'Model': 'models/props/M_Island1'}}},'Visual': {}}},'Layers': {},'ObjectIds': {'1156815549.07jubutler': '["Objects"]["1156815549.07jubutler"]','1156815620.72jubutler': '["Objects"]["1156815549.07jubutler"]["Objects"]["1156815620.72jubutler"]','1156815891.07jubutler': '["Objects"]["1156815549.07jubutler"]["Objects"]["1156815620.72jubutler"]["Objects"]["1156815891.07jubutler"]','1156815891.1jubutler': '["Objects"]["1156815549.07jubutler"]["Objects"]["1156815620.72jubutler"]["Objects"]["1156815891.1jubutler"]','1156873680.28dzlu': '["Objects"]["1156815549.07jubutler"]["Objects"]["1156815620.72jubutler"]["Objects"]["1156873680.28dzlu"]'}}
# Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: C:\Cygwin\home\piratepub\player_pirates_1_0_33QA\pirates\src\leveleditor\worldData\tortuga_building_int_vip_2.py from pandac.PandaModules import Point3, VBase3, Vec4 objectStruct = { 'Objects': { '1155772882.54fxlara0': { 'Type': 'Building Interior', 'Name': '', 'Instanced': True, 'Objects': { '1169081484.78mike': { 'Type': 'Parlor Game', 'Category': 'Blackjack', 'BetMultiplier': '1', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(0.803, -1.084, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': { 'Model': 'models/props/Cardtable_Pill' } } }, 'Visual': { 'Model': 'models/buildings/interior_vip_room' } } }, 'Node Links': [], 'Layers': {}, 'ObjectIds': {
'1172209955.25sdnaik': { 'Type': 'Island Game Area', 'Name': 'hidden_island_jungle_b_1', 'File': '', 'AdditionalData': ['JungleAreaB'], 'Instanced': True, 'Objects': { '1172210038.67sdnaik': { 'Type': 'Locator Node', 'Name': 'portal_interior_1', 'Hpr': VBase3(-90.0, 0.0, 0.0), 'Pos': Point3(498.11399999999998, 427.80799999999999, 45.335999999999999), 'Scale': VBase3(1.0, 1.0, 1.0) }, '1172210038.72sdnaik': { 'Type': 'Locator Node', 'Name': 'portal_interior_2', 'Hpr': VBase3(121.61, 0.0, 0.0), 'Pos': Point3(-318.959, -565.76800000000003, 0.67500000000000004), 'Scale': VBase3(1.0, 1.0, 1.0) },
from pandac.PandaModules import Point3, VBase3 objectStruct = { 'Objects': { '1161805542.95Shochet': { 'Type': 'Island', 'Name': 'ParlorIsland', 'Objects': { '1161805620.28Shochet': { 'Type': 'Building Exterior', 'File': 'ParlorInterior', 'ExtUid': '1161805620.28Shochet0', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(1.347, 8.352, 47.838), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': { 'Name': '', 'Door': 'models/buildings/shanty_guildhall_door', 'Interior': 'models/buildings/interior_storage', 'Model': 'models/buildings/english_k' } } }, 'Visual': { 'Model': 'models/islands/pir_m_are_isl_cutthroat' } } }, 'Node Links': [], 'Layers': {}, 'ObjectIds': {
'Type': 'Building Interior', 'Name': '', 'AdditionalData': ['interior_tavern'], 'Instanced': True, 'Objects': { '1172887552.0mike0': { 'Type': 'Townsperson', 'Category': 'Commoner', 'AnimSet': 'bar_talk03', 'CustomModel': 'None', 'DNA': '1172887552.0mike0', 'HelpID': 'NONE', 'Holiday': '', 'Hpr': VBase3(121.186, 0.0, 0.0), 'Patrol Radius': '12.0000', 'Pos': Point3(2.96, 30.742, 1.017), 'PoseAnim': '', 'PoseFrame': '', 'Private Status': 'All', 'Respawns': True, 'Scale': VBase3(1.0, 1.0, 1.0), 'ShopID': 'PORT_ROYAL_DEFAULTS', 'Start State': 'Idle', 'StartFrame': '0', 'Team': 'Villager', 'TrailFX': 'None', 'VisSize': '' }, '1173146624.0mike0': { 'Type': 'Townsperson', 'Category': 'Cast',
def load(self): CogdoGameMovie.load(self) self.toonDNA = ToonDNA.ToonDNA() self.toonDNA.newToonFromProperties('dss', 'ss', 'm', 'm', 2, 0, 2, 2, 1, 8, 1, 8, 1, 14) self.toonHead = Toon.Toon() self.toonHead.setDNA(self.toonDNA) self.makeSuit('sc') self.toonHead.getGeomNode().setDepthWrite(1) self.toonHead.getGeomNode().setDepthTest(1) self.toonHead.loop('neutral') self.toonHead.setPosHprScale(-0.73, 0, -1.27, 180, 0, 0, 0.18, 0.18, 0.18) self.toonHead.reparentTo(hidden) self.toonHead.startBlink() self.cogHead = Suit.Suit() self.cogDNA = SuitDNA.SuitDNA() self.cogDNA.newSuit('ms') self.cogHead.setDNA(self.cogDNA) self.cogHead.getGeomNode().setDepthWrite(1) self.cogHead.getGeomNode().setDepthTest(1) self.cogHead.loop('neutral') self.cogHead.setPosHprScale(-0.73, 0, -1.46, 180, 0, 0, 0.14, 0.14, 0.14) self.cogHead.reparentTo(hidden) self.cogHead.nametag3d.hide() self.clipPlane = self.toonHead.attachNewNode(PlaneNode('clip')) self.clipPlane.node().setPlane(Plane(0, 0, 1, 0)) self.clipPlane.setPos(0, 0, 2.45) audioMgr = base.cogdoGameAudioMgr self._cogDialogueSfx = audioMgr.createSfx('cogDialogue') self._toonDialogueSfx = audioMgr.createSfx('toonDialogue') suitData = Globals.SuitData[Globals.SuitTypes.Boss] bossSuit = Suit.Suit() d = SuitDNA.SuitDNA() d.newSuit(suitData['dnaName']) bossSuit.setDNA(d) bossSuit.nametag3d.stash() bossSuit.nametag.destroy() bossSuit.setScale(suitData['scale']) bossSuit.loop('neutral') bossSuit.reparentTo(render) bossSuit.setPos(self._exit, -5, -5, 0) bossSuit.lookAt(self._exit) self._suits.append(bossSuit) self._camHelperNode = NodePath('CamHelperNode') self._camHelperNode.reparentTo(render) dialogue = TTLocalizer.CogdoMazeIntroMovieDialogue introDuration = Globals.IntroDurationSeconds waitDuration = introDuration / len(dialogue) def start(): camera.wrtReparentTo(render) self._exit.open(animate=False) def showBoss(): self._setCamTarget(bossSuit, 20, offset=Point3(0, 0, 7), angle=Point3(0, 15, 0)) bossSuit.loop('victory') self._state = 1 def showExit(): self._setCamTarget(self._exit, 10, offset=Point3(0, 0, 0), angle=Point3(0, 60, 0)) self._exit.close() self._state = 2 showExitIval = Parallel(camera.posInterval(waitDuration * 0.5, (10, -25, 20), other=self._exit, blendType='easeInOut'), Sequence(Wait(waitDuration * 0.25), Func(bossSuit.play, 'effort'), camera.hprInterval(waitDuration * 0.25, (30, -30, 0), blendType='easeInOut'), Func(self._exit.close), Wait(waitDuration * 0.5))) def showWaterCooler(): wc = self._maze.getWaterCoolers()[0] self._setCamTarget(wc, 25, angle=Point3(-30, 60, 0)) camera.wrtReparentTo(self._camHelperNode) self._state = 3 def end(): self._stopUpdateTask() self._ival = Sequence(Func(start), Func(self.displayLine, 'toon', self._getRandomLine(dialogue[0])), showExitIval, Func(showWaterCooler), Func(self.displayLine, 'toon', self._getRandomLine(dialogue[1])), Wait(waitDuration), Func(showBoss), bossSuit.hprInterval(1.0, bossSuit.getHpr() + Point3(180, 0, 0), blendType='easeInOut'), Func(self.displayLine, 'toon', self._getRandomLine(dialogue[2])), Wait(waitDuration - 1.0), Func(end)) self._startUpdateTask()
def showWaterCooler(): wc = self._maze.getWaterCoolers()[0] self._setCamTarget(wc, 25, angle=Point3(-30, 60, 0)) camera.wrtReparentTo(self._camHelperNode) self._state = 3
def showExit(): self._setCamTarget(self._exit, 10, offset=Point3(0, 0, 0), angle=Point3(0, 60, 0)) self._exit.close() self._state = 2
objectStruct = { 'Locator Links': [['1157574848.27sdnaik', '1157574884.56sdnaik', 'Bi-directional'], ['1157574928.53sdnaik', '1157574884.58sdnaik', 'Bi-directional'], ['1157574928.66sdnaik', '1157574992.98sdnaik', 'Bi-directional'], ['1157574992.97sdnaik', '1157574848.3sdnaik', 'Bi-directional']], 'Objects': { '1157574780.95sdnaik': { 'Type': 'Island', 'Name': 'JungleTestIslandC', 'File': '', 'Objects': { '1157485817.84sdnaik': { 'Type': 'Island Game Area', 'File': 'JungleAreaB', 'Hpr': Point3(0.0, 0.0, 0.0), 'Objects': { '1157574928.53sdnaik': { 'Type': 'Locator Node', 'Name': 'portal_interior_1', 'GridPos': Point3(-3.925, -10.962, 221.101), 'Hpr': VBase3(-90.0, 0.0, 0.0), 'Pos': Point3(498.114, 427.808, 45.336), 'Scale': VBase3(1.0, 1.0, 1.0) }, '1157574928.66sdnaik': { 'Type': 'Locator Node', 'Name': 'portal_interior_2', 'GridPos': Point3(-542.421, -643.139, 218.437), 'Hpr': VBase3(121.61, 0.0, 0.0), 'Pos': Point3(-318.959, -565.768, 0.675),
# Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: C:\Cygwin\home\piratepub\player_pirates_1_0_33QA\pirates\src\leveleditor\worldData\pirateerFortress.py from pandac.PandaModules import Point3, VBase3 objectStruct = { 'Objects': { '1151689257.39hreister': { 'Type': 'Island', 'Name': 'pirateerFortress', 'File': '', 'Objects': { '1151690118.21hreister': { 'Type': 'Event Sphere', 'Collide Type': 'Object', 'Event Type': 'Port', 'Extra Param': 'Team 3', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(0.0, 0.0, 0.0), 'Scale': VBase3(160, 160, 160) }, '1151690222.53hreister': { 'Type': 'Event Sphere', 'Collide Type': 'Object', 'Event Type': 'Port', 'Extra Param': 'Dock', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(378.013, -249.799, -7.845), 'Scale': VBase3(160, 160, 160) } }, 'Visual': { 'Model': 'models/islands/pvpFortress'
def __init__(self, manager, xml): self.surface = getWaterSurface(manager) self.surface.reparentTo(render) self.surface.hide( BitMask32.bit(1)) # Invisible to reflection camera (speedup) self.surface.hide(BitMask32.bit( 2)) # Invisible to volumetric lighting camera (speedup) self.surface.hide( BitMask32.bit(3)) # Invisible to shadow cameras (speedup) self.surface.setShader( loader.loadShader( manager.get('paths').getConfig().find('shaders').get('path') + '/water.cg')) self.surface.setShaderInput('time', 0.0, 0.0, 0.0, 0.0) ntex = loader.loadTexture( manager.get('paths').getConfig().find('textures').get('path') + '/water-normal.png') ntex.setMinfilter(Texture.FTLinearMipmapLinear) self.surface.setShaderInput('normal', ntex) self.surface.setShaderInput('camera', base.cam) self.surface.setTransparency(TransparencyAttrib.MDual, 10) self.surface.setTwoSided(True) self.surface.setShaderInput('waveInfo', Vec4(0.4, 0.4, 0.4, 0)) self.surface.setShaderInput('param2', Vec4(-0.015, 0.005, 0.05, 0.05)) self.surface.setShaderInput('param3', Vec4(0.7, 0.3, 0, 0)) self.surface.setShaderInput('param4', Vec4(2.0, 0.5, 0.5, 0.0)) #self.surface.setShaderInput('speed', Vec4(-.8, -.4, -.9, .3)) self.surface.setShaderInput('speed', Vec4(0.2, -1.2, -0.2, -0.7)) self.surface.setShaderInput('deepcolor', Vec4(0.0, 0.3, 0.5, 1.0)) self.surface.setShaderInput('shallowcolor', Vec4(0.0, 1.0, 1.0, 1.0)) self.surface.setShaderInput('reflectioncolor', Vec4(0.95, 1.0, 1.0, 1.0)) self.surface.hide() self.wbuffer = base.win.makeTextureBuffer('water', 512, 512) self.wbuffer.setClearColorActive(True) self.wbuffer.setClearColor(base.win.getClearColor()) self.wcamera = base.makeCamera(self.wbuffer) if manager.get('sky') != None and manager.get('sky').model != None: self.sky = manager.get('sky').model.copyTo(self.wcamera) self.sky.setTwoSided(True) self.sky.setSz(self.sky, -1) self.sky.setClipPlaneOff(1) self.sky.show() self.sky.hide(BitMask32.bit(0)) # Hide for normal camera self.sky.hide( BitMask32.bit(2)) # Hide for volumetric lighting camera self.sky.hide( BitMask32.bit(3)) # Hide for shadow camera(s), if any else: self.sky = None self.wcamera.reparentTo(render) self.wcamera.node().setLens(base.camLens) self.wcamera.node().setCameraMask(BitMask32.bit(1)) self.surface.hide(BitMask32.bit(1)) wtexture = self.wbuffer.getTexture() wtexture.setWrapU(Texture.WMClamp) wtexture.setWrapV(Texture.WMClamp) wtexture.setMinfilter(Texture.FTLinearMipmapLinear) self.surface.setShaderInput('reflection', wtexture) self.wplane = Plane(Vec3(0, 0, 1), Point3(0, 0, 0)) self.wplanenp = render.attachNewNode(PlaneNode('water', self.wplane)) tmpnp = NodePath('StateInitializer') tmpnp.setClipPlane(self.wplanenp) tmpnp.setAttrib(CullFaceAttrib.makeReverse()) self.wcamera.node().setInitialState(tmpnp.getState()) #self.fog = Fog('UnderwaterFog') #self.fog.setColor(0.0,0.3,0.5) self.fogEnabled = False
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.leveleditor.worldData.cuba_building_int_tailor from pandac.PandaModules import Point3, VBase3, Vec4 objectStruct = {'AmbientColors': {}, 'DirectionalColors': {}, 'FogColors': {}, 'FogRanges': {}, 'Objects': {'1171316864.0dxschafe0': {'Type': 'Building Interior', 'Name': '', 'AdditionalData': ['interior_shanty_store_tailor'], 'Instanced': True, 'Objects': {'1196898944.0dxschafe': {'Type': 'Townsperson', 'Category': 'Tailor', 'AnimSet': 'default', 'CustomModel': 'None', 'Hpr': VBase3(-122.551, 0.0, 0.0), 'Patrol Radius': '12.0000', 'Pos': Point3(23.213, 5.357, 0.0), 'PoseAnim': '', 'PoseFrame': '', 'Private Status': 'All', 'Respawns': True, 'Scale': VBase3(1.0, 1.0, 1.0), 'ShopID': 'CUBA_DEFAULTS', 'Start State': 'Idle', 'Team': 'Villager'}, '1201041698.69dxschafe': {'Type': 'Door Locator Node', 'Name': 'door_locator', 'Hpr': VBase3(-180.0, 0.0, 0.0), 'Pos': Point3(0.162, -4.354, 0.599), 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Visual': {'Model': 'models/buildings/interior_shanty_store'}}}, 'Node Links': [], 'Layers': {'Collisions': ['1184008208.59kmuller', '1184016064.62kmuller', '1184013852.84kmuller', '1185822696.06kmuller', '1184006140.32kmuller', '1184002350.98kmuller', '1184007573.29kmuller', '1184021176.59kmuller', '1184005963.59kmuller', '1188324241.31akelts', '1184006537.34kmuller', '1184006605.81kmuller', '1187139568.33kmuller', '1188324186.98akelts', '1184006730.66kmuller', '1184007538.51kmuller', '1184006188.41kmuller', '1184021084.27kmuller', '1185824396.94kmuller', '1185824250.16kmuller', '1185823630.52kmuller', '1185823760.23kmuller', '1185824497.83kmuller', '1185824751.45kmuller', '1187739103.34akelts', '1188323993.34akelts', '1184016538.29kmuller', '1185822200.97kmuller', '1184016225.99kmuller', '1195241421.34akelts', '1195242796.08akelts', '1184020642.13kmuller', '1195237994.63akelts', '1184020756.88kmuller', '1184020833.4kmuller', '1185820992.97kmuller', '1185821053.83kmuller', '1184015068.54kmuller', '1184014935.82kmuller', '1185821432.88kmuller', '1185821701.86kmuller', '1195240137.55akelts', '1195241539.38akelts', '1195238422.3akelts', '1195238473.22akelts', '1185821453.17kmuller', '1184021269.96kmuller', '1185821310.89kmuller', '1185821165.59kmuller', '1185821199.36kmuller', '1185822035.98kmuller', '1184015806.59kmuller', '1185822059.48kmuller', '1185920461.76kmuller', '1194984449.66akelts', '1185824206.22kmuller', '1184003446.23kmuller', '1184003254.85kmuller', '1184003218.74kmuller', '1184002700.44kmuller', '1186705073.11kmuller', '1187658531.86akelts', '1186705214.3kmuller', '1185824927.28kmuller', '1184014204.54kmuller', '1184014152.84kmuller']}, 'ObjectIds': {'1171316864.0dxschafe0': '["Objects"]["1171316864.0dxschafe0"]', '1196898944.0dxschafe': '["Objects"]["1171316864.0dxschafe0"]["Objects"]["1196898944.0dxschafe"]', '1201041698.69dxschafe': '["Objects"]["1171316864.0dxschafe0"]["Objects"]["1201041698.69dxschafe"]'}} extraInfo = {'camPos': Point3(-368.15, -624.517, 65.9077), 'camHpr': VBase3(176.228, -35.2787, 1.43803e-06), 'focalLength': 1.39999997616}
# File: p (Python 2.4) from pandac.PandaModules import Point3, VBase3 objectStruct = { 'Objects': { '1175562624.81zpavlov': { 'Type': 'Region', 'Name': 'default', 'Objects': { '1175562692.66zpavlov': { 'Type': 'Island', 'Name': 'pvp_mayhemIsland1', 'File': 'pvp_mayhemIsland1', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(0.0, 0.0, 0.0), 'Visual': { 'Model': 'models/islands/pir_m_are_isl_driftwood' } } }, 'Visual': {} } }, 'Layers': {}, 'ObjectIds': { '1175562624.81zpavlov': '["Objects"]["1175562624.81zpavlov"]', '1175562692.66zpavlov': '["Objects"]["1175562624.81zpavlov"]["Objects"]["1175562692.66zpavlov"]' }
'FogRanges': {}, 'Objects': { '1171316864.0dxschafe2': { 'Type': 'Building Interior', 'Name': '', 'AdditionalData': ['interior_shanty_store_tattoo'], 'Instanced': True, 'Objects': { '1196901888.0dxschafe': { 'Type': 'Townsperson', 'Category': 'Tattoo', 'AnimSet': 'default', 'CustomModel': 'None', 'Hpr': VBase3(-140.22900000000001, 0.0, 0.0), 'Patrol Radius': '12.0000', 'Pos': Point3(7.8010000000000002, -0.086999999999999994, 0.0), 'PoseAnim': '', 'PoseFrame': '', 'Private Status': 'All', 'Respawns': True, 'Scale': VBase3(1.0, 1.0, 1.0), 'ShopID': 'CUBA_DEFAULTS', 'Start State': 'Idle', 'Team': 'Villager' }, '1201041753.53dxschafe': { 'Type': 'Door Locator Node', 'Name': 'door_locator', 'Hpr': VBase3(90.0, 0.0, 0.0), 'Pos': Point3(41.985999999999997, -7.423, 0.079000000000000001),
from pandac.PandaModules import Point3, VBase3 objectStruct = {'Locator Links': [['1157574848.27sdnaik', '1157574884.56sdnaik', 'Bi-directional'], ['1157574928.53sdnaik', '1157574884.58sdnaik', 'Bi-directional'], ['1157574928.66sdnaik', '1157574992.98sdnaik', 'Bi-directional'], ['1157574992.97sdnaik', '1157574848.3sdnaik', 'Bi-directional']],'Objects': {'1157574780.95sdnaik': {'Type': 'Island','Name': 'JungleTestIsland','File': '','Objects': {'1157485817.84sdnaik': {'Type': 'Island Game Area','File': 'JungleAreaB','Hpr': Point3(0.0, 0.0, 0.0),'Objects': {'1157574928.53sdnaik': {'Type': 'Locator Node','Name': 'portal_interior_1','GridPos': Point3(-3.925, -10.962, 221.101),'Hpr': VBase3(-90.0, 0.0, 0.0),'Pos': Point3(498.114, 427.808, 45.336),'Scale': VBase3(1.0, 1.0, 1.0)},'1157574928.66sdnaik': {'Type': 'Locator Node','Name': 'portal_interior_2','GridPos': Point3(-542.421, -643.139, 218.437),'Hpr': VBase3(121.61, 0.0, 0.0),'Pos': Point3(-318.959, -565.768, 0.675),'Scale': VBase3(1.0, 1.0, 1.0)}},'Pos': Point3(-803.546, -97.061, 518.625),'Scale': VBase3(1.0, 1.0, 1.0),'Visual': {'Model': 'models/jungles/jungle_b_zero'}},'1157574848.27sdnaik': {'Type': 'Locator Node','Name': 'portal_exterior_1','Hpr': VBase3(-18.331, 0.0, 0.0),'Pos': Point3(-219.917, -319.235, 0.595),'Scale': VBase3(1.0, 1.0, 1.0)},'1157574848.3sdnaik': {'Type': 'Locator Node','Name': 'portal_exterior_2','Hpr': VBase3(68.97, 0.0, 0.0),'Pos': Point3(-285.103, -58.817, 44.049),'Scale': VBase3(1.0, 1.0, 1.0)},'1157574853.39sdnaik': {'Type': 'Locator Node','Name': 'portal_exterior_1','Hpr': VBase3(-18.331, 0.0, 0.0),'Pos': Point3(-219.917, -319.235, 0.595),'Scale': VBase3(1.0, 1.0, 1.0)},'1157574861.95sdnaik': {'Type': 'Locator Node','Name': 'portal_exterior_2','Hpr': VBase3(68.97, 0.0, 0.0),'Pos': Point3(-285.103, -58.817, 44.049),'Scale': VBase3(1.0, 1.0, 1.0)},'1157574884.55sdnaik': {'Type': 'Connector Tunnel','File': '','Hpr': Point3(0.0, 0.0, 0.0),'Objects': {'1157574884.56sdnaik': {'Type': 'Locator Node','Name': 'portal_connector_1','Hpr': VBase3(-90.0, 0.0, 0.0),'Pos': Point3(0.0, 0.0, 0.0),'Scale': VBase3(1.0, 1.0, 1.0)},'1157574884.58sdnaik': {'Type': 'Locator Node','Name': 'portal_connector_2','GridPos': Point3(-313.651, -175.767, 131.091),'Hpr': VBase3(90.0, 0.0, 0.0),'Pos': Point3(95.197, 150.0, 0.0),'Scale': VBase3(1.0, 1.0, 1.0)}},'Pos': Point3(-252.603, -296.91, 259.504),'Scale': VBase3(1.0, 1.0, 1.0),'Visual': {'Model': 'models/tunnels/tunnel_cave_left'}},'1157574992.92sdnaik': {'Type': 'Connector Tunnel','File': '','Hpr': Point3(0.0, 0.0, 0.0),'Objects': {'1157574992.97sdnaik': {'Type': 'Locator Node','Name': 'portal_connector_1','Hpr': VBase3(-90.0, 0.0, 0.0),'Pos': Point3(0.0, 0.0, 0.0),'Scale': VBase3(1.0, 1.0, 1.0)},'1157574992.98sdnaik': {'Type': 'Locator Node','Name': 'portal_connector_2','GridPos': Point3(-488.418, -323.438, 197.465),'Hpr': VBase3(90.0, 0.0, 0.0),'Pos': Point3(95.197, 150.0, 0.0),'Scale': VBase3(1.0, 1.0, 1.0)}},'Pos': Point3(-514.185, 421.494, 276.169),'Scale': VBase3(1.0, 1.0, 1.0),'Visual': {'Model': 'models/tunnels/tunnel_cave_left'}},'1161902850.89sdnaik': {'Type': 'Locator Node','Name': 'portal_exterior_1','Hpr': VBase3(-18.331, 0.0, 0.0),'Pos': Point3(-219.917, -319.235, 0.595),'Scale': VBase3(1.0, 1.0, 1.0)},'1161902852.94sdnaik': {'Type': 'Locator Node','Name': 'portal_exterior_2','Hpr': VBase3(68.97, 0.0, 0.0),'Pos': Point3(-285.103, -58.817, 44.049),'Scale': VBase3(1.0, 1.0, 1.0)},'1161986237.39sdnaik': {'Type': 'Player Spawn Node','Hpr': Point3(0.0, 0.0, 0.0),'Pos': Point3(-199.458, -320.558, 0.843),'Scale': VBase3(1.0, 1.0, 1.0),'Spawnables': 'All'}},'Visual': {'Model': 'models/islands/bilgewater_zero'}}},'Node Links': [],'Layers': {},'ObjectIds': {'1157485817.84sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157485817.84sdnaik"]','1157574780.95sdnaik': '["Objects"]["1157574780.95sdnaik"]','1157574848.27sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157574848.27sdnaik"]','1157574848.3sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157574848.3sdnaik"]','1157574853.39sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157574853.39sdnaik"]','1157574861.95sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157574861.95sdnaik"]','1157574884.55sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157574884.55sdnaik"]','1157574884.56sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157574884.55sdnaik"]["Objects"]["1157574884.56sdnaik"]','1157574884.58sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157574884.55sdnaik"]["Objects"]["1157574884.58sdnaik"]','1157574928.53sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157485817.84sdnaik"]["Objects"]["1157574928.53sdnaik"]','1157574928.66sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157485817.84sdnaik"]["Objects"]["1157574928.66sdnaik"]','1157574992.92sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157574992.92sdnaik"]','1157574992.97sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157574992.92sdnaik"]["Objects"]["1157574992.97sdnaik"]','1157574992.98sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1157574992.92sdnaik"]["Objects"]["1157574992.98sdnaik"]','1161902850.89sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1161902850.89sdnaik"]','1161902852.94sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1161902852.94sdnaik"]','1161986237.39sdnaik': '["Objects"]["1157574780.95sdnaik"]["Objects"]["1161986237.39sdnaik"]'}}
def _MazeSuit__getWorldPos(self, sTX, sTY): (wx, wy) = self.maze.tile2world(sTX, sTY) return Point3(wx, wy, self.SUIT_Z)
'1233104331.73akelts0': { 'Type': 'Building Interior', 'Name': '', 'AdditionalData': ['interior_spanish_blacksmith'], 'Instanced': True, 'Objects': { '1157098037.86jasyeung': { 'Type': 'Townsperson', 'Category': 'Blacksmith', 'AnimSet': 'smith', 'CustomModel': 'None', 'DNA': '1157098037.86jasyeung', 'HelpID': 'NONE', 'Hpr': VBase3(110.773, 0.0, 0.0), 'Patrol Radius': '12.0000', 'Pos': Point3(12.235, -8.479, 0.0), 'PoseAnim': '', 'PoseFrame': '', 'Private Status': 'All', 'Respawns': True, 'Scale': VBase3(1.0, 1.0, 1.0), 'ShopID': 'PORT_ROYAL_DEFAULTS', 'Start State': 'Idle', 'StartFrame': '0', 'Team': 'Villager', 'TrailFX': 'None' }, '1213290358.72aapatel': { 'Type': 'Door Locator Node', 'Name': 'door_locator', 'Hpr': VBase3(-1.084, 0.0, 0.0),
# uncompyle6 version 3.2.3 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.15 (v2.7.15:ca079a3ea3, Apr 30 2018, 16:30:26) [MSC v.1500 64 bit (AMD64)] # Embedded file name: C:\Cygwin\home\piratepub\player_pirates_1_0_33QA\pirates\src\leveleditor\worldData\MyPortRoyalWorld.py from pandac.PandaModules import Point3, VBase3 objectStruct = {'Objects': {'1153509705.11sdnaik': {'Type': 'Region', 'Name': 'default', 'Objects': {'1150922126.8dzlu': {'Type': 'Island', 'Name': 'Port Royal', 'File': 'MyPortRoyalIsland', 'Hpr': Point3(0.0, 0.0, 0.0), 'Objects': {'1157060429.94sdnaik': {'Type': 'LOD Sphere', 'Hpr': Point3(0.0, 0.0, 0.0), 'Pos': Point3(-0.0, -0.0, 580.947), 'Radi': [11520, 12520, 13520], 'Scale': VBase3(1.0, 1.0, 1.0)}}, 'Pos': Point3(-186.051, 1925.536, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/islands/pir_m_are_isl_portRoyal'}}}, 'Visual': {}}}, 'Layers': {}, 'ObjectIds': {'1150922126.8dzlu': '["Objects"]["1153509705.11sdnaik"]["Objects"]["1150922126.8dzlu"]', '1153509705.11sdnaik': '["Objects"]["1153509705.11sdnaik"]', '1157060429.94sdnaik': '["Objects"]["1153509705.11sdnaik"]["Objects"]["1150922126.8dzlu"]["Objects"]["1157060429.94sdnaik"]'}}
# File: p (Python 2.4) from pandac.PandaModules import Point3, VBase3, Vec4 objectStruct = { 'Objects': { '1156207578.91dzlu0': { 'Type': 'Building Interior', 'Name': '', 'AdditionalData': [ 'interior_spanish_npc'], 'Instanced': True, 'Objects': { '1173148032.0mike': { 'Type': 'Searchable Container', 'Hpr': VBase3(87.944000000000003, 0.0, 0.0), 'Pos': Point3(-18.172000000000001, -13.295, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': { 'Color': (0.70999999999999996, 0.65000000000000002, 0.5490196078431373, 1.0), 'Model': 'models/props/cabinet_fancy_low' }, 'searchTime': '6.0', 'type': 'Crate' } }, 'Visual': { 'Model': 'models/buildings/interior_spanish_npc' } } }, 'Node Links': [], 'Layers': { }, 'ObjectIds': { '1156207578.91dzlu0': '["Objects"]["1156207578.91dzlu0"]', '1173148032.0mike': '["Objects"]["1156207578.91dzlu0"]["Objects"]["1173148032.0mike"]' } }
import math from pandac.PandaModules import Point3 from src.toontown.toonbase import ToontownGlobals InputTimeout = 15 TireMovieTimeout = 120 MinWall = (-20.0, -15.0) MaxWall = (20.0, 15.0) TireRadius = 1.5 WallMargin = 1 + TireRadius StartingPositions = (Point3(MinWall[0] + WallMargin, MinWall[1] + WallMargin, TireRadius), Point3(MaxWall[0] - WallMargin, MaxWall[1] - WallMargin, TireRadius), Point3(MinWall[0] + WallMargin, MaxWall[1] - WallMargin, TireRadius), Point3(MaxWall[0] - WallMargin, MinWall[1] + WallMargin, TireRadius)) NumMatches = 3 NumRounds = 2 PointsDeadCenter = {0: 5, 1: 5, 2: 5, 3: 4, 4: 3} PointsInCorner = 1 FarthestLength = math.sqrt((MaxWall[0] - TireRadius) * (MaxWall[0] - TireRadius) + (MaxWall[1] - TireRadius) * (MaxWall[1] - TireRadius)) BonusPointsForPlace = (3, 2, 1, 0) ExpandFeetPerSec = 5 ScoreCountUpRate = 0.15 ShowScoresDuration = 4.0 NumTreasures = { ToontownGlobals.ToontownCentral: 2,
from pandac.PandaModules import Point3, VBase3, Vec4, Vec3 objectStruct = { 'Objects': { '1264619508.828659a2': { 'Type': 'Island', 'Name': 'default', 'Environment': 'OpenSky', 'Minimap': False, 'Objects': {}, 'Undockable': False, 'Visibility': 'Grid', 'Visual': { 'Model': 'models/islands/pir_m_are_isl_coldwater' } } }, 'Layers': {}, 'ObjectIds': { '1264619508.828659a2': '["Objects"]["1264619508.828659a2"]' } } extraInfo = { 'camPos': Point3(-1059.51, -121.796, 99609.5), 'camHpr': VBase3(0, -90, 0), 'focalLength': 1.39951908588, 'skyState': 2, 'fog': 0 }
# uncompyle6 version 3.2.0 # Python bytecode 2.4 (62061) # Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] # Embedded file name: pirates.leveleditor.worldData.DelFuegoWorld from pandac.PandaModules import Point3, VBase3, Vec4 objectStruct = {'AmbientColors': {}, 'DirectionalColors': {}, 'FogColors': {}, 'FogRanges': {}, 'Objects': {'1153509222.31sdnaik': {'Type': 'Region', 'Name': 'default', 'Objects': {'1142018473.22dxschafe': {'Type': 'Island', 'File': 'DelFuegoIsland', 'Hpr': Point3(0.0, 0.0, 0.0), 'Objects': {'1157060481.47sdnaik': {'Type': 'LOD Sphere', 'Hpr': VBase3(78.644, 0.0, 0.0), 'Pos': Point3(-675.065, -252.755, 473.02), 'Radi': [2000.0, 2400.0, 4000.0], 'Scale': VBase3(1.0, 1.0, 1.0), 'VisSize': ''}}, 'Pos': Point3(1205.375, -81.04, 0.0), 'Scale': VBase3(1.0, 1.0, 1.0), 'Visual': {'Model': 'models/islands/pir_m_are_isl_delFuego'}}}, 'Visual': {}}}, 'Layers': {}, 'ObjectIds': {'1142018473.22dxschafe': '["Objects"]["1153509222.31sdnaik"]["Objects"]["1142018473.22dxschafe"]', '1153509222.31sdnaik': '["Objects"]["1153509222.31sdnaik"]', '1157060481.47sdnaik': '["Objects"]["1153509222.31sdnaik"]["Objects"]["1142018473.22dxschafe"]["Objects"]["1157060481.47sdnaik"]'}} extraInfo = {'camPos': Point3(-12258.7, 1137.64, 4642.69), 'camHpr': VBase3(-92.8777, -19.331, 7.23827e-06), 'focalLength': 1.39999997616, 'skyState': -2, 'fog': 0}
# in seconds, how many seconds do we wait for them to decide InputTimeout = 15 # in secons, how many seconds do we wait for the tire movie to finish TireMovieTimeout = 120 MinWall = (-20.0, -15.0) # lower left corner of fence MaxWall = (20.0, 15.0) # upper right corner of fence TireRadius = 1.5 # in feet WallMargin = 1 + TireRadius StartingPositions = ( Point3( MinWall[0] + WallMargin, # bottomLeft MinWall[1] + WallMargin, TireRadius), Point3( MaxWall[0] - WallMargin, # topRight MaxWall[1] - WallMargin, TireRadius), Point3( MinWall[0] + WallMargin, # topLeft MaxWall[1] - WallMargin, TireRadius), Point3( MaxWall[0] - WallMargin, # bottomRight MinWall[1] + WallMargin, TireRadius), )
def getEndPos(toon=toon): return render.getRelativePoint(toon, Point3(0, Globals.ThrowDistance, 0))