Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Plastic Bottle Reconstructor model
- @persist X
- @inputs EGP:wirelink Start
- interval(30)
- if(first()){
- entity():setMaterial("models/wireframe")
- #runOnTick(1)
- X = 0
- # Base
- holoCreate(1,entity():pos(),vec(18/12,6/12,1/24))
- holoParent(1,entity())
- holoCreate(102,holoEntity(1):toWorld(vec(0.5,3-0.25,2+0.25)),vec(),holoEntity(1):toWorld(ang(0,90,0)))
- holoParent(102,1)
- holoCreate(2,holoEntity(1):toWorld(vec(4.5,3-0.25,2+0.25)),vec(1/24,8/12,5/12),holoEntity(1):toWorld(ang(0,90,0)))
- holoAlpha(2,150)
- holoParent(2,102)
- holoCreate(3,holoEntity(1):toWorld(vec(9-0.25,1.5,2+0.25)),vec(1/24,3/12,5/12),holoEntity(1):angles())
- holoAlpha(3,150)
- holoParent(3,2)
- holoCreate(104,holoEntity(1):toWorld(vec(0.5,-3+0.25,2+0.25)),vec(),holoEntity(1):toWorld(ang(0,-90,0)))
- holoParent(104,1)
- holoCreate(4,holoEntity(1):toWorld(vec(4.5,-3+0.25,2+0.25)),vec(1/24,8/12,5/12),holoEntity(1):toWorld(ang(0,-90,0)))
- holoAlpha(4,150)
- holoParent(4,104)
- holoCreate(5,holoEntity(1):toWorld(vec(9-0.25,-1.5,2+0.25)),vec(1/24,3/12,5/12),holoEntity(1):angles())
- holoAlpha(5,150)
- holoParent(5,4)
- holoCreate(6,holoEntity(1):toWorld(vec(0.25,0,2+0.25)),vec(1/24,6/12,5/12),holoEntity(1):angles())
- holoAlpha(6,150)
- holoParent(6,1)
- holoCreate(7,holoEntity(1):toWorld(vec(-4.5,3-0.25,2+0.25)),vec(1/24,9/12,5/12),holoEntity(1):toWorld(ang(0,90,0)))
- holoAlpha(7,150)
- holoParent(7,1)
- holoCreate(8,holoEntity(1):toWorld(vec(-4.5,-3+0.25,2+0.25)),vec(1/24,9/12,5/12),holoEntity(1):toWorld(ang(0,-90,0)))
- holoAlpha(8,150)
- holoParent(8,1)
- # Pillars
- holoCreate(9,holoEntity(1):toWorld(vec(5,0,4)),vec(4/12,4/12,7/12),holoEntity(1):toWorld(ang(0,0,90)),vec(255),"hq_cylinder")
- holoParent(9,1)
- holoCreate(10,holoEntity(9):toWorld(vec(0,0,3.5)),vec(3/12,3/12,0.5/12),holoEntity(9):angles(),vec(255,50,50),"hqrcylinder")
- holoParent(10,9)
- holoCreate(11,holoEntity(9):toWorld(vec(-5,5,3)),vec(11/12,1/12,1.5/12),holoEntity(1):toWorld(ang(-135,0,0)))
- holoParent(11,9)
- holoCreate(12,holoEntity(11):toWorld(vec(5,0,0)),vec(3/12,3/12,1.5/12),holoEntity(9):angles(),vec(255),"hq_cylinder")
- holoParent(12,11)
- holoCreate(13,holoEntity(9):toWorld(vec(0,0,-3.5)),vec(3/12,3/12,0.5/12),holoEntity(9):angles(),vec(255,50,50),"hqrcylinder")
- holoParent(13,9)
- holoCreate(14,holoEntity(9):toWorld(vec(-5,5,-3)),vec(11/12,1/12,1.5/12),holoEntity(1):toWorld(ang(-135,0,0)))
- holoParent(14,9)
- holoCreate(15,holoEntity(14):toWorld(vec(5,0,0)),vec(3/12,3/12,1.5/12),holoEntity(9):angles(),vec(255),"hq_cylinder")
- holoParent(15,14)
- #rods
- holoCreate(16,holoEntity(9):toWorld(vec(0,4.375,-2)),vec(0.5/12,0.5/12,16.25/12),holoEntity(1):angles(),vec(150),"hq_cylinder")
- holoParent(16,9)
- holoCreate(17,holoEntity(9):toWorld(vec(0,4.375,2)),vec(0.5/12,0.5/12,16.25/12),holoEntity(1):angles(),vec(150),"hq_cylinder")
- holoParent(17,9)
- holoCreate(18,holoEntity(9):toWorld(vec(-5,0,-2)),vec(0.5/12,0.5/12,17/12),holoEntity(1):toWorld(ang(90,0,0)),vec(150),"hq_cylinder")
- holoParent(18,9)
- holoCreate(19,holoEntity(9):toWorld(vec(-5,0,2)),vec(0.5/12,0.5/12,17/12),holoEntity(1):toWorld(ang(90,0,0)),vec(150),"hq_cylinder")
- holoParent(19,9)
- # Layer2 Shell
- holoCreate(120,holoEntity(1):toWorld(vec(9-2.25-0.5,2,8)),vec(),holoEntity(1):toWorld(ang(0,90,0)))
- holoParent(120,16)
- holoCreate(20,holoEntity(1):toWorld(vec(9-2.25-0.5,3-0.25,8)),vec(1/24,4.5/12,7/12),holoEntity(1):toWorld(ang(0,90,0)))
- holoAlpha(20,150)
- holoParent(20,120)
- holoCreate(21,holoEntity(1):toWorld(vec(9-0.25,1.5,8)),vec(1/24,3/12,7/12),holoEntity(1):angles())
- holoAlpha(21,150)
- holoParent(21,20)
- holoCreate(122,holoEntity(1):toWorld(vec(9-2.25-0.5,-2,8)),vec(),holoEntity(1):toWorld(ang(0,-90,0)))
- holoParent(122,17)
- holoCreate(22,holoEntity(1):toWorld(vec(9-2.25-0.5,-3+0.25,8)),vec(1/24,4.5/12,7/12),holoEntity(1):toWorld(ang(0,-90,0)))
- holoAlpha(22,150)
- holoParent(22,122)
- holoCreate(23,holoEntity(1):toWorld(vec(9-0.25,-1.5,8)),vec(1/24,3/12,7/12),holoEntity(1):angles())
- holoAlpha(23,150)
- holoParent(23,22)
- # Layer 3 Shell
- holoCreate(124,holoEntity(1):toWorld(vec(9-2.25-0.5,2,15)),vec(),holoEntity(1):toWorld(ang(0,90,0)))
- holoParent(124,16)
- holoCreate(24,holoEntity(1):toWorld(vec(9-2.25-0.5,3-0.25,15)),vec(1/24,4.5/12,7/12),holoEntity(1):toWorld(ang(0,90,0)))
- holoAlpha(24,150)
- holoParent(24,124)
- holoCreate(25,holoEntity(1):toWorld(vec(9-0.25,1.5,15)),vec(1/24,3/12,7/12),holoEntity(1):angles())
- holoAlpha(25,150)
- holoParent(25,24)
- holoCreate(126,holoEntity(1):toWorld(vec(9-2.25-0.5,-2,15)),vec(),holoEntity(1):toWorld(ang(0,-90,0)))
- holoParent(126,17)
- holoCreate(26,holoEntity(1):toWorld(vec(9-2.25-0.5,-3+0.25,15)),vec(1/24,4.5/12,7/12),holoEntity(1):toWorld(ang(0,-90,0)))
- holoAlpha(26,150)
- holoParent(26,126)
- holoCreate(27,holoEntity(1):toWorld(vec(9-0.25,-1.5,15)),vec(1/24,3/12,7/12),holoEntity(1):angles())
- holoAlpha(27,150)
- holoParent(27,26)
- # Middle comp
- holoCreate(28,holoEntity(1):toWorld(vec(5,2,11.5)),vec(0.65/12,0.65/12,4/12),holoEntity(1):angles(),vec(255),"hq_tube")
- holoParent(28,1)
- holoCreate(29,holoEntity(1):toWorld(vec(5,-2,11.5)),vec(0.65/12,0.65/12,4/12),holoEntity(1):angles(),vec(255),"hq_tube")
- holoParent(29,1)
- holoCreate(30,holoEntity(1):toWorld(vec(5.35,0,11.5)),vec(1/48,5/12,4/12),holoEntity(1):angles(),vec(255),"hq_rcube")
- holoParent(30,1)
- holoCreate(31,holoEntity(1):toWorld(vec(6,2.25,11.5)),vec(1/24,2/12,4/12),holoEntity(1):toWorld(ang(0,90,0)),vec(255),"hq_rcube")
- holoParent(31,30)
- holoCreate(32,holoEntity(1):toWorld(vec(6,-2.25,11.5)),vec(1/24,2/12,4/12),holoEntity(1):toWorld(ang(0,-90,0)),vec(255),"hq_rcube")
- holoParent(32,30)
- holoCreate(33,holoEntity(1):toWorld(vec(6,1.75,11.5)),vec(1/12,1/12,2/12),holoEntity(1):toWorld(ang(90,0,0)),vec(255),"hqrcylinder")
- holoParent(33,31)
- holoCreate(34,holoEntity(1):toWorld(vec(6,-1.75,11.5)),vec(1/12,1/12,2/12),holoEntity(1):toWorld(ang(90,0,0)),vec(255),"hqrcylinder")
- holoParent(34,32)
- holoCreate(35,holoEntity(1):toWorld(vec(6.25,0,11.5)),vec(1/24,1/24,1/12),holoEntity(1):angles(),vec(150))
- holoParent(35,30)
- holoCreate(36,holoEntity(1):toWorld(vec(6.25,0,11.35)),vec(1/72,1/72,3/12),holoEntity(1):toWorld(ang(0,0,90)),vec(150),"hq_cylinder")
- holoParent(36,30)
- holoCreate(37,holoEntity(1):toWorld(vec(6.25,0,11.65)),vec(1/72,1/72,3/12),holoEntity(1):toWorld(ang(0,0,90)),vec(150),"hq_cylinder")
- holoParent(37,30)
- holoCreate(38,holoEntity(35):toWorld(vec(0,0,0.5)),vec(0.5/12),holoEntity(1):toWorld(ang(180,0,0)),vec(180),"hq_cone")
- holoParent(38,30)
- # Lower comp
- holoCreate(39,holoEntity(1):toWorld(vec(5,2,7.5)),vec(0.65/12,0.65/12,2/12),holoEntity(1):angles(),vec(255),"hq_tube")
- holoParent(39,1)
- holoCreate(40,holoEntity(1):toWorld(vec(5,-2,7.5)),vec(0.65/12,0.65/12,2/12),holoEntity(1):angles(),vec(255),"hq_tube")
- holoParent(40,1)
- holoCreate(41,holoEntity(1):toWorld(vec(6,2.25,7.5)),vec(1/24,2/12,2/12),holoEntity(1):toWorld(ang(0,90,0)),vec(255),"hq_rcube")
- holoParent(41,1)
- holoCreate(42,holoEntity(1):toWorld(vec(6,-2.25,7.5)),vec(1/24,2/12,2/12),holoEntity(1):toWorld(ang(0,90,0)),vec(255),"hq_rcube")
- holoParent(42,1)
- holoCreate(43,holoEntity(1):toWorld(vec(6,1.75,7.5)),vec(1/12,1/12,1/24),holoEntity(1):toWorld(ang(0,0,90)),vec(255),"hqrcylinder")
- holoParent(43,1)
- holoCreate(44,holoEntity(1):toWorld(vec(6,-1.75,7.5)),vec(1/12,1/12,1/24),holoEntity(1):toWorld(ang(0,0,90)),vec(255),"hqrcylinder")
- holoParent(44,1)
- holoCreate(45,holoEntity(1):toWorld(vec(6,0,7.5)),vec(0.65/12,0.65/12,3.5/12),holoEntity(1):toWorld(ang(0,0,90)),vec(180),"hqrcylinder")
- holoParent(45,1)
- # Upper comp
- holoCreate(46,holoEntity(1):toWorld(vec(5,2,15.5)),vec(0.65/12,0.65/12,2/12),holoEntity(1):angles(),vec(255),"hq_tube")
- holoParent(46,1)
- holoCreate(47,holoEntity(1):toWorld(vec(5,-2,15.5)),vec(0.65/12,0.65/12,2/12),holoEntity(1):angles(),vec(255),"hq_tube")
- holoParent(47,1)
- holoCreate(48,holoEntity(1):toWorld(vec(6,2.25,15.5)),vec(1/24,2/12,2/12),holoEntity(1):toWorld(ang(0,90,0)),vec(255),"hq_rcube")
- holoParent(48,1)
- holoCreate(49,holoEntity(1):toWorld(vec(6,-2.25,15.5)),vec(1/24,2/12,2/12),holoEntity(1):toWorld(ang(0,90,0)),vec(255),"hq_rcube")
- holoParent(49,1)
- holoCreate(50,holoEntity(1):toWorld(vec(6,1.75,15.5)),vec(1/12,1/12,1/24),holoEntity(1):toWorld(ang(0,0,90)),vec(255),"hqrcylinder")
- holoParent(50,1)
- holoCreate(51,holoEntity(1):toWorld(vec(6,-1.75,15.5)),vec(1/12,1/12,1/24),holoEntity(1):toWorld(ang(0,0,90)),vec(255),"hqrcylinder")
- holoParent(51,1)
- holoCreate(52,holoEntity(1):toWorld(vec(6,0,15.5)),vec(0.65/12,0.65/12,3.5/12),holoEntity(1):toWorld(ang(0,0,90)),vec(180),"hqrcylinder")
- holoParent(52,1)
- # Top comp
- holoCreate(53,holoEntity(1):toWorld(vec(5,2,16.5)),vec(1/12,1/12,1/48),holoEntity(1):toWorld(ang(0,90,0)),vec(255),"hq_rcube")
- holoParent(53,1)
- holoCreate(54,holoEntity(1):toWorld(vec(5,-2,16.5)),vec(1/12,1/12,1/48),holoEntity(1):toWorld(ang(0,-90,0)),vec(255),"hq_rcube")
- holoParent(54,1)
- holoCreate(55,holoEntity(1):toWorld(vec(5,2.5,17.5)),vec(1/48,1/12,2/12),holoEntity(1):toWorld(ang(0,90,0)),vec(255),"hq_rcube")
- holoParent(55,1)
- holoCreate(56,holoEntity(1):toWorld(vec(5,-2.5,17.5)),vec(1/48,1/12,2/12),holoEntity(1):toWorld(ang(0,-90,0)),vec(255),"hq_rcube")
- holoParent(56,1)
- holoCreate(57,holoEntity(1):toWorld(vec(5,0,17.5)),vec(0.5/12,0.5/12,5/12),holoEntity(1):toWorld(ang(0,0,90)),vec(255),"hq_cylinder")
- holoParent(57,1)
- holoCreate(58,holoEntity(1):toWorld(vec(4.5,0,17.5)),vec(0.25/12,5.25/12,2/12),holoEntity(1):angles(),vec(255))
- holoParent(58,1)
- # Moving Raw
- holoCreate(59,holoEntity(1):toWorld(vec(5,15,19.5)),vec(0.65/12,0.65/12,2/12),holoEntity(1):toWorld(ang(0,0,90)),vec(220),"hq_tube")
- holoCreate(60,holoEntity(59):toWorld(vec(0,0,1-0.25)),vec(1.3/12,1.3/12,0.5/12),holoEntity(1):toWorld(ang(0,0,90)),vec(220),"hq_tube_thick")
- holoParent(60,59)
- holoCreate(61,holoEntity(59):toWorld(vec(0,0,-1+0.25)),vec(1.3/12,1.3/12,0.5/12),holoEntity(1):toWorld(ang(0,0,90)),vec(220),"hq_tube_thick")
- holoParent(61,59)
- holoCreate(62,holoEntity(59):pos(),vec(0.725/12,0.725/12,1/12),holoEntity(1):toWorld(ang(0,0,90)),vec(255,100,100),"hq_tube_thin")
- holoParent(62,59)
- holoAlpha(62,0)
- # Moving Finish
- holoCreate(63,holoEntity(12):toWorld(vec(0,14,-2.25-0.75)),vec(4/12,4/12,3.5/12),holoEntity(12):angles(),vec(220),"hq_cylinder")
- holoCreate(64,holoEntity(63):toWorld(vec(0,0,1.75+0.25)),vec(7/12,7/12,0.5/12),holoEntity(63):angles(),vec(255,50,50),"hq_cylinder")
- holoParent(64,63)
- holoCreate(65,holoEntity(63):toWorld(vec(0,0,-1.75-0.25)),vec(7/12,7/12,0.5/12),holoEntity(63):angles(),vec(255,50,50),"hq_cylinder")
- holoParent(65,63)
- holoCreate(66,holoEntity(63):pos(),vec(4.45/12,4.45/12,3.5/12),holoEntity(12):angles(),vec(255,100,100),"hq_tube_thin")
- holoParent(66,63)
- holoAlpha(66,0)
- # Bottle Prop
- holoCreate(67,holoEntity(1):toWorld(vec(0,20,3.7)),vec(1),holoEntity(1):angles())
- holoModel(67,"models/props/cs_office/water_bottle.mdl")
- #holoAlpha(67,230)
- holoClip(67,holoEntity(67):toWorld(vec(0,0,-4)),holoEntity(1):toWorld(vec(0,0,1))-holoEntity(1):pos(),1)
- holoClipEnabled(67,1)
- # Cap
- holoCreate(168,holoEntity(1):toWorld(vec(9-5+0.25,0,18.5+0.25)),vec(),holoEntity(1):angles())
- holoParent(168,1)
- holoCreate(68,holoEntity(1):toWorld(vec(9-2.5,0,18.5+0.25)),vec(5/12,6/12,1/24),holoEntity(1):angles())
- holoAlpha(68,150)
- holoParent(68,168)
- # Knife
- holoCreate(69,holoEntity(1):toWorld(vec(0,40,-0.25+0.75)),vec(0.75/12,0.75/12,16/12),holoEntity(1):toWorld(ang(0,0,90)),vec(150),"hq_cylinder") #nice
- #holoCreate(69,holoEntity(67):toWorld(vec(0,0,-3)),vec(0.75/12,0.75/12,16/12),holoEntity(1):toWorld(ang()),vec(150),"hq_cylinder") #nice
- holoCreate(70,holoEntity(69):toWorld(vec(0,0,-1)),vec(1.5/12,1.5/12,2/12),holoEntity(69):angles(),vec(255),"hq_tube_thick")
- holoAlpha(70,150)
- holoParent(70,69)
- holoCreate(71,holoEntity(70):toWorld(vec(1.375,0,0)),vec(2/12,1/12,2/12),holoEntity(69):angles(),vec(255),"hq_rcube")
- holoAlpha(71,150)
- holoParent(71,70)
- holoCreate(72,holoEntity(70):toWorld(vec(1.25,0,0.5)),vec(0.25/12,1.1/12,1/12),holoEntity(69):angles(),vec(10),"hq_rcube")
- holoParent(72,70)
- # Process Props
- timer("create1",1000)
- #print(holoCanCreate())
- # Flip open
- ###
- #holoAng(16,holoEntity(1):toWorld(ang(0,90,0)))
- #holoAng(17,holoEntity(1):toWorld(ang(0,-90,0)))
- #holoAng(168,holoEntity(1):toWorld(ang(-90,0,0)))
- ###
- }
- elseif(changed(first())){
- for(H = 59,62){
- #holoAlpha(H,0)
- }
- for(H = 63,66){
- holoAlpha(H,0)
- }
- }
- else{
- #holoAng(16,holoEntity(16):toWorld(ang(0,5,0)))
- #holoAng(17,holoEntity(17):toWorld(ang(0,-5,0)))
- #holoAng(16,holoEntity(1):toWorld(ang(0,45 + sin(curtime()*100)*45,0)))
- #holoAng(17,holoEntity(1):toWorld(ang(0,-45 - sin(curtime()*100)*45,0)))
- Timestamp = array(1,51, 330,337, 357,366, 386,446, 566,586, 606,621, 641,645, 725,750,
- 770,790, 815,840, 860,885, 905,930, 950,975, 995,1020
- )#c1 ori 660, +40
- if(Start == 1){
- X += 1
- }
- if(X > Timestamp[1,number] & X <= Timestamp[2,number]){
- EGP:egpAlpha(1,X*2)
- }
- elseif(X > Timestamp[3,number] & X <= Timestamp[4,number]){
- holoPos(67,holoEntity(67):toWorld(vec(0,0,2)))
- holoClip(67,holoEntity(67):toWorld(vec(0,0,-4)),holoEntity(1):toWorld(vec(0,0,1))-holoEntity(1):pos(),1)
- }
- elseif(X > Timestamp[5,number] & X <= Timestamp[6,number]){
- holoPos(69,holoEntity(69):pos() + holoEntity(1):toWorld(vec(0,-20/9,14.2/9)) - holoEntity(1):pos())
- holoAng(69,holoEntity(69):toWorld(ang(0,0,-10)))
- }
- elseif(X > Timestamp[7,number] & X <= Timestamp[8,number]){
- holoPos(70,holoEntity(70):pos() + holoEntity(1):toWorld(vec(0,0,0.105)) - holoEntity(1):pos())
- holoAng(70,holoEntity(70):toWorld(ang(0,6,0)))
- # -4 to 2.3
- holoClip(67,holoEntity(67):toWorld(vec(0,0,-4+0.105*(X-Timestamp[7,number]))),holoEntity(1):toWorld(vec(0,0,1))-holoEntity(1):pos(),1)
- holoAlpha(62,holoEntity(62):getAlpha()+(255/60))
- }
- elseif(X > Timestamp[9,number] & X <= Timestamp[10,number]){
- holoAng(16,holoEntity(1):toWorld(ang(0,90*((X-Timestamp[9,number])/20),0)))
- holoAng(17,holoEntity(1):toWorld(ang(0,-90*((X-Timestamp[9,number])/20),0)))
- holoAng(168,holoEntity(1):toWorld(ang(-90*((X-Timestamp[9,number])/20),0,0)))
- }
- elseif(X > Timestamp[11,number] & X <= Timestamp[12,number]){
- holoPos(59,holoEntity(59):toWorld(vec(0,0,1)))
- }
- elseif(X > Timestamp[13,number] & X <= Timestamp[14,number]){
- holoPos(59,holoEntity(59):toWorld(vec(0,-0.5,0)))
- }
- elseif(X > Timestamp[15,number] & X <= Timestamp[16,number]){
- holoAlpha(63,holoEntity(63):getAlpha()+11)
- for(H = 64,65){
- holoAlpha(H,holoEntity(H):getAlpha()+10)
- }
- }
- elseif(X > Timestamp[17,number] & X <= Timestamp[18,number]){
- holoPos(63,holoEntity(63):toWorld(vec(0,-14/20,0)))
- }
- elseif(X > Timestamp[19,number] & X <= Timestamp[20,number]){
- holoAlpha(73,holoEntity(73):getAlpha()+11)
- }
- elseif(X > Timestamp[21,number] & X <= Timestamp[22,number]){
- holoAlpha(74,holoEntity(74):getAlpha()+11)
- }
- elseif(X > Timestamp[23,number] & X <= Timestamp[24,number]){
- holoAlpha(75,holoEntity(75):getAlpha()+11)
- }
- elseif(X > Timestamp[25,number] & X <= Timestamp[26,number]){
- holoAlpha(76,holoEntity(76):getAlpha()+11)
- }
- elseif(X > Timestamp[27,number] & X <= Timestamp[28,number]){
- holoAlpha(66,holoEntity(66):getAlpha()+11)
- }
- if(changed(->EGP)){
- EGP:egpClear()
- }
- if(EGP){
- if(X == 1){
- EGP:egpBox(1,egpScrSize(owner())/2,vec2(egpScrW(owner())*0.7,egpScrH(owner())*0.2))
- }
- if(X == 50){
- EGP:egpText(2,"Plastic Bottle Reconstructor",EGP:egpPos(1)+vec2(-350,-60))
- EGP:egpSize(2,60)
- EGP:egpColor(2,vec(25))
- EGP:egpAlpha(2,180)
- }
- if(X == 90){
- EGP:egpText(3,"Polyformer and 3D-printer",EGP:egpPos(1)+vec2(-200,20))
- EGP:egpSize(3,36)
- EGP:egpColor(3,vec(25))
- EGP:egpAlpha(3,180)
- }
- if(X == 250){
- for(E = 1,3){
- EGP:egpRemove(E)
- }
- }
- if(X == 290){
- EGP:egpBox(11,vec2(egpScrW(owner())/2,egpScrH(owner())*0.1),vec2(egpScrW(owner())*0.8,egpScrH(owner())*0.15))
- EGP:egpAlpha(11,100)
- EGP:egpText(12,"How to use: First, the user cuts the plastic bottle into strips",EGP:egpPos(11)+vec2(-445,-42))
- EGP:egpSize(12,36)
- EGP:egpColor(12,vec(25))
- EGP:egpAlpha(12,180)
- EGP:egpText(13,"using the knife in the Polyformer building set",EGP:egpPos(11)+vec2(-330,8))
- EGP:egpSize(13,36)
- EGP:egpColor(13,vec(25))
- EGP:egpAlpha(13,180)
- }
- if(X == 486){
- for(E = 11,13){
- EGP:egpRemove(E)
- }
- }
- if(X == 526){
- EGP:egpBox(21,vec2(egpScrW(owner())/2,egpScrH(owner())*0.1),vec2(egpScrW(owner())*0.8,egpScrH(owner())*0.15))
- EGP:egpAlpha(21,100)
- EGP:egpText(22,"Then, the user opens the Polyformer by flipping its cap up",EGP:egpPos(21)+vec2(-445,-42))
- EGP:egpSize(22,36)
- EGP:egpColor(22,vec(25))
- EGP:egpAlpha(22,180)
- EGP:egpText(23,"and insert the plastic strips in",EGP:egpPos(21)+vec2(-240,8))
- EGP:egpSize(23,36)
- EGP:egpColor(23,vec(25))
- EGP:egpAlpha(23,180)
- }
- if(X == 645){
- for(E = 21,23){
- EGP:egpRemove(E)
- }
- }
- if(X == 685){
- EGP:egpBox(31,vec2(egpScrW(owner())/2,egpScrH(owner())*0.1),vec2(egpScrW(owner())*0.8,egpScrH(owner())*0.15))
- EGP:egpAlpha(31,100)
- EGP:egpText(32,"Insert the 3D-printing cartridge......",EGP:egpPos(31)+vec2(-250,-17))
- EGP:egpSize(32,36)
- EGP:egpColor(32,vec(25))
- EGP:egpAlpha(32,180)
- }
- if(X == 735){
- for(E = 31,32){
- EGP:egpRemove(E)
- }
- }
- if(X == 775){
- EGP:egpBox(41,vec2(egpScrW(owner())/2,egpScrH(owner())*0.1),vec2(egpScrW(owner())*0.8,egpScrH(owner())*0.15))
- EGP:egpAlpha(41,100)
- EGP:egpText(42,"And 3D-printing material is produced",EGP:egpPos(41)+vec2(-270,-42))
- EGP:egpSize(42,36)
- EGP:egpColor(42,vec(25))
- EGP:egpAlpha(42,180)
- EGP:egpText(43,"for the printer part of PBR",EGP:egpPos(41)+vec2(-190,8))
- EGP:egpSize(43,36)
- EGP:egpColor(43,vec(25))
- EGP:egpAlpha(43,180)
- }
- if(X == 1060){
- for(E = 41,43){
- EGP:egpRemove(E)
- }
- }
- if(X == 1100){
- EGP:egpBox(51,vec2(egpScrW(owner())/2,egpScrH(owner())*0.1),vec2(egpScrW(owner())*0.8,egpScrH(owner())*0.15))
- EGP:egpAlpha(51,100)
- EGP:egpText(52,"Thanks for watching",EGP:egpPos(51)+vec2(-155,-17))
- EGP:egpSize(52,36)
- EGP:egpColor(52,vec(25))
- EGP:egpAlpha(52,180)
- }
- if(X == 1300){
- for(E = 41,43){
- EGP:egpRemove(E)
- }
- }
- }
- }
- if(clk("create1")){
- holoCreate(73,(holoEntity(57):pos() + holoEntity(52):pos())/2 + holoEntity(1):forward()*0.4,vec((holoEntity(57):pos():distance(holoEntity(52):pos()))/12,0.5/12,0.125/12),(holoEntity(52):pos() - holoEntity(57):pos()):toAngle(),vec(255,100,100))
- holoParent(73,1)
- holoCreate(74,(holoEntity(73):toWorld(vec((holoEntity(57):pos():distance(holoEntity(52):pos()))/2,0,0)) + holoEntity(38):pos())/2,vec((holoEntity(73):toWorld(vec((holoEntity(57):pos():distance(holoEntity(52):pos()))/2,0,0)):distance(holoEntity(38):pos()))/12,0.25/12,0.125/12),(holoEntity(38):pos() - holoEntity(73):toWorld(vec((holoEntity(57):pos():distance(holoEntity(52):pos()))/2,0,0))):toAngle(),vec(255,100,100))
- holoParent(74,1)
- #35 - 45, bad idea to not use variables
- End74 = holoEntity(35):toWorld(vec(0,0,-0.5))
- holoCreate(75,(End74 + holoEntity(45):pos() + holoEntity(1):forward()*0.4)/2,vec(0.125/12,0.25/12,End74:distance(holoEntity(45):pos() + holoEntity(1):forward()*0.4)/12),(holoEntity(45):pos() + holoEntity(1):forward()*0.4 - End74):toAngle()+ang(90,0,0),vec(255,100,100),"hq_cylinder")
- End75 = holoEntity(45):toWorld(vec(0,-0.25,0))
- Start76 = holoEntity(12):toWorld(vec(0,-2,-2.25-0.75))
- holoCreate(76,(End75 + Start76)/2,vec(0.125/12,0.25/12,End75:distance(Start76)/12),(Start76 - End75):toAngle() + ang(90,0,0),vec(255,100,100),"hq_cylinder")
- for(H = 73,76){
- holoAlpha(H,0)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment