Getting the fire position for a weapon should be trivial and its proving to be a huge obstacle right now.
I’m holding a models/weapons/w_pist_fiveseven.mdl right?
Edit: originally posted a v_*.mdl, oops
local wep = player.GetAll():GetActiveWeapon()
Msg(wep:LookupAttachment(“muzzle”), wep:LookupAttachment(“muzzle_flash”), wep:LookupBone(“ValveBiped.weapon_bone”), wep:LookupBone(“ValveBiped.flash”))
–output 00nilnil hurrrrrrrr
Yes, the fiveseven has a muzzle_flash attachment and both a ValveBiped.weapon_bone and a ValveBiped.flash bone. Yet how find? I r not no.
Meh, think I figured it out, GetActiveWeapon’s model seems to be a view model not a world model and I have no idea why especially since I’m running from the server.
Doesn’t change the fact that I have no way to get the actual muzzle position of the weapon.
I’ve settled with just getting the player’s right hand bone and applying a constant offset from there (based off of the angle of course)