Skip to content

Commit

Permalink
Temporarily remove game cams from TM2 maps
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBang1112 committed Dec 15, 2020
1 parent ef84bfe commit 7330799
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions NationsConverter/Stages/MediaTrackerConverter.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using GBX.NET;
using GBX.NET.Engines.Game;
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

Expand All @@ -22,6 +23,12 @@ public void Process(CGameCtnChallenge map, int version, ConverterParameters para
if(version >= GameVersion.TM2)
{
offsetCoord -= (0, 8, 0);

map.ClipIntro?.Tracks?.ForEach(y => y.Blocks.RemoveAll(z => z is CGameCtnMediaBlockCameraGame));
Array.ForEach(map.ClipGroupInGame?.Clips ?? new CGameCtnMediaClip[0], x => x.Tracks.ForEach(y => y.Blocks.RemoveAll(z => z is CGameCtnMediaBlockCameraGame)));
Array.ForEach(map.ClipGroupEndRace?.Clips ?? new CGameCtnMediaClip[0], x => x.Tracks.ForEach(y => y.Blocks.RemoveAll(z => z is CGameCtnMediaBlockCameraGame)));
map.ClipAmbiance?.Tracks?.ForEach(y => y.Blocks.RemoveAll(z => z is CGameCtnMediaBlockCameraGame));
// TODO: fix the 0x007 chunk of CameraGame in GBX.NET
}

map.TransferMediaTrackerTo049();
Expand Down

0 comments on commit 7330799

Please sign in to comment.