DataDumper

This commit is contained in:
sardelka9515
2022-10-21 19:41:38 +08:00
parent 69419d41e0
commit 6b34ab6e36
6 changed files with 171 additions and 15 deletions

View File

@ -5,6 +5,7 @@ using System;
using System.Drawing;
using System.Threading;
using System.Windows.Forms;
using RageCoop.Core;
namespace RageCoop.Client
{
@ -28,16 +29,23 @@ namespace RageCoop.Client
World.DrawLine(wb.Position, wb.Position + wb.RightVector, Color.Blue);
}
if (ToMark == null) return;
if (WeaponUtil.VehicleWeapons.TryGetValue((uint)(int)ToMark.Model, out var info))
{
foreach (var ws in info.Weapons)
{
foreach (var w in ws.Value.Bones)
{
DrawBone(w.BoneName, ws.Value.Name);
DrawBone(w.BoneName, ws.Value.Name+":"+ws.Key.ToHex());
}
}
}
var P = Game.Player.Character;
var b = ToMark.GetMuzzleBone(P.VehicleWeapon);
if (b != null)
{
World.DrawLine(b.Position, b.Position + b.ForwardVector * 5, Color.Brown);
}
}
void FindAndDraw()
{