474 lines
No EOL
14 KiB
Text
474 lines
No EOL
14 KiB
Text
from direct.actor.Actor import Actor
|
|
from pandac.PandaModules import *
|
|
from direct.task import Task
|
|
import math
|
|
from math import pi, sin, cos
|
|
from direct.showbase.ShowBase import ShowBase
|
|
from direct.task import Task
|
|
from direct.interval.IntervalGlobal import Sequence
|
|
from pandac.PandaModules import Point3
|
|
from pandac.PandaModules import *
|
|
|
|
environ = loader.loadModel("phase_4/models/minigames/tag_arena.bam")
|
|
environ.reparentTo(render)
|
|
environ.setPos(0,0,0)
|
|
environ.setHpr(0,0,0)
|
|
environ.setScale(2)
|
|
|
|
mail1 = Actor("phase_5/models/char/tt_r_ara_ttc_mailbox.bam",
|
|
|
|
{"cheer":"phase_5/models/char/tt_a_ara_ttc_mailbox_fightCheer.bam"})
|
|
mail1.reparentTo(render)
|
|
mail1.loop("cheer")
|
|
mail1.setPos(-127.813,67.728,0.025)
|
|
mail1.setHpr(100.490,0,0)
|
|
mail1.setScale(1)
|
|
|
|
mail2 = Actor("phase_5/models/char/tt_r_ara_ttc_mailbox.bam",
|
|
|
|
{"cheer":"phase_5/models/char/tt_a_ara_ttc_mailbox_fightCheer.bam"})
|
|
mail2.reparentTo(render)
|
|
mail2.loop("cheer")
|
|
mail2.setPos(-127.813,70.728,0.025)
|
|
mail2.setHpr(100.490,0,0)
|
|
mail2.setScale(1)
|
|
|
|
evsign = loader.loadModel("phase_4/models/minigames/toonblitz_game_arrow.bam")
|
|
evsign.reparentTo(render)
|
|
evsign.setPos(-114.259,36.803,0.025)
|
|
evsign.setHpr(540,0,0)
|
|
evsign.setScale(2)
|
|
|
|
evsignsecret = loader.loadModel("phase_4/models/minigames/toonblitz_game_arrow.bam")
|
|
evsignsecret.reparentTo(render)
|
|
evsignsecret.setPos(-114.259,36.803,0.025)
|
|
evsignsecret.setHpr(0,0,0)
|
|
evsignsecret.setScale(2)
|
|
|
|
hydrant1 = Actor("phase_5/models/char/tt_r_ara_ttc_hydrant.bam",
|
|
|
|
{"cheer":"phase_5/models/char/tt_a_ara_ttc_hydrant_fightCheer.bam"})
|
|
hydrant1.reparentTo(render)
|
|
hydrant1.loop("cheer")
|
|
hydrant1.setPos(-130.723,36.720,0.025)
|
|
hydrant1.setHpr(540,0,0)
|
|
hydrant1.setScale(1)
|
|
|
|
e = loader.loadModel("phase_9/models/cogHQ/Elevator.bam")
|
|
e.reparentTo(render)
|
|
e.setHpr(0,0,0)
|
|
e.setPos(-123.414,36.807,0.025)
|
|
|
|
pandaPosInterval22 = e.posInterval(13,Point3(-123.414,36.807,0.025),
|
|
startPos=Point3(0,114.03,127.50))
|
|
pandaPosInterval33 = e.posInterval(13,Point3(-123.414,36.807,110.50),
|
|
|
|
|
|
startPos=Point3(-123.414,36.807,0.025))
|
|
pandaHprInterval11 = e.hprInterval(3,Point3(0,0,0),
|
|
|
|
|
|
startHpr=Point3(0, 0, 0))
|
|
pandaHprInterval22 = e.hprInterval(3,Point3(0, 0, 0),
|
|
|
|
|
|
startHpr=Point3(0, 0, 0))
|
|
pandaPace = Sequence(pandaPosInterval22,
|
|
pandaHprInterval11,
|
|
pandaPosInterval33,
|
|
pandaHprInterval22,
|
|
name="pandaPace")
|
|
pandaPace.loop()
|
|
|
|
e.find('**/wall_back').removeNode()
|
|
e.find('**/wall_front').removeNode()
|
|
e.find('**/wall_left').removeNode()
|
|
e.find('**/wall_right').removeNode()
|
|
e.find('**/ceiling').removeNode()
|
|
|
|
c = loader.loadModel("phase_9/models/cogHQ/Elevator.bam")
|
|
c.setPos(-123.414,36.807,0.025)
|
|
c.setHpr(0,340.30,0)
|
|
c.hide()
|
|
c.reparentTo(render)
|
|
c.find('**/wall_back').removeNode()
|
|
c.find('**/wall_front').removeNode()
|
|
c.find('**/wall_left').removeNode()
|
|
c.find('**/wall_right').removeNode()
|
|
c.find('**/ceiling').removeNode()
|
|
|
|
cogstairs1 = loader.loadModel("phase_9/models/cogHQ/StairTen3060_15wide.bam")
|
|
cogstairs1.reparentTo(render)
|
|
cogstairs1.setPos(-122.194,29.331,110.525)
|
|
cogstairs1.setHpr(270,0,0)
|
|
cogstairs1.setScale(25)
|
|
|
|
cogplat1 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat1.reparentTo(render)
|
|
cogplat1.setPos(-129.260,9.008,119.208)
|
|
cogplat1.setHpr(0,0,0)
|
|
cogplat1.setScale(1)
|
|
|
|
cogplat2 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat2.reparentTo(render)
|
|
cogplat2.setPos(-129.709,4.571,119.664)
|
|
cogplat2.setHpr(0,0,0)
|
|
cogplat2.setScale(1)
|
|
|
|
cogplat3 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat3.reparentTo(render)
|
|
cogplat3.setPos(-129.992,0.160,120.120)
|
|
cogplat3.setHpr(0,0,0)
|
|
cogplat3.setScale(1)
|
|
|
|
cogplat4 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat4.reparentTo(render)
|
|
cogplat4.setPos(-76.400,79.479,0.025)
|
|
cogplat4.setHpr(0,0,0)
|
|
cogplat4.setScale(1)
|
|
|
|
cogplat5 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat5.reparentTo(render)
|
|
cogplat5.setPos(-81.400,79.80,0.025)
|
|
cogplat5.setHpr(0,0,0)
|
|
cogplat5.setScale(1)
|
|
|
|
cogplat6 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat6.reparentTo(render)
|
|
cogplat6.setPos(-86.400,79.80,0.025)
|
|
cogplat6.setHpr(0,0,0)
|
|
cogplat6.setScale(1)
|
|
|
|
cogplat7 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat7.reparentTo(render)
|
|
cogplat7.setPos(-91.400,79.80,0.025)
|
|
cogplat7.setHpr(0,0,0)
|
|
cogplat7.setScale(1)
|
|
|
|
cogplat8 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat8.reparentTo(render)
|
|
cogplat8.setPos(-96.400,79.80,0.025)
|
|
cogplat8.setHpr(0,0,0)
|
|
cogplat8.setScale(1)
|
|
|
|
cogplat9 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat9.reparentTo(render)
|
|
cogplat9.setPos(-99.437,74.769,0.025)
|
|
cogplat9.setHpr(0,0,0)
|
|
cogplat9.setScale(1)
|
|
|
|
cogplat10 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat10.reparentTo(render)
|
|
cogplat10.setPos(-99.636,69.523,0.025)
|
|
cogplat10.setHpr(0,0,0)
|
|
cogplat10.setScale(1)
|
|
|
|
cogplat11 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat11.reparentTo(render)
|
|
cogplat11.setPos(-99.487,64.523,0.025)
|
|
cogplat11.setHpr(0,0,0)
|
|
cogplat11.setScale(1)
|
|
|
|
cogplat12 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat12.reparentTo(render)
|
|
cogplat12.setPos(-99.487,58.523,0.025)
|
|
cogplat12.setHpr(0,0,0)
|
|
cogplat12.setScale(1)
|
|
|
|
cogplat13 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat13.reparentTo(render)
|
|
cogplat13.setPos(-99.487,53.523,0.025)
|
|
cogplat13.setHpr(0,0,0)
|
|
cogplat13.setScale(1)
|
|
|
|
cogplat14 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat14.reparentTo(render)
|
|
cogplat14.setPos(-99.487,48.523,0.025)
|
|
cogplat14.setHpr(0,0,0)
|
|
cogplat14.setScale(1)
|
|
|
|
cogplat15 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat15.reparentTo(render)
|
|
cogplat15.setPos(-99.487,43.523,0.025)
|
|
cogplat15.setHpr(0,0,0)
|
|
cogplat15.setScale(1)
|
|
|
|
cogplat16 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat16.reparentTo(render)
|
|
cogplat16.setPos(-99.487,39.523,0.025)
|
|
cogplat16.setHpr(0,0,0)
|
|
cogplat16.setScale(1)
|
|
|
|
cogplat17 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat17.reparentTo(render)
|
|
cogplat17.setPos(-99.487,34.523,0.025)
|
|
cogplat17.setHpr(0,0,0)
|
|
cogplat17.setScale(1)
|
|
|
|
cogplat18 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat18.reparentTo(render)
|
|
cogplat18.setPos(-99.487,29.523,0.025)
|
|
cogplat18.setHpr(0,0,0)
|
|
cogplat18.setScale(1)
|
|
|
|
cogplat19 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat19.reparentTo(render)
|
|
cogplat19.setPos(-92.408,43.600,0.025)
|
|
cogplat19.setHpr(0,0,0)
|
|
cogplat19.setScale(1)
|
|
|
|
cogplat20 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat20.reparentTo(render)
|
|
cogplat20.setPos(-92.408,38.600,0.025)
|
|
cogplat20.setHpr(0,0,0)
|
|
cogplat20.setScale(1)
|
|
|
|
cogplat21 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat21.reparentTo(render)
|
|
cogplat21.setPos(-92.408,33.600,0.025)
|
|
cogplat21.setHpr(0,0,0)
|
|
cogplat21.setScale(1)
|
|
|
|
cogplat22 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat22.reparentTo(render)
|
|
cogplat22.setPos(-92.408,28.600,0.025)
|
|
cogplat22.setHpr(0,0,0)
|
|
cogplat22.setScale(1)
|
|
|
|
cogplat23 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat23.reparentTo(render)
|
|
cogplat23.setPos(-87.213,113.428,0.025)
|
|
cogplat23.setHpr(0,0,0)
|
|
cogplat23.setScale(1)
|
|
|
|
cogplat24 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat24.reparentTo(render)
|
|
cogplat24.setPos(-91.213,113.428,0.025)
|
|
cogplat24.setHpr(0,0,0)
|
|
cogplat24.setScale(1)
|
|
|
|
cogplat25 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat25.reparentTo(render)
|
|
cogplat25.setPos(-91.213,109.428,0.025)
|
|
cogplat25.setHpr(0,0,0)
|
|
cogplat25.setScale(1)
|
|
|
|
cogplat26 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat26.reparentTo(render)
|
|
cogplat26.setPos(-93.213,109.428,0.025)
|
|
cogplat26.setHpr(0,0,0)
|
|
cogplat26.setScale(1)
|
|
|
|
|
|
cogplat27 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat27.reparentTo(render)
|
|
cogplat27.setPos(-81.2940,113.600,0.025)
|
|
cogplat27.setHpr(0,0,0)
|
|
cogplat27.setScale(1)
|
|
|
|
cogplat28 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat28.reparentTo(render)
|
|
cogplat28.setPos(-76.2940,113.600,0.025)
|
|
cogplat28.setHpr(0,0,0)
|
|
cogplat28.setScale(1)
|
|
|
|
cogplat29 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat29.reparentTo(render)
|
|
cogplat29.setPos(-81.2940,109.600,0.025)
|
|
cogplat29.setHpr(0,0,0)
|
|
cogplat29.setScale(1)
|
|
|
|
cogplat30 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat30.reparentTo(render)
|
|
cogplat30.setPos(-76.2940,109.600,0.025)
|
|
cogplat30.setHpr(0,0,0)
|
|
cogplat30.setScale(1)
|
|
|
|
cogplat31 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat31.reparentTo(render)
|
|
cogplat31.setPos(-104.880,26.400,0.025)
|
|
cogplat31.setHpr(0,0,0)
|
|
cogplat31.setScale(1)
|
|
|
|
cogplat32 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat32.reparentTo(render)
|
|
cogplat32.setPos(-107.880,26.400,0.025)
|
|
cogplat32.setHpr(0,0,0)
|
|
cogplat32.setScale(1)
|
|
|
|
cogplat33 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat33.reparentTo(render)
|
|
cogplat33.setPos(-112.880,26.400,0.025)
|
|
cogplat33.setHpr(0,0,0)
|
|
cogplat33.setScale(1)
|
|
|
|
cogplat34 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat34.reparentTo(render)
|
|
cogplat34.setPos(-117.880,26.400,0.025)
|
|
cogplat34.setHpr(0,0,0)
|
|
cogplat34.setScale(1)
|
|
|
|
cogplat35 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat35.reparentTo(render)
|
|
cogplat35.setPos(-122.880,26.400,0.025)
|
|
cogplat35.setHpr(0,0,0)
|
|
cogplat35.setScale(1)
|
|
|
|
cogplat36 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat36.reparentTo(render)
|
|
cogplat36.setPos(-127.880,26.400,0.025)
|
|
cogplat36.setHpr(0,0,0)
|
|
cogplat36.setScale(1)
|
|
|
|
cogplat37 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat37.reparentTo(render)
|
|
cogplat37.setPos(-127.880,26.400,0.025)
|
|
cogplat37.setHpr(0,0,0)
|
|
cogplat37.setScale(1)
|
|
|
|
cogplat38 = loader.loadModel("phase_9/models/cogHQ/platform1.bam")
|
|
cogplat38.reparentTo(render)
|
|
cogplat38.setPos(-99.880,79.400,0.025)
|
|
cogplat38.setHpr(0,0,0)
|
|
cogplat38.setScale(1)
|
|
|
|
mc = loader.loadModel("phase_12/models/bossbotHQ/BanquetInterior_1.bam")
|
|
mc.reparentTo(render)
|
|
mc.setPos(-130.000,-80.125,120.576)
|
|
mc.setHpr(180,0,0)
|
|
mc.setScale(1)
|
|
|
|
trash = Actor("phase_5/models/char/tt_r_ara_ttc_trashcan.bam",
|
|
|
|
{"cheer":"phase_5/models/char/tt_a_ara_ttc_trashcan_fightCheer.bam"})
|
|
trash.reparentTo(render)
|
|
trash.loop("cheer")
|
|
trash.setPos(-92.789,28.496,0.481)
|
|
trash.setHpr(245,0,0)
|
|
trash.setScale(1)
|
|
|
|
ce = loader.loadModel("phase_4/models/modules/elevator.bam")
|
|
ce.reparentTo(render)
|
|
ce.setPos(-123.513,36.076,0.025)
|
|
ce.setHpr(180,0,0)
|
|
ce.setScale(1)
|
|
|
|
castle = loader.loadModel("phase_5.5/models/estate/tt_m_ara_est_house_castle.bam")
|
|
castle.reparentTo(render)
|
|
castle.setPos(-175.602,-12.228,120.601)
|
|
castle.setHpr(0,0,0)
|
|
castle.setScale(1)
|
|
|
|
tiki = loader.loadModel("phase_5.5/models/estate/tt_m_ara_est_house_tiki.bam")
|
|
tiki.reparentTo(render)
|
|
tiki.setPos(-175.113,-31.989,120.601)
|
|
tiki.setHpr(0,0,0)
|
|
tiki.setScale(1)
|
|
|
|
cupcake = loader.loadModel("phase_5.5/models/estate/tt_m_ara_est_house_cupcake.bam")
|
|
cupcake.reparentTo(render)
|
|
cupcake.setPos(-175.695,-55.210,120.601)
|
|
cupcake.setHpr(0,0,0)
|
|
cupcake.setScale(1)
|
|
|
|
mgr = loader.loadModel("phase_13/models/parties/partyMerryGoRound.bam")
|
|
mgr.reparentTo(render)
|
|
mgr.setPos(-129.154,-38.785,120.601)
|
|
mgr.setHpr(0,0,0)
|
|
mgr.setScale(3)
|
|
pandaHprInterval1 = mgr.hprInterval(3,Point3(0,0,0),
|
|
|
|
|
|
startHpr=Point3(270, 0, 0))
|
|
pandaHprInterval2 = mgr.hprInterval(3,Point3(270, 0, 0),
|
|
|
|
|
|
startHpr=Point3(0, 0, 0))
|
|
# Create and play the sequence that coordinates the intervals.
|
|
maryspin = Sequence(pandaHprInterval1,
|
|
name="maryspin")
|
|
maryspin.loop()
|
|
|
|
dsign = loader.loadModel("phase_4/models/minigames/toonblitz_game_arrow.bam")
|
|
dsign.reparentTo(render)
|
|
dsign.setPos(-82.433,-15.141,120.601)
|
|
dsign.setHpr(270,0,0)
|
|
dsign.setScale(2)
|
|
|
|
hydrant2 = Actor("phase_5/models/char/tt_r_ara_ttc_hydrant.bam",
|
|
|
|
{"cheer":"phase_5/models/char/tt_a_ara_ttc_hydrant_fightCheer.bam"})
|
|
hydrant2.reparentTo(render)
|
|
hydrant2.loop("cheer")
|
|
hydrant2.setPos(-83.066,-23.255,120.601)
|
|
hydrant2.setHpr(270,0,0)
|
|
hydrant2.setScale(2)
|
|
|
|
hydrant3 = Actor("phase_5/models/char/tt_r_ara_ttc_hydrant.bam",
|
|
|
|
{"cheer":"phase_5/models/char/tt_a_ara_ttc_hydrant_fightCheer.bam"})
|
|
hydrant3.reparentTo(render)
|
|
hydrant3.loop("cheer")
|
|
hydrant3.setPos(-83.438,-30.792,120.601)
|
|
hydrant3.setHpr(270,0,0)
|
|
hydrant3.setScale(2)
|
|
|
|
hydrant4 = Actor("phase_5/models/char/tt_r_ara_ttc_hydrant.bam",
|
|
|
|
{"cheer":"phase_5/models/char/tt_a_ara_ttc_hydrant_fightCheer.bam"})
|
|
hydrant4.reparentTo(render)
|
|
hydrant4.loop("cheer")
|
|
hydrant4.setPos(-83.610,-37.638,120.601)
|
|
hydrant4.setHpr(270,0,0)
|
|
hydrant4.setScale(2)
|
|
|
|
hydrant5 = Actor("phase_5/models/char/tt_r_ara_ttc_hydrant.bam",
|
|
|
|
{"cheer":"phase_5/models/char/tt_a_ara_ttc_hydrant_fightCheer.bam"})
|
|
hydrant5.reparentTo(render)
|
|
hydrant5.loop("cheer")
|
|
hydrant5.setPos(-83.542,-44.114,120.601)
|
|
hydrant5.setHpr(270,0,0)
|
|
hydrant5.setScale(2)
|
|
|
|
hydrant6 = Actor("phase_5/models/char/tt_r_ara_ttc_hydrant.bam",
|
|
|
|
{"cheer":"phase_5/models/char/tt_a_ara_ttc_hydrant_fightCheer.bam"})
|
|
hydrant6.reparentTo(render)
|
|
hydrant6.loop("cheer")
|
|
hydrant6.setPos(-83.990,-51.594,120.601)
|
|
hydrant6.setHpr(270,0,0)
|
|
hydrant6.setScale(2)
|
|
|
|
hydrant7 = Actor("phase_5/models/char/tt_r_ara_ttc_hydrant.bam",
|
|
|
|
{"cheer":"phase_5/models/char/tt_a_ara_ttc_hydrant_fightCheer.bam"})
|
|
hydrant7.reparentTo(render)
|
|
hydrant7.loop("cheer")
|
|
hydrant7.setPos(-83.287,-58.708,120.601)
|
|
hydrant7.setHpr(270,0,0)
|
|
hydrant7.setScale(2)
|
|
|
|
hydrant8 = Actor("phase_5/models/char/tt_r_ara_ttc_hydrant.bam",
|
|
|
|
{"cheer":"phase_5/models/char/tt_a_ara_ttc_hydrant_fightCheer.bam"})
|
|
hydrant8.reparentTo(render)
|
|
hydrant8.loop("cheer")
|
|
hydrant8.setPos(-83.761,-65.645,120.601)
|
|
hydrant8.setHpr(270,0,0)
|
|
hydrant8.setScale(2)
|
|
|
|
hydrant9 = Actor("phase_5/models/char/tt_r_ara_ttc_hydrant.bam",
|
|
|
|
{"cheer":"phase_5/models/char/tt_a_ara_ttc_hydrant_fightCheer.bam"})
|
|
hydrant9.reparentTo(render)
|
|
hydrant9.loop("cheer")
|
|
hydrant9.setPos(-83.916,-70.939,120.601)
|
|
hydrant9.setHpr(270,0,0)
|
|
hydrant9.setScale(2)
|
|
|
|
hall = loader.loadModel("phase_4/models/modules/toonhall.bam")
|
|
hall.reparentTo(render)
|
|
hall.setPos(-68.369,-16.720,120.601)
|
|
hall.setHpr(270,0,0)
|
|
hall.setScale(1) |