Tolerance

Tolerance

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Tolerance

Post by Argh »

Version 0.79 had "tight" tolerance- it actually respected that value properly.

Version 0.79.2 doesn't seem to respect that value any more. Weapons are shooting when they're nowhere near their tolerance values again.

What's up with this? Making people actually update their Tolerance values in their games so that weapons, beamweapons in particular, actually behave correctly, seems like a reasonable tradeoff for any immediate issues this caused.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Tolerance

Post by KDR_11k »

You mean enemies can walk out of the tolerance cone and the weapon doesn't reaim until it hits the 15 frame timer?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: Tolerance

Post by Argh »

Is that what it is?

Meh. All I know is that I had to re-adjust tolerance for P.U.R.E... now it's back to being screwed up visually again.
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Tolerance

Post by KDR_11k »

Tolerance determines the angle of the cone in which the return 1 of the AimWeapon function is valid, if the target leaves that cone the return 1 becomes invalid and the weapon must aim at the target again. Spring will also force a re-aim every 15 frames. If your weapons end up aiming at the wrong spot when the target doesn't move something's wrong with your aiming script.
Post Reply

Return to “Engine”