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 »

Hey there... been away for a week, on vacation. Got back and did a few tests, and wanted to let everybody know that a Tolerance value of 0 often causes weapons to lock out and never finish aiming conditions "return(TRUE)". After having done some tests, this appears to occur even if I raise the spin on the guns up to absurd levels (i.e., it shouldn't have any problems maintaining aim).

I don't think this is a "problem", per se, but thought it would be useful for modders to know that Tolerance values need to be about 500 or higher (that's about 2 degrees of arc) in order to operate reliably. I haven't taken a close look at the source on this to find out what the default value is.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

Thanks, this might be handy.
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

Shouldn't it? I mean 0 would mean no tolerance... Can you not use a similarly low tolerance value that gives the illusion of no tolerance while actually having enough to return true conditions?
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Well, as I've said, 500 seems to be the bare minimum to ensure adequate functionality. I've also found out that using the aiming-restriction cones requires a special scripting hack in BOS in order to operate 100% reliably, but it's all very trivial now that I know what is required.
Post Reply

Return to “Engine”