Replays show SAMs and the world as it was at raid time, film clock for exports; clouds and fog polish; shared texture generator, new missile bodies, octagonal wheels, tracked sides, charred wrecks (#55 part 1) (fork patch 33)
build / mod (push) Successful in 3m54s
build / mod (push) Successful in 3m54s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -477,10 +477,11 @@ impl Sim {
|
||||
self.fires.extinguish();
|
||||
n
|
||||
}
|
||||
}
|
||||
|
||||
/// A wreck: the hull sunk and turned, the launcher or turret thrown down beside it.
|
||||
pub(super) fn draw_wreck(&self, i: usize, out: &mut Out) {
|
||||
let sam = &self.sams[i];
|
||||
/// A wreck: the hull sunk and turned, the launcher or turret thrown down beside it (a live system's, or a replay's ghost).
|
||||
pub(super) fn draw_wreck_of(sam: &Sam, out: &mut Out) {
|
||||
{
|
||||
let s = sam.kind.spec().scale;
|
||||
let tilt = DQuat::from_rotation_y(sam.heading) * DQuat::from_rotation_z(0.12) * DQuat::from_rotation_x(-0.06);
|
||||
let hull = sam.pos + DVec3::Y * (0.5 * s - 0.35);
|
||||
@@ -488,9 +489,9 @@ impl Sim {
|
||||
let thrown = DQuat::from_rotation_y(sam.heading + 1.1) * DQuat::from_rotation_z(1.2);
|
||||
let parts = &sam.kind.spec().parts;
|
||||
let (body, part) = (parts.body, parts.launcher.or(parts.pack));
|
||||
out.model(sam.id, body, hull, tilt, s, false);
|
||||
out.model(sam.id, super::units::wreck(body), hull, tilt, s, false);
|
||||
if let Some(part) = part {
|
||||
out.model(sam.id + 1, part, sam.pos + side + DVec3::Y * 0.4 * s, thrown, s, false);
|
||||
out.model(sam.id + 1, super::units::wreck(part), sam.pos + side + DVec3::Y * 0.4 * s, thrown, s, false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user