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/player-lag", -spectator_offset);
|
||||
} else {
|
||||
var server = getprop("/sim/multiplay/txhost");
|
||||
var lag = offset
|
||||
} if (apply_close) {
|
||||
var lag = offset;
|
||||
if (apply_close) {
|
||||
var self = geo.aircraft_position();
|
||||
var x = getprop("/ai/models/multiplayer["~i~"]/position/global-x");
|
||||
var y = getprop("/ai/models/multiplayer["~i~"]/position/global-y");
|
||||
|
@ -29,10 +28,11 @@ var mpCheck = func() {
|
|||
} else {
|
||||
setprop("/ai/models/multiplayer["~i~"]/controls/compensate-lag", 2);
|
||||
setprop("/ai/models/multiplayer["~i~"]/controls/player-lag", lag);
|
||||
};
|
||||
}
|
||||
} else {
|
||||
setprop("/ai/models/multiplayer["~i~"]/controls/compensate-lag", 1);
|
||||
}
|
||||
}
|
||||
i += 1;
|
||||
} else {
|
||||
i = 0;
|
||||
|
|
Loading…
Reference in a new issue