You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using AnimeSoftware.Offsets;
|
|
using System.Drawing;
|
|
using AnimeSoftware.Objects;
|
|
using System.Threading;
|
|
|
|
namespace AnimeSoftware.Hacks
|
|
{
|
|
class Visuals
|
|
{
|
|
public static List<Entity> ToGlow = new List<Entity>();
|
|
public static void Start()
|
|
{
|
|
try
|
|
{
|
|
while (true)
|
|
{
|
|
SetGlow();
|
|
Thread.Sleep(1);
|
|
}
|
|
}
|
|
catch
|
|
{
|
|
Start();
|
|
}
|
|
}
|
|
|
|
|
|
public static void SetGlow()
|
|
{
|
|
try
|
|
{
|
|
if (ToGlow.Count <= 0)
|
|
return;
|
|
}
|
|
catch (NullReferenceException)
|
|
{
|
|
return;
|
|
}
|
|
int GlowPtr = Memory.Read<int>(Memory.Client + signatures.dwGlowObjectManager);
|
|
|
|
foreach(Entity x in ToGlow)
|
|
{
|
|
Memory.Write<GlowColor>(GlowPtr + (x.GlowIndex * 0x38 + 0x4), x.glowColor);
|
|
Memory.Write<GlowSettings>(GlowPtr + (x.GlowIndex * 0x38 + 0x24), x.glowSettings);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|