35 lines
No EOL
1.7 KiB
Text
35 lines
No EOL
1.7 KiB
Text
from direct.interval.IntervalGlobal import *
|
|
def red():
|
|
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)
|
|
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() |