So, while I was making my DM mod (which I will post at some point), I changed the shotgun to have no spread (to make it a slug). After testing it, I realized that it shot a bit lower than the crosshair.
Looking through the code, I found this line in weapons.qc on line 254 in FireBullets:
src_z = self.absmin_z + self.size_z * 0.7;
To fix the inaccuracy, I found that replacing the 0.7 with 0.85 seemed to work very well:
src_z = self.absmin_z + self.size_z * 0.85;
Hope this is useful to someone
.
Looking through the code, I found this line in weapons.qc on line 254 in FireBullets:
src_z = self.absmin_z + self.size_z * 0.7;
To fix the inaccuracy, I found that replacing the 0.7 with 0.85 seemed to work very well:
src_z = self.absmin_z + self.size_z * 0.85;
Hope this is useful to someone

Comment