function main:mechanics/effects/screenshake/start {duration:5,strength:10}

execute if score .gauge gunner matches ..3 run playsound atmos:cannon_1_loud master @a ~ ~ ~ 10 1.5 1
execute if score .gauge gunner matches 4..6 run playsound atmos:cannon_1_loud master @a ~ ~ ~ 10 1 1
execute if score .gauge gunner matches 7.. run playsound atmos:cannon_1_loud master @a ~ ~ ~ 10 0.5 1
execute if entity @s[tag=gold_skin] run playsound entity.skeleton.converted_to_stray master @a ~ ~ ~ 10 1 1

execute if score .gauge gunner matches ..3 at @s anchored eyes run function main:mechanics/projectile/projectile_item_display {"id":"id1","character":gunner,"type":rc,"distance":120,"texture":"weapons/gunner/gunner_rc_1","size":"0.5f,0.5f,0.5f","translation":"0f,-0.25f,-0.5f","x":"~","y":"~","angle_1":"~","angle_2":"~","pierce":100,"spin":'',"rotation":"0","tags":',"slow_down"',"position":""}
execute if score .gauge gunner matches 4..6 at @s anchored eyes run function main:mechanics/projectile/projectile_item_display {"id":"id1","character":gunner,"type":rc,"distance":120,"texture":"weapons/gunner/gunner_rc_2","size":"0.75f,0.75f,0.75f","translation":"0f,-0.325f,0f","x":"~","y":"~","angle_1":"~","angle_2":"~","pierce":100,"spin":"","rotation":"0","tags":"","position":""}
execute if score .gauge gunner matches 7.. at @s anchored eyes run function main:mechanics/projectile/projectile_item_display {"id":"id1","character":gunner,"type":rc,"distance":120,"texture":"weapons/gunner/gunner_rc_3","size":"1.25f,1.25f,1.25f","translation":"0f,-0.625f,0f","x":"~","y":"~","angle_1":"~","angle_2":"~","pierce":100,"spin":"","rotation":"0","tags":"","position":""}

execute unless score .overclock gunner matches 1.. run scoreboard players set .gauge gunner 0
