mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
pillow gravity
This commit is contained in:
parent
fa284fe558
commit
9033861dfb
2 changed files with 22 additions and 1 deletions
|
@ -56,7 +56,8 @@ class DistributedPillow(DistributedObject):
|
||||||
polyNode.setFromCollideMask(OTPGlobals.FloorBitmask)
|
polyNode.setFromCollideMask(OTPGlobals.FloorBitmask)
|
||||||
polyNodePath = self.np.attachNewNode(polyNode)
|
polyNodePath = self.np.attachNewNode(polyNode)
|
||||||
self.npaths.append(polyNodePath)
|
self.npaths.append(polyNodePath)
|
||||||
self.accept("enterFloorPoly-%d" % n, self.gravityLow)
|
self.accept("enterFloorPoly-%d" % n, self.gravityHigh)
|
||||||
|
self.accept("enterdonalds_dreamland", self.gravityLow)
|
||||||
for wall in DistributedPillow.walls:
|
for wall in DistributedPillow.walls:
|
||||||
ab = DistributedPillow.points[wall[0]]
|
ab = DistributedPillow.points[wall[0]]
|
||||||
bb = DistributedPillow.points[wall[1]]
|
bb = DistributedPillow.points[wall[1]]
|
||||||
|
|
|
@ -4387,6 +4387,14 @@ def name(name=''):
|
||||||
else:
|
else:
|
||||||
return "%s's name is now empty!" % _name
|
return "%s's name is now empty!" % _name
|
||||||
|
|
||||||
|
@magicWord(category=CATEGORY_SYSTEM_ADMINISTRATOR, types=[int])
|
||||||
|
def squish(laff):
|
||||||
|
"""
|
||||||
|
Squish a toon.
|
||||||
|
"""
|
||||||
|
target = spellbook.getTarget()
|
||||||
|
target.squish(laff)
|
||||||
|
|
||||||
@magicWord(category=CATEGORY_CREATIVE, types=[int, int])
|
@magicWord(category=CATEGORY_CREATIVE, types=[int, int])
|
||||||
def hat(hatIndex, hatTex=0):
|
def hat(hatIndex, hatTex=0):
|
||||||
"""
|
"""
|
||||||
|
@ -4397,6 +4405,10 @@ def hat(hatIndex, hatTex=0):
|
||||||
if not 0 <= hatTex < len(ToonDNA.HatTextures):
|
if not 0 <= hatTex < len(ToonDNA.HatTextures):
|
||||||
return 'Invalid hat texture.'
|
return 'Invalid hat texture.'
|
||||||
invoker = spellbook.getInvoker()
|
invoker = spellbook.getInvoker()
|
||||||
|
target = spellbook.getTarget()
|
||||||
|
if target != invoker:
|
||||||
|
target.b_setHat(hatIndex, hatTex, 0)
|
||||||
|
return "Set %s's hat to %d, %d!" % (target.getName(), hatIndex, hatTex)
|
||||||
invoker.b_setHat(hatIndex, hatTex, 0)
|
invoker.b_setHat(hatIndex, hatTex, 0)
|
||||||
return "Set %s's hat to %d, %d!" % (invoker.getName(), hatIndex, hatTex)
|
return "Set %s's hat to %d, %d!" % (invoker.getName(), hatIndex, hatTex)
|
||||||
|
|
||||||
|
@ -4410,6 +4422,10 @@ def glasses(glassesIndex, glassesTex=0):
|
||||||
if not 0 <= glassesTex < len(ToonDNA.GlassesTextures):
|
if not 0 <= glassesTex < len(ToonDNA.GlassesTextures):
|
||||||
return 'Invalid glasses texture.'
|
return 'Invalid glasses texture.'
|
||||||
invoker = spellbook.getInvoker()
|
invoker = spellbook.getInvoker()
|
||||||
|
target = spellbook.getTarget()
|
||||||
|
if target != invoker:
|
||||||
|
target.b_setGlasses(glassesIndex, glassesTex, 0)
|
||||||
|
return "Set %s's glasses to %d, %d!" % (target.getName(), glassesIndex, glassesTex)
|
||||||
invoker.b_setGlasses(glassesIndex, glassesTex, 0)
|
invoker.b_setGlasses(glassesIndex, glassesTex, 0)
|
||||||
return "Set %s's glasses to %d, %d!" % (invoker.getName(), glassesIndex, glassesTex)
|
return "Set %s's glasses to %d, %d!" % (invoker.getName(), glassesIndex, glassesTex)
|
||||||
|
|
||||||
|
@ -4436,6 +4452,10 @@ def shoes(shoesIndex, shoesTex=0):
|
||||||
if not 0 <= shoesTex < len(ToonDNA.ShoesTextures):
|
if not 0 <= shoesTex < len(ToonDNA.ShoesTextures):
|
||||||
return 'Invalid shoes texture.'
|
return 'Invalid shoes texture.'
|
||||||
invoker = spellbook.getInvoker()
|
invoker = spellbook.getInvoker()
|
||||||
|
target = spellbook.getTarget()
|
||||||
|
if target != invoker:
|
||||||
|
target.b_setShoes(shoesIndex, shoesTex, 0)
|
||||||
|
return "Set %s's shoes to %d, %d!" % (target.getName(), shoesIndex, shoesTex)
|
||||||
invoker.b_setShoes(shoesIndex, shoesTex, 0)
|
invoker.b_setShoes(shoesIndex, shoesTex, 0)
|
||||||
return "Set %s's shoes to %d, %d!" % (invoker.getName(), shoesIndex, shoesTex)
|
return "Set %s's shoes to %d, %d!" % (invoker.getName(), shoesIndex, shoesTex)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue