So im developing a custom wep base which does not use the default viewmodel entities (the predicted ones) it rather uses custom clientside entities combined together (arms and weapon) so i can have a better control over each ones animations, particles, sounds and stuff. The thing is since im not using those default entities, when i call GetShootPos() clientside it returns the center of the player’s view since there is no viewmodel with a muzzle attachment to look for. Does anybody know how exactly GetShootPos() works? I did try to find it on the SDK source files but i didnt find anything to replicate the code using my own clientside entities on it.
pic of the bullet trail coming from the middle of the screen: