Before we use the
Soldier_Shoot helper function provided by the sandbox, we should implement our soldier shooting by hand. Overall, the process of shooting a bullet requires a look up of the bone position and rotation for the soldier, creating a physics representation for the bullet, attaching a particle system to the bullet, launching the profile, and then handling the impact of a bullet with any other physics simulated object.
Getting a bone position requires passing a sandbox object or mesh to the
GetBonePosition also works for any attached object that contains bones as well. This allows you to retrieve the bone position of a bone within the weapon while it is ...