@name 
@inputs 
@outputs 
@persist [R G B]:number [A P C D E F K H]:entity [B1 B2 B3 B4 B5 B6 B7 B8]:number
@trigger 

if(first()){
    R = 255
    G = 34
    B = 200
    Vector = vec(R,G,B)
    Mat = "models/props_debris/building_template010a"
    
    #// Useless Stuff for David
  A =  propSpawn("models/props_borealis/bluebarrel001.mdl",entity():pos() + vec(0,30,0),1)
  P =  propSpawn("models/props_borealis/bluebarrel001.mdl",entity():pos() + vec(0,60,0),1)
  C =  propSpawn("models/props_borealis/bluebarrel001.mdl",entity():pos() + vec(0,90,0),1)
  D =  propSpawn("models/props_borealis/bluebarrel001.mdl",entity():pos() + vec(0,120,0),1)
  E =  propSpawn("models/props_borealis/bluebarrel001.mdl",entity():pos() + vec(0,150,0),1)
  F =  propSpawn("models/props_borealis/bluebarrel001.mdl",entity():pos() + vec(0,180,0),1)
  K =  propSpawn("models/props_borealis/bluebarrel001.mdl",entity():pos() + vec(0,210,0),1)
  H =  propSpawn("models/props_borealis/bluebarrel001.mdl",entity():pos() + vec(0,240,0),1)
A:setMaterial(Mat)
P:setMaterial(Mat)
C:setMaterial(Mat)
D:setMaterial(Mat)
E:setMaterial(Mat)
F:setMaterial(Mat)
K:setMaterial(Mat)
H:setMaterial(Mat)

if(R>G&R>B){
    print("test")
    if(G>B){
       
        G1 = B * 0.9
        G2 = B * 0.8
        G3 = B * 0.7
        G4 = B * 0.6
        G5 = B * 0.5
        G6 = B * 0.4
        G7 = B * 0.3
        G8 = B * 0.2
}
    if(B>G){
        print("test2")
        B1 = G * 0.5
        B2 = B1 * 0.4
        B3 = B2 * 0.3
        B4 = B3 * 0.2
        B5 = B4 * 0.15
        B6 = B5 * 0.1
        B7 = B6 * 0.05
        B8 = B7 * 0.0
}
}
if(G>R&G>B){
    if(R>B){
        R1 = B * 0.9
        R2 = B * 0.8
        R3 = B * 0.7
        R4 = B * 0.6
        R5 = B * 0.5
        R6 = B * 0.4
        R7 = B * 0.3
        R8 = B * 0.2
}
    if(B>R){
        B1 = R * 0.9
        B2 = R * 0.8
        B3 = R * 0.7
        B4 = R * 0.6
        B5 = R * 0.5
        B6 = R * 0.4
        B7 = R * 0.3
        B8 = R * 0.2
}
}


print(B1)
print(B2)



A:setColor(R,G,B1)
P:setColor(R,G,B2)
C:setColor(R,G,B3)
D:setColor(R,G,B4)
E:setColor(R,G,B5)
F:setColor(R,G,B6)
K:setColor(R,G,B7)
H:setColor(R,G,B8)



}
runOnTick(1)
Y = owner():aimEntity():getColor()
print(Y, _HUD_PRINTCENTER)
