Fun Codes

View previous topic View next topic Go down

Fun Codes

Post by BluuBlood on Sat Jan 21, 2012 8:21 pm

What are some fun codes? I only have one animation code, and it's swim. What are some other animations?

Also, is it possible to make a black toon on any day? I have a code for it, but I disconnect after I create the toon.

BluuBlood
Level 3

Posts : 5
Join date : 2012-01-19

View user profile

Back to top Go down

Re: Fun Codes

Post by gollyhawhaw on Sun Jan 22, 2012 9:45 am

BluuBlood wrote:What are some fun codes? I only have one animation code, and it's swim. What are some other animations?

Also, is it possible to make a black toon on any day? I have a code for it, but I disconnect after I create the toon.

Making a black toon makes your game crash. You have to choose either grey or white. I'll give you some fun codes to play with.

This is the harmless clone code. I don't think other people will see them though. I've not tried it yet

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

base.localAvatar.setName(('Hi'))

from direct.gui.OnscreenText import OnscreenText
from direct.gui.DirectGui import *
from pandac.PandaModules import TextNode

bk_text = ""
textObject = OnscreenText(text = bk_text, pos = (0.95,-0.95),
scale = 0.07,fg=(1,0.5,0.5,1),align=TextNode.ACenter,mayChange=1)

def setText():
bk_text = ""
textObject.setText(bk_text)
cc = base.cr.doFindAll("Hi")
for cc in base.cr.doFindAll("Hi"):
cc.copyTo(render)
b = DirectButton(text = ("Copy Toon", "Activate", "Activate", "Copy Toon"), scale=.06, pos = (0,-.95,-.95), command=setText)


These are loop animations

base.localAvatar.loop('neutral')

base.localAvatar.loop('run')

base.localAvatar.loop('angry')

base.localAvatar.loop('book')

base.localAvatar.loop('conked')

base.localAvatar.loop('cringe')

base.localAvatar.loop('duck')

base.localAvatar.loop('jump')

base.localAvatar.loop('jump-back-right')

base.localAvatar.loop('jump-z')

base.localAvatar.loop('jump-zend')

base.localAvatar.loop('jump-zhang')

base.localAvatar.loop('jump-zstart')

base.localAvatar.loop('leap-Z')

base.localAvatar.loop('leap-zend')

base.localAvatar.loop('leap-zhang')

base.localAvatar.loop('leap-zhanglong')

base.localAvatar.loop('leap-zstart')

base.localAvatar.loop('throw')

base.localAvatar.loop('press-button')

base.localAvatar.loop('running-jump')

base.localAvatar.loop('shrug')

base.localAvatar.loop('sidestep-left')

base.localAvatar.loop('teleport')

base.localAvatar.loop('victory-dance')

base.localAvatar.loop('walk')

base.localAvatar.loop('applause')

base.localAvatar.loop('begCycle')

base.localAvatar.loop('begOut')

base.localAvatar.loop('bored')

base.localAvatar.loop('bow')

base.localAvatar.loop('cast')

base.localAvatar.loop('castlong')

base.localAvatar.loop('confused')

base.localAvatar.loop('down')

base.localAvatar.loop('eat-neutral')

base.localAvatar.loop('eat-n-run')

base.localAvatar.loop('fish')

base.localAvatar.loop('fishAGAIN')

base.localAvatar.loop('fishEND')

base.localAvatar.loop('fish-neutral')

base.localAvatar.loop('game-neutral')

base.localAvatar.loop('game-run')

base.localAvatar.loop('gameThrow')

base.localAvatar.loop('give')

base.localAvatar.loop('intoBeg')

base.localAvatar.loop('intoSit')

base.localAvatar.loop('left')

base.localAvatar.loop('lose-walk')

base.localAvatar.loop('pet-end')

base.localAvatar.loop('pet-in')

base.localAvatar.loop('pet-loop')

base.localAvatar.loop('pole')

base.localAvatar.loop('pole-neutral')

base.localAvatar.loop('reel')

base.localAvatar.loop('reel-H')

base.localAvatar.loop('reel-neutral')

base.localAvatar.loop('right')

base.localAvatar.loop('sad-neutral')

base.localAvatar.loop('sit')

base.localAvatar.loop('slip-backward')

base.localAvatar.loop('slip-forward')

base.localAvatar.loop('swim')

base.localAvatar.loop('swing')

base.localAvatar.loop('taunt')

base.localAvatar.loop('think')

base.localAvatar.loop('curtsy')

base.localAvatar.loop('tug-o-war')
base.localAvatar.loop('up')

base.localAvatar.loop('climb')

base.localAvatar.loop('fire-hose')

base.localAvatar.loop('happy-dance')

base.localAvatar.loop('hold-bottle')

base.localAvatar.loop('hold-magnet')

base.localAvatar.loop('hypnotize')

base.localAvatar.loop('juggle')

base.localAvatar.loop('lose')

base.localAvatar.loop('melt')

base.localAvatar.loop('shout')

base.localAvatar.loop('smooch')

base.localAvatar.loop('spit')

base.localAvatar.loop('sprinkle-dust')

base.localAvatar.loop('struggle')

base.localAvatar.loop('tickle')

base.localAvatar.loop('toss')

base.localAvatar.loop('water-gun')

base.localAvatar.loop('sound')

base.localAvatar.loop('callPet')

base.localAvatar.loop('feedPet')

base.localAvatar.loop('into-dig')

base.localAvatar.loop('jellybeanJar')

base.localAvatar.loop('loop-dig')

base.localAvatar.loop('phoneBack')

base.localAvatar.loop('takePhone')

base.localAvatar.loop('water')

base.localAvatar.loop('callPet')

base.localAvatar.loop('feedPet')

base.localAvatar.loop('into-dig')

base.localAvatar.loop('phoneNeutral')

base.localAvatar.loop('badloop-putt')

base.localAvatar.loop('bad-putt')

base.localAvatar.loop('good-putt')

base.localAvatar.loop('headdown-putt')

base.localAvatar.loop('into-putt')

base.localAvatar.loop('lookloop-putt')

base.localAvatar.loop('look-putt')

base.localAvatar.loop('loop-putt')

base.localAvatar.loop('rotateL-putt')

base.localAvatar.loop('rotateR-putt')

base.localAvatar.loop('swing-putt')

base.localAvatar.loop('block')

base.localAvatar.loop('push')

base.localAvatar.loop('leverNeutral')

base.localAvatar.loop('leverPull')

base.localAvatar.loop('leverReach')

base.localAvatar.loop('scientistGame')

base.localAvatar.loop('scientistWork')

base.localAvatar.loop('scientistWorkLess')

base.localAvatar.loop('scientistEmcee')
pick ONE line only

This next code is for TRON land.

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

base.localAvatar.setPos(0,0,290)
base.localAvatar.setSystemMessage(0,'Welcome To Tron Land!')
base.localAvatar.setName(('Tron Tester'))


bgMusic1 = base.loader.loadSfx("phase_12/audio/bgm/Bossbot_Factory_v3.mid")
bgMusic1.setLoop(True)
bgMusic1.play()


floor = loader.loadModel('phase_9/models/cogHQ/PaintMixer.bam')
floor.reparentTo(render)
floor.setPos(0,0,290)
floor.setHpr(74,0,0)
floor.setScale(15)

from direct.interval.IntervalGlobal import *
def red():
base.localAvatar.findAllMatches('**/Sky').setColor(255,0,0)
base.localAvatar.findAllMatches('**/sleeves').setColor(255,0,0)
base.localAvatar.findAllMatches('**/sleeves').setColorScale(25)
gloves = loader.loadTexture("phase_4/maps/it.jpg")
base.localAvatar.findAllMatches('**/sleeves').setTexture(gloves, 1)
base.localAvatar.findAllMatches('**/torso-top').setColor(255,0,0)
base.localAvatar.findAllMatches('**/torso-top').setColorScale(25)
base.localAvatar.findAllMatches('**/torso-bot').setColor(255,0,0)
base.localAvatar.findAllMatches('**/torso-bot').setColorScale(25)
base.localAvatar.findAllMatches('**/hands').setColor(255,0,0)
base.localAvatar.findAllMatches('**/hands').setColorScale(25)
shirt = base.localAvatar.findAllMatches('**/hands')
shirttex = loader.loadTexture("phase_4/maps/tt_t_chr_avt_shirt_cogbuster.jpg")
shirt.setTexture(shirttex, 1)
short = base.localAvatar.findAllMatches('**/torso-bot')
shorttex = loader.loadTexture("phase_4/maps/tt_t_chr_avt_shorts_saveBuilding1.jpg")
short.setTexture(shorttex, 1)
short = base.localAvatar.findAllMatches('**/torso-top')
shorttex = loader.loadTexture("phase_4/maps/tt_t_chr_avt_shorts_saveBuilding1.jpg")
short.setTexture(shorttex, 1)
def blue():
base.localAvatar.findAllMatches('**/hands').setColor(0,0,1)
base.localAvatar.findAllMatches('**/torso-bot').setColor(0,0,1)
base.localAvatar.findAllMatches('**/torso-top').setColor(0,0,1)
base.localAvatar.findAllMatches('**/sleeves').setColor(0,0,1)
base.localAvatar.findAllMatches('**/Sky').setColor(0,0,1)
def rainglov():
rain = Sequence()
rain.append(Func(red))
rain.append(Wait(0.2))
rain.append(Func(blue))
rain.append(Wait(0.2))
rain.append(Func(rainglov))
rain.start()
rainglov()

from direct.showbase import DirectObject
class Control(DirectObject.DirectObject):
def __init__(self):
self.accept('f1',self.Control)
def Control(self):
base.localAvatar.physControls.avatarControlForwardSpeed=100
base.localAvatar.physControls.avatarControlJumpForce=100
base.localAvatar.setCheesyEffect(5, 0, 0)
base.localAvatar.showCS()
base.localAvatar.setSystemMessage(0, 'POWERS ACTIVATED!')
c = Control()

from direct.showbase import DirectObject
class Control(DirectObject.DirectObject):
def __init__(self):
self.accept('f2',self.Control)
def Control(self):
base.localAvatar.physControls.avatarControlForwardSpeed=15
base.localAvatar.physControls.avatarControlJumpForce=24
base.localAvatar.hideCS()
base.localAvatar.setCheesyEffect(0, 0, 0)
base.localAvatar.setSystemMessage(0, 'POWERS DE-ACTIVATED!')
c = Control()


from direct.showbase import DirectObject
class Control(DirectObject.DirectObject):
def __init__(self):
self.accept('f3',self.Control)
def Control(self):
base.localAvatar.loop('hypnotize')
base.localAvatar.setSystemMessage(0, 'ATTACK POWER')
c = Control()

from direct.showbase import DirectObject
class Control(DirectObject.DirectObject):
def __init__(self):
self.accept('f4',self.Control)
def Control(self):
floor.setColor(255,0,0)
base.localAvatar.setSystemMessage(0, 'Floor Red')
c = Control()


from direct.showbase import DirectObject
class Control(DirectObject.DirectObject):
def __init__(self):
self.accept('f5',self.Control)
def Control(self):
floor.setColor(0,0,1)
base.localAvatar.setSystemMessage(0, 'Floor Blue')
c = Control()

from direct.interval.IntervalGlobal import *
def wakeUp():
base.localAvatar.wakeUp()
def onTime():
seq = Sequence()
seq.append(Func(wakeUp))
seq.append(Wait(.1))
seq.append(Func(onTime))
seq.start()
onTime()

base.localAvatar.setSystemMessage(0,'Toon Awake Forever Active, Press Buttons F1-F7 For Tron Uses.')

from direct.showbase import DirectObject
class Control(DirectObject.DirectObject):
def __init__(self):
self.accept('f6',self.Control)
def Control(self):
base.localAvatar.collisionsOff()
base.localAvatar.setSystemMessage(0, 'Collisions Activated!')
c = Control()

from direct.showbase import DirectObject
class Control(DirectObject.DirectObject):
def __init__(self):
self.accept('f7',self.Control)
def Control(self):
base.localAvatar.collisionsOn()
base.localAvatar.setSystemMessage(0, 'Collisions De-Activated!')
c = Control()

from direct.gui.OnscreenText import OnscreenText
from direct.gui.DirectGui import *
from pandac.PandaModules import TextNode

bk_text = ""
textObject = OnscreenText(text = bk_text, pos = (0.95,-0.95),
scale = 0.07,fg=(1,0.5,0.5,1),align=TextNode.ACenter,mayChange=1)

def setText():
bk_text = ""
textObject.setText(bk_text)
cc = base.cr.doFindAll("Tron Tester")
for cc in base.cr.doFindAll("Tron Tester"):
cc.copyTo(render)
b = DirectButton(text = ("Copy Toon", "Activate", "Activate", "Copy Toon"), scale=.06, pos = (0,-.95,-.95), command=setText)


This is FD land

environ = loader.loadModel('phase_4/models/minigames/maze_2player.bam')
environ.reparentTo(render)
environ.setPos(207.432,64.809,133.154)
environ.setHpr(50,0,0)
environ.setScale(5)

base.cr.sendSetZoneMsg(161111)

broken = loader.loadModel('phase_5/models/props/geyser.bam')
broken.reparentTo(render)
broken.setPos(133.726,127.121,133.179)
broken.setHpr(0,0,0)
broken.setScale(2)

broken = loader.loadModel('phase_5/models/props/geyser.bam')
broken.reparentTo(render)
broken.setPos(150.138,112.956,133.179)
broken.setHpr(0,0,0)
broken.setScale(3)

broken = loader.loadModel('phase_5/models/props/geyser.bam')
broken.reparentTo(render)
broken.setPos(176.469,91.271,133.179)
broken.setHpr(0,0,0)
broken.setScale(5)

broken = loader.loadModel('phase_5/models/props/geyser.bam')
broken.reparentTo(render)
broken.setPos(237.248,39.407,133.179)
broken.setHpr(0,0,0)
broken.setScale(5)

broken = loader.loadModel('phase_5/models/props/geyser.bam')
broken.reparentTo(render)
broken.setPos(209.436,62.422,133.179)
broken.setHpr(0,0,0)
broken.setScale(6)

broken = loader.loadModel('phase_5/models/props/geyser.bam')
broken.reparentTo(render)
broken.setPos(257.354,23.445,133.179)
broken.setHpr(0,0,0)
broken.setScale(4)

broken = loader.loadModel('phase_5/models/props/geyser.bam')
broken.reparentTo(render)
broken.setPos(274.436,9.550,133.179)
broken.setHpr(0,0,0)
broken.setScale(3)

mrt = loader.loadModel('phase_12/models/bossbotHQ/BanquetTableChairs.bam')
mrt.reparentTo(render)
mrt.setPos(307.077,21.488,133.179)
mrt.setHpr(0,0,0)
mrt.setScale(.Cool

mrt = loader.loadModel('phase_12/models/bossbotHQ/BanquetTableChairs.bam')
mrt.reparentTo(render)
mrt.setPos(281.628,42.406,133.179)
mrt.setHpr(0,0,0)
mrt.setScale(.Cool

mrt = loader.loadModel('phase_12/models/bossbotHQ/BanquetTableChairs.bam')
mrt.reparentTo(render)
mrt.setPos(254.735,64.250,133.179)
mrt.setHpr(0,0,0)
mrt.setScale(.Cool

mrt = loader.loadModel('phase_12/models/bossbotHQ/BanquetTableChairs.bam')
mrt.reparentTo(render)
mrt.setPos(231.895,83.014,133.179)
mrt.setHpr(0,0,0)
mrt.setScale(.Cool

tiki = loader.loadModel("phase_5.5/models/estate/tt_m_ara_est_house_tiki.bam")
tiki.reparentTo(render)
tiki.setPos(38.980,143.540,133.179)
tiki.setHpr(0,0,0)
tiki.setScale(.3)

tiki = loader.loadModel("phase_5.5/models/estate/tt_m_ara_est_house_tiki.bam")
tiki.reparentTo(render)
tiki.setPos(97.573,218.041,133.179)
tiki.setHpr(0,0,0)
tiki.setScale(.3)

game4 = loader.loadModel("phase_13/models/parties/danceFloor.bam")
game4.reparentTo(render)
game4.setPos(101.773,153.323,133.179)
game4.setHpr(0,0,0)
game4.setScale(.7)

ropesf = loader.loadModel("phase_4/models/modules/tt_m_ara_int_ropes.bam")
ropesf.reparentTo(render)
ropesf.setPos(163.580,22.064,133.179)
ropesf.setHpr(0,0,0)
ropesf.setScale(.6)

s1 = loader.loadModel("phase_3.5/models/modules/tt_m_ara_int_sillyMeterFlat.bam")
s1.reparentTo(render)
s1.setPos(163.580,22.064,133.179)
s1.setHpr(0,0,0)
s1.setScale(1)


rocket1 = loader.loadModel('phase_13/models/parties/rocket_model.bam')
rocket1.reparentTo(render)
rocket1.setPos(160.209,-14.948,133.179)
rocket1.setHpr(0,0,0)
rocket1.setScale(1)

cogplat1 = loader.loadModel('phase_9/models/cogHQ/platform1.bam')
cogplat1.reparentTo(render)
cogplat1.setPos(312.768,-21.047,133.179)
cogplat1.setHpr(0,0,0)
cogplat1.setScale(2)

environ = loader.loadModel('phase_5/models/char/cogA_robot-lose-mod.bam')
environ.reparentTo(render)
environ.setPos(256.933,123.751,133.179)
environ.setHpr(-210,0,0)
environ.setScale(6)

environ = loader.loadModel('phase_5/models/char/cogB_robot-lose-mod.bam')
environ.reparentTo(render)
environ.setPos(477.797,25.663,133.179)
environ.setHpr(-210,0,0)
environ.setScale(Cool

eye1 = loader.loadModel('phase_5/models/props/evil-eye.bam')
eye1.reparentTo(render)
eye1.setPos(198.653,53.966,133.179)
eye1.setHpr(100,0,0)
eye1.setScale(90)
eye1.setColor(1,1,1)

goon22 = loader.loadModel("phase_9/models/char/Cog_Goonie-zero.bam")
goon22.reparentTo(render)
goon22.setPos(316.617,-25.466,134.067)
goon22.setHpr(180,0,0)
goon22.setColor(1,0,0)

goon22 = loader.loadModel("phase_9/models/char/Cog_Goonie-zero.bam")
goon22.reparentTo(render)
goon22.setPos(307.373,-25.759,134.067)
goon22.setHpr(180,0,0)
goon22.setColor(1,0,0)

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

ceo = Actor({"head":"phase_12/models/char/bossbotBoss-head-zero.bam", \
"torso":"phase_12/models/char/bossbotBoss-torso-zero.bam", \
"legs":"phase_9/models/char/bossCog-legs-zero.bam"}, \
{"head":{"cogwave":"phase_9/models/char/bossCog-head-wave.bam", \
"run":"phase_9/models/char/bossCog-head-wave.bam"}, \
"torso":{"cogwave":"phase_9/models/char/bossCog-torso-wave.bam", \
"run":"phase_9/models/char/bossCog-torso-wave.bam"}, \
"legs":{"cogwave":"phase_9/models/char/bossCog-legs-wave.bam", \
"run":"phase_9/models/char/bossCog-legs-wave.bam"} \
})

ceo.attach("head", "torso", "joint34")
ceo.attach("torso", "legs", "joint_legs")
ceo.reparentTo(render)
ceotreads = loader.loadModel("phase_9/models/char/bossCog-treads.bam")
ceorear = ceo.find('**/joint_axle')
ceotreads.reparentTo(ceorear)
ceo.setPos(312.256,-20.287,134.067)
ceo.loop("cogwave")
ceo.setHpr(-718.926,0,0)
ceo.setScale(.7)

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 *

max = Actor({"torso":"phase_3/models/char/dogLL_Shorts-torso-1000.bam", \
"legs":"phase_3/models/char/dogMM_Shorts-legs-1000.bam"}, \
# dictionary of anim dictionaries
{"torso":{"walk":"phase_3/models/char/dogLL_Shorts-torso-neutral.bam", \
"run":"phase_3/models/char/dogMM_Shorts-torso-sad-neutral.bam"}, \
"legs":{"walk":"phase_3/models/char/dogMM_Shorts-legs-neutral.bam", \
"run":"phase_3/models/char/dogMM_Shorts-legs-sad-neutral.bam"} \
})
shirts=loader.loadTexture("phase_4/maps/tt_t_chr_shirt_scientistA.jpg")
sleve=loader.loadTexture("phase_4/maps/tt_t_chr_shirtSleeve_scientist.jpg")
shorts=loader.loadTexture("phase_4/maps/tt_t_chr_shorts_scientistB.jpg")
max.find('**/torso-top').setTexture(shirts, 1)
max.find('**/torso-bot').setTexture(shorts, 1)
max.find('**/torso-bot-cap').setTexture(shorts, 1)
max.find('**/sleeves').setTexture(sleve, 1)
max.attach("torso", "legs", "joint_hips")
gloves = max.find('**/hands')
gloves.setColor(255,0,0)
max.loop("neutral")
max.setPos(101.767,153.221,133.573)
max.setHpr(-1566.271,0,0)
max.setScale(1.2)
max.reparentTo(render)
zhead = loader.loadModel("phase_3/models/char/monkey-heads-1000.bam")
head = zhead.find('**/head-long')
head.setColor(0.7, 0.0, 3.0)
headf = zhead.find('**/head-front-long')
headf.setColor(0.7, 0.0, 3.0)
neck = max.find('**/neck')
neck.setColor(0.7, 0.0, 3.0)
max.find('**/arms').setColor(0.7, 0.0, 3.0)
max.find('**/legs').setColor(0.7, 0.0, 3.0)
max.find('**/feet').setColor(0.7, 0.0, 3.0)
max.find('**/torso-bot').setColor(1,1, 1.0)
joint = max.find('**/joint_head')
zhead.find('**/muzzle-long-neutral').reparentTo(joint)
zhead.find('**/joint_pupilR_long').reparentTo(joint)
zhead.find('**/joint_pupilL_long').reparentTo(joint)
zhead.find('**/ears-long').reparentTo(joint)
zhead.find('**/head-front-long').reparentTo(joint)
zhead.find('**/eyes-long').reparentTo(joint)
zhead.find('**/head-long').reparentTo(joint)
gloves1 = max.find('**/joint_Rhold')

max = Actor({"torso":"phase_3/models/char/dogLL_Shorts-torso-1000.bam", \
"legs":"phase_3/models/char/dogMM_Shorts-legs-1000.bam"}, \
# dictionary of anim dictionaries
{"torso":{"walk":"phase_3/models/char/dogLL_Shorts-torso-neutral.bam", \
"run":"phase_3/models/char/dogMM_Shorts-torso-sad-neutral.bam"}, \
"legs":{"walk":"phase_3/models/char/dogMM_Shorts-legs-neutral.bam", \
"run":"phase_3/models/char/dogMM_Shorts-legs-sad-neutral.bam"} \
})
shirts=loader.loadTexture("phase_4/maps/tt_t_chr_shirt_scientistA.jpg")
sleve=loader.loadTexture("phase_4/maps/tt_t_chr_shirtSleeve_scientist.jpg")
shorts=loader.loadTexture("phase_4/maps/tt_t_chr_shorts_scientistA.jpg")
max.find('**/torso-top').setTexture(shirts, 1)
max.find('**/torso-bot').setTexture(shorts, 1)
max.find('**/torso-bot-cap').setTexture(shorts, 1)
max.find('**/sleeves').setTexture(sleve, 1)
max.attach("torso", "legs", "joint_hips")
gloves = max.find('**/hands')
gloves.setColor(1,0,1)
max.loop("neutral")
max.setPos(282.101,79.836,133.179)
max.setHpr(-1566.271,0,0)
max.setScale(1)
max.reparentTo(render)
zhead = loader.loadModel("phase_3/models/char/cat-heads-1000.bam")
head = zhead.find('**/head-short')
head.setColor(0, 0, 1)
headf = zhead.find('**/head-front-short')
headf.setColor(1, 1, 1)
neck = max.find('**/neck')
neck.setColor(1, 1, 1)
max.find('**/arms').setColor(1,1, 1)
max.find('**/legs').setColor(1, 1, 1)
max.find('**/feet').setColor(1, 1, 1)
max.find('**/torso-bot').setColor(1,1,1)
joint = max.find('**/joint_head')
zhead.find('**/muzzle-short-neutral').reparentTo(joint)
zhead.find('**/joint_pupilR_short').reparentTo(joint)
zhead.find('**/joint_pupilL_short').reparentTo(joint)
zhead.find('**/ears-short').reparentTo(joint)
zhead.find('**/head-front-short').reparentTo(joint)
zhead.find('**/eyes-short').reparentTo(joint)
zhead.find('**/head-short').reparentTo(joint)
gloves1 = max.find('**/joint_Rhold')

broken = loader.loadModel('phase_5/models/props/ship.bam')
broken.reparentTo(render)
broken.setPos(283.395,75.028,133.179)
broken.setHpr(0,0,0)
broken.setScale(.3)

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

cheesefff = Actor("phase_3.5/models/char/suitA-mod.bam",{"walk":"phase_4/models/char/suitA-victory.bam"})
cheesefff.reparentTo(render)
cheesefff.loop("walk")
mole = loader.loadModel("phase_4/models/char/suitA-heads.bam")
bigcheese = mole.find('**/bigcheese')
bigcheese.setColor(0,0,3)
hands = cheesesss.find('**/hands')
hands.setColor(255,0,0)
cheesefff.setPos(167.738,139.061,133.179)
cheesefff.setScale(1.5)
cheesefff.setHpr((-485.204,0,0))

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

cheesesss = Actor("phase_3.5/models/char/suitA-mod.bam",{"walk":"phase_4/models/char/suitA-neutral.bam"})
cheesesss.reparentTo(render)
cheesesss.loop("walk")
mole = loader.loadModel("phase_4/models/char/suitA-heads.bam")
bigcheese = mole.find('**/bigcheese')
bigcheese.setColor(0,0,3)
hands = cheesesss.find('**/hands')
hands.setColor(0,0,1)
cheesesss.setPos(199.884,133.291,133.179)
cheesesss.setScale(1.5)
cheesesss.setHpr((-579.824,0,0))


These are server cog summoners

base.localAvatar.d_reqCogSummons('f', 1)

This skips the tutorial


Tut = base.cr.doFindAll("TutorialManager")[0]
Tut.d_requestSkipTutorial()
Tut.base.cr.gameFSM.request('closeShard')

That's all I'm going to give for now ^_^
avatar
gollyhawhaw
Level 11

Posts : 52
Join date : 2011-10-30
Age : 19
Location : London

View user profile

Back to top Go down

Re: Fun Codes

Post by BluuBlood on Mon Jan 23, 2012 4:46 am

Thanks for the codes, I also found a HUGE stash online. Smile

BluuBlood
Level 3

Posts : 5
Join date : 2012-01-19

View user profile

Back to top Go down

Re: Fun Codes

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum