Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not ganepaint then
- ganepaint = {speetiEnd = time,mouselvl = 0,speakTime = 10000,FaceUp = 0}
- end
- setPos(id,-2.3,1.4)
- setScale(id,0.0025,-0.0025)
- if sound then
- if sound.lvl > 25 then
- ganepaint.speetiEnd = time
- end
- if ganepaint.speetiEnd + ganepaint.speakTime > time then
- ganepaint.FaceUp = ganepaint.FaceUp + 0.03
- if ganepaint.FaceUp > 1 then ganepaint.FaceUp = 1 end
- else
- ganepaint.FaceUp = ganepaint.FaceUp * 0.95
- end
- end
- if wacom then
- addParam(id,"PARAM_Pen_X",(50-wacom.X)/50,1)
- addParam(id,"PARAM_Pen_Y",(50-wacom.Y)/50,1)
- addParam(id,"PARAM_EYE_BALL_X",(50-wacom.X)/50*(1-ganepaint.FaceUp),1)
- addParam(id,"PARAM_EYE_BALL_Y",(ganepaint.FaceUp-1),1)
- addParam(id,"PARAM_Pen_R",-wacom.Roll/100,1)
- addParam(id,"PARAM_Pen_E",wacom.Ele/100,1)
- addParam(id,"PARAM_ANGLE_Y",(ganepaint.FaceUp-1)*30,1)
- addParam(id,"PARAM_ANGLE_Z",(50-wacom.X)*6/50*(1-ganepaint.FaceUp),1)
- addParam(id,"PARAM_ANGLE_X",-(50-wacom.X)*6/50*(1-ganepaint.FaceUp),1)
- end
- addParam(id,"PARAM_MOUTH_OPEN_Y",sound.lvl/100,1)
Add Comment
Please, Sign In to add comment