My friend has been working on the SWEPs for our project but he is sick so I am tweaking a current swep we have now. The weapon shoots a grenade like a m203 type grenade but it shoots from the center of the screen.
I have downloaded a bunch of other weapons to check their code, but I can’t seem to figure out how to change where the projectile comes out at. I thought it would be the SetPos but the only thing I have seen different in the SWEPs SetPos is
[lua]ent:SetPos (self.Owner:EyePos() + (self.Owner:GetAimVector() * 14));[/lua]
The multiplier at the end is the only thing I have seen changed. And every time I change that I don’t really see a noticeable change (mostly because I don’t know what it changes).
Anyone offer me some helpful advice?