I want to make missiles spawn a little bit to the right because I replaced the rocket launcher model and it's not centered.
I went to this function in weapons.qc:
More specifically here:
And changed those last three values with more or less positive results. The problem is that because it takes into account self.origin, when the player rotates around, the spawning point for the missile also changes.
I also tried changing self.origin for self.weaponmodel.origin (in an attempt to use the weapon model itself as the origin to start the v_forward from) but it doesn't compute.
This looks like a recurrent modification so I'm sure there's an easy and well researched answer somewhere in here. Browsed the forums for some time but couldn't find this info. Any help appreciated!
I went to this function in weapons.qc:
Code:
void() W_FireRocket
More specifically here:
Code:
setorigin (missile, self.origin + v_forward*8 + '0 0 16');
And changed those last three values with more or less positive results. The problem is that because it takes into account self.origin, when the player rotates around, the spawning point for the missile also changes.
I also tried changing self.origin for self.weaponmodel.origin (in an attempt to use the weapon model itself as the origin to start the v_forward from) but it doesn't compute.
This looks like a recurrent modification so I'm sure there's an easy and well researched answer somewhere in here. Browsed the forums for some time but couldn't find this info. Any help appreciated!
Comment