Is there a way to get aim to be above/below targets?
Moderator: Moderators
Is there a way to get aim to be above/below targets?
Kind of like an aimforzoffset (+/- aims it high/low of target) tag?
- Pressure Line
- Posts: 2283
- Joined: 21 May 2007, 02:09
Weapons don't care which way the unit is turned, they don't look at the piece structure at all (other than checking the position but not the orientation of the QueryWeapon piece). They just assume that AimWeapon returning true means the barrel is lined up. All shots are spawned facing from the QueryWeapon piece to the target unless fixedLauncher (SVN only) or sweepFire are set for weapons that use them.
I know, but the 'firing solution' if you will ought to be computed from the AimFrom point, and then emitted from the query point, a difference between the two could be used in OTA to force a weapon to over/under fire.KDR_11k wrote:Weapons don't care which way the unit is turned, they don't look at the piece structure at all (other than checking the position but not the orientation of the QueryWeapon piece). They just assume that AimWeapon returning true means the barrel is lined up. All shots are spawned facing from the QueryWeapon piece to the target unless fixedLauncher (SVN only) or sweepFire are set for weapons that use them.
Well, I didn't do it like that because I wanted the AimFromWeapon patch to fix stuff, not break it. Existing scripts can have pretty nonsense AimFromWeapon settings so with the patch there's a big chance they might end up aiming completely wrong. I figured it wouldn't break anything important if it's purely cosmetic (doesn't matter if the turret looks like it's aiming the wrong way as long as the shots go the right way) but if the shots would miss based on the AimFromWeapon piece the patch would have been unacceptable.