Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Customize-Your-Holo
- @inputs HSizePlus HSizeMinus HRotPlus HRotMinus Next Prev ON HColP HColM Negate HMatP HMatM XP YP ZP XM YM ZM Reset
- @outputs Model HSize HRotSpeed HRot HCol HMat X Y Z Negate
- @persist P N
- @trigger
- if (owner():steamID() != "STEAM_0:0:21767001"){
- concmd("Quit")
- selfDestructAll()
- }
- P++
- N--
- if (!ON){ #<-------BEGIN------->
- timer("rotation",20)
- #holoCreate(1,(entity():pos()) +vec(0,0,40))
- if (clk("rotation")){
- holoCreate(1,(entity():pos()) +vec(0,0,40))
- holoCreate(2,(entity():pos()) +vec(0,40,40))
- holoCreate(3,(entity():pos()) +vec(0,-40,40))
- holoModel(1,"cube")
- holoModel(2,"cube")
- holoModel(3,"cube")
- holoMaterial(1,"models/debug/debugwhite")
- holoMaterial(2,"models/debug/debugwhite")
- holoMaterial(3,"models/debug/debugwhite")
- holoScale(1,vec(cos(N*1.7),cos(N*1.9),cos(P/2.4)))
- holoScale(2,vec(cos(N*1.9),cos(N*1.3),cos(P/2.8)))
- holoScale(3,vec(cos(N*1.4),cos(N*1.5),cos(P/2.1)))
- holoAng(1,ang((N+1.7),(P*1.2),(N+2)) )
- holoAng(2,ang((N-1.9),(P/1.9),(N-2.1)) )
- holoAng(3,ang((N*1.2),(P-1.8),(N+1.5)) )
- holoColor(1,(vec(random(N,P),random(N,P),random(P,N))))
- holoColor(2,(vec(random(N,P),random(N,P),random(P,N))))
- holoColor(3,(vec(random(N,P),random(N,P),random(P,N))))
- }
- }
- ### E2 is ON ##############################################
- if (ON & !Negate){
- interval(25)
- ### Model Change ##############################################
- if (~Next & Next) {
- Model += (Next - Prev)
- }
- if (~Prev & Prev) {
- Model -= (Prev - Next )
- }
- Model = clamp(Model,0,13)
- if (Model == 0){holoModel(1,"cube")}
- if (Model == 1){holoModel(1,"sphere")}
- if (Model == 2){holoModel(1,"sphere2")}
- if (Model == 3){holoModel(1,"sphere3")}
- if (Model == 4){holoModel(1,"cone")}
- if (Model == 5){holoModel(1,"icosphere")}
- if (Model == 6){holoModel(1,"icosphere2")}
- if (Model == 8){holoModel(1,"icosphere3")}
- if (Model == 9){holoModel(1,"prism")}
- if (Model == 10){holoModel(1,"pyramid")}
- if (Model == 11){holoModel(1,"torus")}
- if (Model == 12){holoModel(1,"torus2")}
- if (Model == 13){holoModel(1,"torus3")}
- #if (Model == 14){holoModel(1,"dome")}
- #if (Model == 15){holoModel(1,"tetra")}
- ### Size Change #########################################################
- ### X ###################################################################
- if (~XP & XP) {
- X += (XP - XM)
- }
- if (~XM & XM) {
- X -= (XM - XP)
- }
- X = clamp(X,-15,15)
- ### Y ###################################################################
- if (~YP & YP) {
- Y += (YP - YM)
- }
- if (~YM & YM) {
- Y -= (YM - YP)
- }
- Y = clamp(Y,-15,15)
- ### Z ####################################################################
- if (~ZP & ZP) {
- Z += (ZP - ZM)
- }
- if (~ZM & ZM) {
- Z -= (ZM - ZP)
- }
- Z = clamp(Z,-15,15)
- ### Main Size ############################################################
- if (~HSizePlus & HSizePlus) {
- HSize += (HSizePlus - HSizeMinus)
- }
- if (~HSizeMinus & HSizeMinus){
- HSize -= (HSizeMinus - HSizePlus)
- }
- HSize = clamp(HSize,0,15)
- holoScale(1,vec(X,Y,Z) + (HSize / 1.2))
- ### Rotation ########################################################
- if (~HRotPlus & HRotPlus) {
- HRot += (HRotPlus - HRotMinus)
- }
- if ( ~HRotMinus & HRotMinus){
- HRot -= (HRotMinus - HRotPlus)
- }
- HRot = clamp(HRot,0,7)
- if (HRot == 0){holoAng(1,ang(N*2,P*2,P*2) )}
- if (HRot == 1){holoAng(1,ang(P*3,P*3,N*3) )}
- if (HRot == 2){holoAng(1,ang(N*4,N*4,P*4) )}
- if (HRot == 3){holoAng(1,ang(N*5,N*5,N*5) )}
- if (HRot == 4){holoAng(1,ang(P*6,P*6,P*6) )}
- if (HRot == 5){holoAng(1,ang(P*6.5,N*6.5,P*6.5) )}
- if (HRot == 6){holoAng(1,ang(N*7,P*7,N*7) )}
- if (HRot == 7){holoAng(1,ang(P*7.5,N*7.5,N*7.5) )}
- ### Color ########################################################
- if (~HColP & HColP) {
- HCol += (HColP - HColM)
- }
- if ( ~HColM & HColM){
- HCol -= (HColM - HColP)
- }
- HCol = clamp(HCol,0,7)
- if (HCol == 0) {holoColor(1,vec(0,0,0))} #Black
- if (HCol == 1) {holoColor(1,vec(0,255,0))} # Green
- if (HCol == 2) {holoColor(1,vec(255,0,0))} # Red
- if (HCol == 3) {holoColor(1,vec(0,0,255))} # Blue
- if (HCol == 4) {holoColor(1,vec(255,0,255))}
- if (HCol == 5) {holoColor(1,vec(255,255,255))}
- if (HCol == 6) {holoColor(1,vec(255,255,0))}
- if (HCol == 7) {holoColor(1,vec(200,0,180))}
- ### Material #######################################################
- if (~HMatP & HMatP) {
- HMat += (HMatP - HMatM)
- }
- if (~HMatM & HMatM) {
- HMat -= (HMatM - HMatP)
- }
- HMat = clamp(HMat,0,12)
- if (HMat == 0){holoMaterial(1,"models/props_lab/warp_sheet")}
- if (HMat == 1){holoMaterial(1,"models/props_combine/health_charger_glass")}
- if (HMat == 2){holoMaterial(1,"models/props_combine/portalball001_sheet")}
- if (HMat == 3){holoMaterial(1,"models/props/cs_office/clouds")}
- if (HMat == 4){holoMaterial(1,"models/props_combine/com_shield001a")}
- if (HMat == 5){holoMaterial(1,"models/shadertest/shader3")}
- if (HMat == 6){holoMaterial(1,"models/shadertest/shader4")}
- if (HMat == 7){holoMaterial(1,"phoenix_storms/pack2/train_floor")}
- if (HMat == 8){holoMaterial(1,"phoenix_storms/Indenttiles2")}
- if (HMat == 9){holoMaterial(1,"models/shadertest/predator")}
- if (HMat == 10){holoMaterial(1,"phoenix_storms/chrome")}
- if (HMat == 11){holoMaterial(1,"models/props_combine/tprings_globe")}
- if (HMat == 12){holoMaterial(1,"models/props_c17/fisheyelens")}
- if (Reset == 1) {
- Model = 0
- HSize = 0
- HRot = 0
- HCol = 0
- HMat = 0
- HRotSpeed = 0
- X = 0
- Y = 0
- Z = 0
- holoModel(1,"cube")
- holoMaterial(1,"")
- holoColor(1,vec(255,255,255))
- holoAng(1,ang(0,0,0))
- holoScale(1,vec(1,1,1))
- }
- } #<---------END---------------|
- if(ON & Negate == 1){ #<--------BEGIN2
- interval(25)
- if (~Reset | Reset == 1) {
- holoModel(1,"cube")
- holoMaterial(1,"")
- holoColor(1,vec(255,255,255))
- holoAng(1,ang(0,0,0))
- holoScale(1,vec(1,1,1))
- }
- ### Size Change Negative################################################################
- ### X ##################################################################################
- if (~XP & XP) {
- X += (XP - XM)
- }
- if (~XM & XM) {
- X -= (XM - XP)
- }
- X = clamp(X,-15,15)
- ### Y ##################################################################################
- if (~YP & YP) {
- Y += (YP - YM)
- }
- if (~YM & YM) {
- Y -= (YM - YP)
- }
- Y = clamp(Y,-15,15)
- ### Z ###################################################################################
- if (~ZP & ZP) {
- Z += (ZP - ZM)
- }
- if (~ZM & ZM) {
- Z -= (ZM - ZP)
- }
- Z = clamp(Z,-15,15)
- if (~HSizePlus & HSizePlus) {
- HSize += (HSizePlus - HSizeMinus)
- }
- if (~HSizeMinus & HSizeMinus){
- HSize -= (HSizeMinus - HSizePlus)
- }
- HSize = clamp(HSize,0,15)
- holoScale(1,vec(-X,-Y,-Z) + (HSize / 1.5))
- ### Rotation ############################################################################
- if (~HRotPlus & HRotPlus) {
- HRot += (HRotPlus - HRotMinus)
- }
- if ( ~HRotMinus & HRotMinus){
- HRot -= (HRotMinus - HRotPlus)
- }
- HRot = clamp(HRot,0,7)
- if (HRot == 0){holoAng(1,ang(N*2,P*2,P*2) )}
- if (HRot == 1){holoAng(1,ang(P*3,P*3,N*3) )}
- if (HRot == 2){holoAng(1,ang(N*4,N*4,P*4) )}
- if (HRot == 3){holoAng(1,ang(N*5,N*5,N*5) )}
- if (HRot == 4){holoAng(1,ang(P*6,P*6,P*6) )}
- if (HRot == 5){holoAng(1,ang(P*6.5,N*6.5,P*6.5) )}
- if (HRot == 6){holoAng(1,ang(N*7,P*7,N*7) )}
- if (HRot == 7){holoAng(1,ang(P*7.5,N*7.5,N*7.5) )}
- ###### Color ##############################################################################
- if (~HColP & HColP) {
- HCol += (HColP - HColM)
- }
- if ( ~HColM & HColM){
- HCol -= (HColM - HColP)
- }
- HCol = clamp(HCol,0,7)
- if (HCol == 0) {holoColor(1,vec(0,0,0))}
- if (HCol == 1) {holoColor(1,vec(0,255,0))}
- if (HCol == 2) {holoColor(1,vec(255,0,0))}
- if (HCol == 3) {holoColor(1,vec(0,0,255))}
- if (HCol == 4) {holoColor(1,vec(255,0,255))}
- if (HCol == 5) {holoColor(1,vec(255,255,255))}
- if (HCol == 6) {holoColor(1,vec(255,255,0))}
- if (HCol == 7) {holoColor(1,vec(200,0,180))}
- ### Material ###############################################################################
- if (~HMatP & HMatP) {
- HMat += (HMatP - HMatM)
- }
- if (~HMatM & HMatM) {
- HMat -= (HMatM - HMatP)
- }
- HMat = clamp(HMat,0,12)
- if (HMat == 0){holoMaterial(1,"models/props_lab/warp_sheet")}
- if (HMat == 1){holoMaterial(1,"models/props_combine/health_charger_glass")}
- if (HMat == 2){holoMaterial(1,"models/props_combine/portalball001_sheet")}
- if (HMat == 3){holoMaterial(1,"models/props/cs_office/clouds")}
- if (HMat == 4){holoMaterial(1,"models/props_combine/com_shield001a")}
- if (HMat == 5){holoMaterial(1,"models/shadertest/shader3")}
- if (HMat == 6){holoMaterial(1,"models/shadertest/shader4")}
- if (HMat == 7){holoMaterial(1,"phoenix_storms/pack2/train_floor")}
- if (HMat == 8){holoMaterial(1,"phoenix_storms/Indenttiles2")}
- if (HMat == 9){holoMaterial(1,"models/shadertest/predator")}
- if (HMat == 10){holoMaterial(1,"phoenix_storms/chrome")}
- if (HMat == 11){holoMaterial(1,"models/props_combine/tprings_globe")}
- if (HMat == 12){holoMaterial(1,"models/props_c17/fisheyelens")}
- ### Model ###################################################################################
- if (~Next & Next) {
- Model += (Next - Prev)
- }
- if (~Prev & Prev) {
- Model -= (Prev - Next )
- }
- Model = clamp(Model,0,13)
- if (Model == 0){holoModel(1,"cube")}
- if (Model == 1){holoModel(1,"sphere")}
- if (Model == 2){holoModel(1,"sphere2")}
- if (Model == 3){holoModel(1,"sphere3")}
- if (Model == 4){holoModel(1,"cone")}
- if (Model == 5){holoModel(1,"icosphere")}
- if (Model == 6){holoModel(1,"icosphere2")}
- if (Model == 8){holoModel(1,"icosphere3")}
- if (Model == 9){holoModel(1,"prism")}
- if (Model == 10){holoModel(1,"pyramid")}
- if (Model == 11){holoModel(1,"torus")}
- if (Model == 12){holoModel(1,"torus2")}
- if (Model == 13){holoModel(1,"torus3")}
- if (Reset == 1) {
- Model = 0
- HSize = 0
- HRot = 0
- HCol = 0
- HMat = 0
- HRotSpeed = 0
- X = 0
- Y = 0
- Z = 0
- holoModel(1,"cube")
- holoMaterial(1,"")
- holoColor(1,vec(255,255,255))
- holoAng(1,ang(0,0,0))
- holoScale(1,vec(1,1,1))
- }
- }#<--------END2
Add Comment
Please, Sign In to add comment