This is the code I wrote for a custom bow, useable in the Half Life: Alyx campaign.
It can be a bit messy in places but there are plenty of features and workarounds that could transferrable for other addons.
Keep in mind this is only the code so you can see how it works. Other assets like textures, models, prefabs etc. aren't included in this repo.
The entire mod can be downloaded here:
https://steamcommunity.com/sharedfiles/filedetails/?id=2214920274
If you have any questions please let me know in the comments there.