mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix broken MP collisions
This commit is contained in:
parent
d1f481d869
commit
d5d082166c
4 changed files with 7 additions and 2 deletions
|
|
@ -173,7 +173,7 @@ class PathedInterior extends InteriorObject {
|
||||||
return;
|
return;
|
||||||
var newp = this.getAbsPos().getPosition().add(velocity.multiply(timeDelta));
|
var newp = this.getAbsPos().getPosition().add(velocity.multiply(timeDelta));
|
||||||
this.setPosition(newp.x, newp.y, newp.z);
|
this.setPosition(newp.x, newp.y, newp.z);
|
||||||
this.collider.setTransform(this.getTransform());
|
this.setTransform(this.getTransform());
|
||||||
|
|
||||||
if (this.soundChannel != null) {
|
if (this.soundChannel != null) {
|
||||||
var spat = this.soundChannel.getEffect(Spatialization);
|
var spat = this.soundChannel.getEffect(Spatialization);
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ class MainMenuGui extends GuiImage {
|
||||||
versionText.vertSizing = Bottom;
|
versionText.vertSizing = Bottom;
|
||||||
versionText.position = new Vector(502, 61);
|
versionText.position = new Vector(502, 61);
|
||||||
versionText.extent = new Vector(97, 72);
|
versionText.extent = new Vector(97, 72);
|
||||||
versionText.text.text = "<p align=\"center\">1.5.0</p>";
|
versionText.text.text = "<p align=\"center\">1.5.1</p>";
|
||||||
versionText.text.filter = new DropShadow(1.414, 0.785, 0x3333337F, 1, 0, 0.7, 1, true);
|
versionText.text.filter = new DropShadow(1.414, 0.785, 0x3333337F, 1, 0, 0.7, 1, true);
|
||||||
this.addChild(versionText);
|
this.addChild(versionText);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ class RewindFrame {
|
||||||
var mpStates:Array<{
|
var mpStates:Array<{
|
||||||
curState:PIState,
|
curState:PIState,
|
||||||
stopped:Bool,
|
stopped:Bool,
|
||||||
|
position:Vector
|
||||||
}>;
|
}>;
|
||||||
var gemCount:Int;
|
var gemCount:Int;
|
||||||
var gemStates:Array<Bool>;
|
var gemStates:Array<Bool>;
|
||||||
|
|
@ -73,6 +74,7 @@ class RewindFrame {
|
||||||
velocity: s.curState.velocity.clone(),
|
velocity: s.curState.velocity.clone(),
|
||||||
},
|
},
|
||||||
stopped: s.stopped,
|
stopped: s.stopped,
|
||||||
|
position: s.position.clone(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
c.trapdoorStates = [];
|
c.trapdoorStates = [];
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,7 @@ class RewindManager {
|
||||||
velocity: x.velocity.clone(),
|
velocity: x.velocity.clone(),
|
||||||
},
|
},
|
||||||
stopped: @:privateAccess x.stopped,
|
stopped: @:privateAccess x.stopped,
|
||||||
|
position: x.getAbsPos().getPosition().clone(),
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
rf.powerupStates = [];
|
rf.powerupStates = [];
|
||||||
|
|
@ -149,6 +150,8 @@ class RewindManager {
|
||||||
level.pathedInteriors[i].targetTime = rf.mpStates[i].curState.targetTime;
|
level.pathedInteriors[i].targetTime = rf.mpStates[i].curState.targetTime;
|
||||||
level.pathedInteriors[i].velocity.set(rf.mpStates[i].curState.velocity.x, rf.mpStates[i].curState.velocity.y, rf.mpStates[i].curState.velocity.z);
|
level.pathedInteriors[i].velocity.set(rf.mpStates[i].curState.velocity.x, rf.mpStates[i].curState.velocity.y, rf.mpStates[i].curState.velocity.z);
|
||||||
@:privateAccess level.pathedInteriors[i].stopped = rf.mpStates[i].stopped;
|
@:privateAccess level.pathedInteriors[i].stopped = rf.mpStates[i].stopped;
|
||||||
|
level.pathedInteriors[i].setPosition(rf.mpStates[i].position.x, rf.mpStates[i].position.y, rf.mpStates[i].position.z);
|
||||||
|
level.pathedInteriors[i].setTransform(level.pathedInteriors[i].getTransform());
|
||||||
}
|
}
|
||||||
var pstates = rf.powerupStates.copy();
|
var pstates = rf.powerupStates.copy();
|
||||||
var lmstates = rf.landMineStates.copy();
|
var lmstates = rf.landMineStates.copy();
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue