Skip to content

Commit

Permalink
BO2 dynamics fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sheilan102 committed May 19, 2019
1 parent 41dc5c7 commit 6a2ea04
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion src/Husky/Husky/Games/BlackOps2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,28 @@ public unsafe struct GfxVertex
public int Padding3 { get; set; }
}

/// <summary>
/// Gfx Vertex
/// </summary>
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public unsafe struct GfxWeirdVtx
{
/// <summary>
/// X Position
/// </summary>
public float X { get; set; }

/// <summary>
/// Y Position
/// </summary>
public float Y { get; set; }

/// <summary>
/// Z Position
/// </summary>
public float Z { get; set; }
}

/// <summary>
/// Gfx Static Model
/// </summary>
Expand Down Expand Up @@ -776,7 +798,7 @@ public unsafe static List<IDictionary> CreateMapEntities(string mapEnts)
{
model_data.Add("Name", m.Groups[2].Value.Replace("radiant", "whole"));
}
if (m.Groups[2].Value.Contains("clean"))
else if (m.Groups[2].Value.Contains("clean"))
{
model_data.Add("Name", m.Groups[2].Value.Replace("clean", "whole"));
}
Expand Down

0 comments on commit 6a2ea04

Please sign in to comment.