@name Jesus
@outputs 
@persist FloorMDL:string [Pos UP Feetp]:vector [E MDL Ply]:entity
interval(5)
function spawnP(){
    MDL:setPos(E:pos() + vec(0,0,10))
    if(!MDL){
        MDL = propSpawn(FloorMDL,E:pos(),1)
        MDL:setAlpha(0)
    }
}
function setP(L:vector){
    if(MDL){
        MDL:setPos(vec(L:x(),L:y(),-179))
    }
}
if(first()){
    FloorMDL = "models/hunter/plates/plate3x3.mdl"
    E = entity()
    Ply = owner()
    UP = vec(0,0,10) 

}
Pos = Ply:pos()


if(Ply:isAlive()){
    if(Ply:isUnderWater()){
        spawnP()
        setP(Pos)
    }else{
        MDL:propDelete()
    }
}else{
    MDL:propDelete()
}

