Integrate source airborne tilt and logical-root rendering
This commit is contained in:
1 parent
a61f1b0284
commit
27be8ed630
36 files changed
+1953
-62
No files matched your search
@@ -65,14 +65,12 @@ public sealed class PlayerSceneBinding : IDisposable
|
||||
if(Rocketship is{Mounted:true} rocket)
|
||||
{
|
||||
//43DF70 copies passenger transforms and reasserts ship ownership.
|
||||
player.ApplyAuthoredTransform(rocket.Root,rocket.Rotation.Y);
|
||||
player.ApplyAuthoredTransform(rocket.Root,rocket.Rotation);
|
||||
director.TransferControl(rocket.Actor);
|
||||
if(player.InputAfterPlayerUpdate&&VehicleControl())rocket.StepInput(input,FixedStepClock.Step);
|
||||
}
|
||||
if (player.GadgetMode==0 && player.Grounded && director.FindActor(tag) is{} actor) actor.Animation="STOP";
|
||||
var rotation=director.FindActor(tag)?.Rotation ?? Vector3.Zero;
|
||||
director.SyncActor(tag,player.ActorRoot,Rocketship is{Mounted:true} vehicle?vehicle.Rotation:player.TracksBubbleOrientation
|
||||
? new(player.Pitch,player.Yaw,player.Roll) : rotation with{Y=player.Yaw});
|
||||
director.SyncActor(tag,player.ActorRoot,player.Rotation);
|
||||
return acceptsInput;
|
||||
}
|
||||
|
||||
@@ -115,7 +113,6 @@ public sealed class PlayerSceneBinding : IDisposable
|
||||
player.LeaveRocketship(Rocketship.CameraEye);
|
||||
if(director.FindActor(tag) is{} rider){rider.Animation="FALL";director.TransferControl(rider);}
|
||||
}
|
||||
if (item==0 && director.FindActor(tag) is{} actor) player.SeedBubbleTilt(actor.Rotation);
|
||||
//The display tile remains available for Practice outside the bounded
|
||||
//live scene; unsupported selection must not invent a Jimmy flight mode.
|
||||
player.GadgetMode=item==1&&Rocketship==null||item==4&&Scooter==null?-1:GadgetScreen.EquippedMode(item);
|
||||
@@ -164,7 +161,7 @@ public sealed class PlayerSceneBinding : IDisposable
|
||||
private void Transform(DirectorActor actor)
|
||||
{
|
||||
if (string.Equals(actor.Tag, tag, StringComparison.OrdinalIgnoreCase))
|
||||
player.ApplyAuthoredTransform(actor.Position, actor.Rotation.Y);
|
||||
player.ApplyAuthoredTransform(actor.Position, actor.Rotation);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
Reference in new issue
Block a user