mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix minor, make unreliable completely unordered
This commit is contained in:
parent
ba45a88fbe
commit
967312cb4e
3 changed files with 10 additions and 8 deletions
|
|
@ -360,7 +360,7 @@ class Marble extends GameObject {
|
||||||
this.rollSound.volume = 0;
|
this.rollSound.volume = 0;
|
||||||
this.slipSound.volume = 0;
|
this.slipSound.volume = 0;
|
||||||
this.helicopterSound = AudioManager.playSound(ResourceLoader.getResource("data/sound/use_gyrocopter.wav", ResourceLoader.getAudio,
|
this.helicopterSound = AudioManager.playSound(ResourceLoader.getResource("data/sound/use_gyrocopter.wav", ResourceLoader.getAudio,
|
||||||
this.soundResources), this.getAbsPos().getPosition(), true);
|
this.soundResources), null, true);
|
||||||
this.helicopterSound.pause = true;
|
this.helicopterSound.pause = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -2197,11 +2197,13 @@ class Marble extends GameObject {
|
||||||
if (isHelicopterEnabled(timeState)) {
|
if (isHelicopterEnabled(timeState)) {
|
||||||
this.helicopter.setPosition(x, y, z);
|
this.helicopter.setPosition(x, y, z);
|
||||||
this.helicopter.setRotationQuat(this.level.getOrientationQuat(timeState.currentAttemptTime));
|
this.helicopter.setRotationQuat(this.level.getOrientationQuat(timeState.currentAttemptTime));
|
||||||
this.helicopterSound.pause = false;
|
if (this.controllable)
|
||||||
|
this.helicopterSound.pause = false;
|
||||||
this.helicopter.setScale(this._renderScale);
|
this.helicopter.setScale(this._renderScale);
|
||||||
} else {
|
} else {
|
||||||
this.helicopter.setPosition(1e8, 1e8, 1e8);
|
this.helicopter.setPosition(1e8, 1e8, 1e8);
|
||||||
this.helicopterSound.pause = true;
|
if (this.controllable)
|
||||||
|
this.helicopterSound.pause = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.blastUseTime > timeState.currentAttemptTime) {
|
if (this.blastUseTime > timeState.currentAttemptTime) {
|
||||||
|
|
|
||||||
|
|
@ -47,12 +47,12 @@ class MoveManager {
|
||||||
var maxMoves = 45;
|
var maxMoves = 45;
|
||||||
var maxSendMoveListSize = 30;
|
var maxSendMoveListSize = 30;
|
||||||
|
|
||||||
var serverTargetMoveListSize = 4;
|
var serverTargetMoveListSize = 3;
|
||||||
var serverMaxMoveListSize = 16;
|
var serverMaxMoveListSize = 8;
|
||||||
var serverAvgMoveListSize = 4.0;
|
var serverAvgMoveListSize = 3.0;
|
||||||
var serverSmoothMoveAvg = 0.15;
|
var serverSmoothMoveAvg = 0.15;
|
||||||
var serverMoveListSizeSlack = 1.5;
|
var serverMoveListSizeSlack = 1.5;
|
||||||
var serverDefaultMinTargetMoveListSize = 4;
|
var serverDefaultMinTargetMoveListSize = 3;
|
||||||
var serverAbnormalMoveCount = 0;
|
var serverAbnormalMoveCount = 0;
|
||||||
var serverLastRecvMove = 0;
|
var serverLastRecvMove = 0;
|
||||||
var serverLastAckMove = 0;
|
var serverLastAckMove = 0;
|
||||||
|
|
|
||||||
|
|
@ -246,7 +246,7 @@ class Net {
|
||||||
}, 5000);
|
}, 5000);
|
||||||
|
|
||||||
clientDatachannel = client.createDatachannel("mp");
|
clientDatachannel = client.createDatachannel("mp");
|
||||||
clientDatachannelUnreliable = client.createDatachannelWithOptions("unreliable", false, null, 600);
|
clientDatachannelUnreliable = client.createDatachannelWithOptions("unreliable", true, null, 600);
|
||||||
|
|
||||||
var closing = false;
|
var closing = false;
|
||||||
var openFlags = 0;
|
var openFlags = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue