bug correction to the lag adjust nasal part, did things wrong when
simplifying the code
This commit is contained in:
parent
563c098452
commit
b304d43d49
1 changed files with 16 additions and 16 deletions
|
@ -15,9 +15,8 @@ var mpCheck = func() {
|
||||||
setprop("/ai/models/multiplayer["~i~"]/controls/compensate-lag", 3);
|
setprop("/ai/models/multiplayer["~i~"]/controls/compensate-lag", 3);
|
||||||
setprop("/ai/models/multiplayer["~i~"]/controls/player-lag", -spectator_offset);
|
setprop("/ai/models/multiplayer["~i~"]/controls/player-lag", -spectator_offset);
|
||||||
} else {
|
} else {
|
||||||
var server = getprop("/sim/multiplay/txhost");
|
var lag = offset;
|
||||||
var lag = offset
|
if (apply_close) {
|
||||||
} if (apply_close) {
|
|
||||||
var self = geo.aircraft_position();
|
var self = geo.aircraft_position();
|
||||||
var x = getprop("/ai/models/multiplayer["~i~"]/position/global-x");
|
var x = getprop("/ai/models/multiplayer["~i~"]/position/global-x");
|
||||||
var y = getprop("/ai/models/multiplayer["~i~"]/position/global-y");
|
var y = getprop("/ai/models/multiplayer["~i~"]/position/global-y");
|
||||||
|
@ -29,10 +28,11 @@ var mpCheck = func() {
|
||||||
} else {
|
} else {
|
||||||
setprop("/ai/models/multiplayer["~i~"]/controls/compensate-lag", 2);
|
setprop("/ai/models/multiplayer["~i~"]/controls/compensate-lag", 2);
|
||||||
setprop("/ai/models/multiplayer["~i~"]/controls/player-lag", lag);
|
setprop("/ai/models/multiplayer["~i~"]/controls/player-lag", lag);
|
||||||
};
|
}
|
||||||
} else {
|
} else {
|
||||||
setprop("/ai/models/multiplayer["~i~"]/controls/compensate-lag", 1);
|
setprop("/ai/models/multiplayer["~i~"]/controls/compensate-lag", 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
i += 1;
|
i += 1;
|
||||||
} else {
|
} else {
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
Loading…
Reference in a new issue