@name My own box
@inputs 
@persist Prop:entity 
@outputs 
interval(100)

E = owner():keyUse()
Yaw = round(owner():angles():yaw()/45) * 45

if (changed(E) & E) {owner():soundPlay(1,0,"vo/npc/male01/overhere01.wav")}

if (changed(owner():isCrouch()) & owner():isCrouch()) {
    Prop = propSpawn("models/props/de_nuke/crate_small.mdl",1)
    Prop:setPos(owner():pos() + vec(0,0,6))
    Prop:setAng(floor(owner():velL():length()) ? owner():angles() : ang(0,Yaw,0))
}
