Aha, I think I'm close to catching the bug by the balls
, now I have few versions of most simple doctrine like this:
var A
If Init then {
A = 45
} ELSE {
Debugout "A"
Debugvalueout A
SetPitch A
} ENDIF
which works or not with a change of single line, or even THE SAME doctrine that sometimes works, and another time fails, and another time works 50% :-/. Tested on RAM missiles (don't know if this matters, same problem was with MANPADs but was easily fixed).
For example the first doctrine usually fails (A = 0.0000), but this one:
var A
var B
If Init then {
A = 15
B = 45
} ELSE {
Debugout "A, B:"
Debugvalueout A
Debugvalueout B
SetPitch B
} ENDIF
usually works. What changed ? Added second variable B and that's all...
And in some cases even this doesn't work:
var A
If Init then {
A = 15
} ELSE {
Debugout "A"
Debugvalueout A
SetPitch 45
} ENDIF
debugout gives 0.0000 and missile fly in level and doesn't pull up - after direct command setpitch 45 !!!
If this isn't bug then I don't know what's up :-/
I'll ask you Luftwolf to try this, maybe it's on my computer only, but if you find them not working (or sometimes working, sometimes not) then I'll send it to patch suggestions & Battlefront's technical problems forums...