@name SUPERCRATE!11!!!!!!11!!111!
@persist Flashy
@model models/props/de_nuke/crate_extrasmall.mdl
setName(" ")
if (first()) {
    function vector getRand(Min,Max,High) {
        for (I=1, 100) {
            R=randint(Min,Max)
            G=randint(Min,Max)
            B=randint(Min,Max)
            if (R+G+B<High) {break}
        }
        return vec(R,G,B)
    }
    
}
#if (entity():isFrozen()) {entity():setAlpha(0)} else {entity():setAlpha(256)}
interval(randint(500,750))
if (Flashy) {
    Flashy=0
    entity():setMaterial("")
    entity():setColor(vec(256,256,256))
    
} else {
    Flashy=1
    Min=140
    Max=256
    Color=getRand(100,256,200)
    entity():setMaterial("debug/debugdrawflat")
    entity():setColor(Color)
}
