@name Spider Con
@inputs 
@outputs 
@persist 
@trigger 

if (first()) {
#Body
    #Butt
    holoCreate(1,entity():toWorld(vec(-53,0,4)),vec(6.2,3.4,5.2),ang(0,0,90))
    holoModel(1,"hq_sphere")
    
    #Top
    holoCreate(2,entity():toWorld(vec(0,0,-1)),vec(3,3,3))
    holoModel(2,"hq_hdome_thin")
    
    #Bottem
    holoCreate(3,entity():toWorld(vec(0,0,10)),vec(3.6,3.6,3),ang(0,0,-180))
    holoModel(3,"hq_hdome_thin")
    holoClipEnabled(3,1,1)
    holoClip(3,vec(0,0,10),vec(0,0,1),0)
    
    #Joining
    holoCreate(4,entity():toWorld(vec(0,0,0)),vec(3.05,3.05,3.05),ang(0,0,-180))
    holoModel(4,"hq_torus")
    
#Legs
    #Left Back
    holoCreate(5,entity():toWorld(vec(-13,21,10)),vec(0.3,0.3,3),ang(40,120,0))
    holoClipEnabled(5,1,1)
    holoClip(5,vec(0,0,-12),vec(0,0,1),0)
    
    #Right Back
    holoCreate(6,entity():toWorld(vec(-13,-21,10)),vec(0.3,0.3,3),ang(40,-120,0))
    holoClipEnabled(6,1,1)
    holoClip(6,vec(0,0,-12),vec(0,0,1),0)
    
    #Left Middle Back
    holoCreate(7,entity():toWorld(vec(-5,21,7)),vec(0.3,0.3,2.8),ang(40,100,0))
    holoClipEnabled(7,1,1)
    holoClip(7,vec(0,0,-10),vec(0,0,1),0)
    
    #Right Middle Back
    holoCreate(8,entity():toWorld(vec(-5,-21,7)),vec(0.3,0.3,2.8),ang(40,-100,0))
    holoClipEnabled(8,1,1)
    holoClip(8,vec(0,0,-10),vec(0,0,1),0)
    
    #Left Middle Front
    holoCreate(9,entity():toWorld(vec(5,21,7)),vec(0.3,0.3,2.8),ang(40,80,0))
    holoClipEnabled(9,1,1)
    holoClip(9,vec(0,0,-10),vec(0,0,1),0)
    
    #Right Middle Front
    holoCreate(10,entity():toWorld(vec(5,-21,7)),vec(0.3,0.3,2.8),ang(40,-80,0))
    holoClipEnabled(10,1,1)
    holoClip(10,vec(0,0,-10),vec(0,0,1),0)
    
    #Left Front
    holoCreate(11,entity():toWorld(vec(14,21,10)),vec(0.3,0.3,3),ang(40,50,0))
    holoClipEnabled(11,1,1)
    holoClip(11,vec(0,0,-12),vec(0,0,1),0)
    
    #Right Front
    holoCreate(12,entity():toWorld(vec(14,-21,10)),vec(0.3,0.3,3),ang(40,-50,0))
    holoClipEnabled(12,1,1)
    holoClip(12,vec(0,0,-12),vec(0,0,1),0)
    
    #Left Front Leg Part 2
    holoCreate(13,entity():toWorld(vec(39,31.5,14)),vec(0.23,0.23,3.2),ang(120,5,0))
    holoParent(13,11)
    
    #Right Front Leg Part 2
    holoCreate(14,entity():toWorld(vec(39,-31.5,14)),vec(0.23,0.23,3.2),ang(120,-5,0))
    holoParent(14,12)
    
    #Left Front Leg Part 3
    holoCreate(15,entity():toWorld(vec(70,33,-13.2)),vec(0.18,0.18,4),ang(140,0,0))
    holoParent(15,13)
    
    #Right Front Leg Part 3
    holoCreate(16,entity():toWorld(vec(70,-33,-13.2)),vec(0.18,0.18,4),ang(140,0,0))
    holoParent(16,14)
    
    #Left Back Leg Part 2
    holoCreate(17,entity():toWorld(vec(-35.5,39,14)),vec(0.23,0.23,3.2),ang(-120,-24,0))
    holoParent(17,5)
    
    #Right Back Leg Part 2
    holoCreate(18,entity():toWorld(vec(-35.5,-39,14)),vec(0.23,0.23,3.2),ang(-120,24,0))
    holoParent(18,6)
    
    #Left Back Leg Part 3
    holoCreate(19,entity():toWorld(vec(-65,48.8,-13.2)),vec(0.18,0.18,4),ang(-140,-12,0))
    holoParent(19,17)
    
    #Right Back Leg Part 3
    holoCreate(20,entity():toWorld(vec(-65,-48.8,-13.2)),vec(0.18,0.18,4))
    holoAng(20,ang(-140,12,0))
    holoParent(20,18)
    
    #Left Back Middle Part 2
    holoCreate(21,entity():toWorld(vec(-9,43,7)),vec(0.23,0.23,2.6),ang(-40,100,0))
    holoParent(21,7)
    
    #Right Back Middle Part 2
    holoCreate(22,entity():toWorld(vec(-9,-43,7)),vec(0.23,0.23,2.6),ang(-40,-100,0))
    holoParent(22,8)
    
    #Left Front Middle Part 2
    holoCreate(23,entity():toWorld(vec(8.3,40,7)),vec(0.23,0.23,2.6),ang(-30,80,0))
    holoParent(23,9)
    
    #Right Front Middle Part 2
    holoCreate(24,entity():toWorld(vec(8.3,-40,7)),vec(0.23,0.23,2.6),ang(-30,-80,0))
    holoParent(24,10)
    
    #Left Front Middle Part 3
    holoCreate(25,entity():toWorld(vec(10.3,51,-16)),vec(0.18,0.18,1.8),ang(-20,80,0))
    holoParent(25,23)
    
    #Right Front Middle Part 3
    holoCreate(26,entity():toWorld(vec(10.3,-51,-16)),vec(0.18,0.18,1.8),ang(-20,-80,0))
    holoParent(26,24)
    
    #Left Back Middle Part 3
    holoCreate(27,entity():toWorld(vec(-11,56.4,-15)),vec(0.18,0.18,1.8),ang(-20,95.5,0))
    holoParent(27,21)
    
    #Right Back Middle Part 3
    holoCreate(28,entity():toWorld(vec(-11,-56.4,-15)),vec(0.18,0.18,1.8),ang(-20,-95.5,0))
    holoParent(28,22)
#Eyes
    holoCreate(29,entity():toWorld(vec(15,-4,5)),vec(0.6,0.6,0.6))
    
    holoCreate(30,entity():toWorld(vec(15,4,5)),vec(0.6,0.6,0.6))
    
    holoCreate(31,entity():toWorld(vec(12,-11,5)),vec(0.4,0.4,0.4))
    
    holoCreate(32,entity():toWorld(vec(12,11,5)),vec(0.4,0.4,0.4))
    
    for (K = 1,4)   {holoParent(K,entity())}
    for (P = 5,12)  {holoParent(P,4)}
    for (L = 5,28)  {holoModel(L,"hq_cylinder")}
    for (S = 29,32) {
        holoModel(S,"hq_sphere")
        holoParent(S,2)
    }
}
