tag @s remove hunter_rapid_shot_arrow
tag @s add hunter_rapid_shot_arrow_has_been_shot
kill @e[type=arrow,tag=hunter_rapid_shot_arrow_has_been_shot,nbt={inGround:1b}]
playsound minecraft:item.crossbow.shoot master @a[distance=..8] ~ ~ ~ 0.3 1.4

data modify entity @s Owner set from entity @p[scores={limitbreak_chosen_class=3},tag=hunter_quick_shot_active] UUID

execute store result score .x velocity run data get entity @s Pos[0] 1000
execute store result score .y velocity run data get entity @s Pos[1] 1000
execute store result score .z velocity run data get entity @s Pos[2] 1000

tp @s ^ ^ ^0.1
 
execute store result score .dx velocity run data get entity @s Pos[0] 1000
execute store result score .dy velocity run data get entity @s Pos[1] 1000
execute store result score .dz velocity run data get entity @s Pos[2] 1000
 
execute store result entity @s Motion[0] double 0.03 run scoreboard players operation .dx velocity -= .x velocity
execute store result entity @s Motion[1] double 0.03 run scoreboard players operation .dy velocity -= .y velocity
execute store result entity @s Motion[2] double 0.03 run scoreboard players operation .dz velocity -= .z velocity

data modify entity @s Rotation set from entity @p[scores={limitbreak_chosen_class=3},tag=hunter_quick_shot_active] Rotation