scoreboard players set @a[scores={magScout=4},nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"scoutrifle"}}}}] shiftreload 0

execute as @a[scores={shiftreload=2..},nbt=!{SelectedItem:{components:{"minecraft:custom_data":{weapon:"scoutrifle"}}}},tag=scoutReloading] run function ray_demo:reload/scout/reset
execute as @a[scores={shiftreload=0},nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"scoutrifle"}}}},tag=scoutReloading] run function ray_demo:reload/scout/reset
execute as @a[scores={shiftreload=2..},nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"scoutrifle"}}}},tag=!scoutReloading] run function ray_demo:reload/scout/reset
execute as @a[scores={shiftreload=2..,sniperCD=1..},nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"scoutrifle"}}}}] run function ray_demo:reload/scout/reset
execute as @a[scores={shiftreload=1..,magScout=..4,sniperCD=..0,.308=1..},nbt={SelectedItem:{components:{"minecraft:custom_data":{weapon:"scoutrifle"}}}}] run tag @s add scoutReloading