@name Auto ACF Gun
@inputs P:wirelink
@outputs Gun1 Gun2 Gun3 Gun4 Reload1 Reload2 Reload3 Reload4
@persist ACT
@trigger 


ACT=P["Active",number]
Driver = P["Entity",entity]:driver()


M1=P["Mouse1",number]
M2=P["Mouse2",number]



if(M1 & $M1){
    
    Gun1 = 1
    timer("gun2",200)}

if(clk("gun2")){
    
    Gun2 = 1
    Gun1 = 0
    Reload1 = 1
timer("gun3",200)
    }

if(clk("gun3")){
    
    Gun2 = 0
    Gun3 = 1
    Reload1 = 0
Reload2 = 1
timer("gun4",200)
}

if(clk("gun4")){
    Gun3 = 0
    Gun4 = 1
    Reload2 = 0
    Reload3 = 1
    timer("gun5",200)
}

if(clk("gun5")){
    Gun4 = 0
    Reload4 = 1
    Reload3 = 0
timer("gun6",200)}


if(clk("gun6")){
    Gun1 = 1
    Reload4 = 0
timer("gun2",200)}
