public static void NoFlashLoop(LocalEntity LE, ProcessMemory Mem) { if (LE.LocalEntity_flashDuration > 0) { Mem.WriteFloat(LE.LocalEntity_Base + m_flFlashDuration, 0f); } }
private static void DrawGlow(int glowAddress, GlowStruct colours, ProcessMemory Mem) { object objectValue = RuntimeHelpers.GetObjectValue(Mem.ReadInt(dwClient + dwGlowObjectManager)); Mem.WriteFloat(Conversions.ToInteger(Operators.AddObject(objectValue, (glowAddress * 0x38) + 4)), colours.r); Mem.WriteFloat(Conversions.ToInteger(Operators.AddObject(objectValue, (glowAddress * 0x38) + 8)), colours.g); Mem.WriteFloat(Conversions.ToInteger(Operators.AddObject(objectValue, (glowAddress * 0x38) + 12)), colours.b); Mem.WriteFloat(Conversions.ToInteger(Operators.AddObject(objectValue, (glowAddress * 0x38) + 0x10)), colours.a); Mem.WriteBool(Conversions.ToInteger(Operators.AddObject(objectValue, (glowAddress * 0x38) + 0x24)), colours.rwo); Mem.WriteBool(Conversions.ToInteger(Operators.AddObject(objectValue, (glowAddress * 0x38) + 0x25)), colours.rwuo); }
public static void DoGlow(ProcessMemory Mem, Entity cEntity, LocalEntity cLocalEntity, float rainbowProgress) { Color friTemp = GlowTeamARGB; Color oppTemp = GlowEnemyARGB; if (RainbowGlowEnabledOpposition) { oppTemp = Rainbow(rainbowProgress); } else if (HPToColourEnabledOpposition) { oppTemp = HPtoColour(cEntity.Entity_Health); } else { oppTemp = GlowEnemyARGB; } GlowStruct opposition = new GlowStruct { r = (float)((oppTemp.R) / 255.0), g = (float)((oppTemp.G) / 255.0), b = (float)((oppTemp.B) / 255.0), a = (float)((GlowAlpha) / 255.0), rwo = true, rwuo = false }; if (RainbowGlowEnabledFriendly) { friTemp = Rainbow(rainbowProgress); } else if (HPToColourEnabledFriendly) { friTemp = HPtoColour(cEntity.Entity_Health); } else { friTemp = GlowTeamARGB; } GlowStruct team = new GlowStruct { r = (float)((friTemp.R) / 255.0), g = (float)((friTemp.G) / 255.0), b = (float)((friTemp.B) / 255.0), a = (float)((GlowAlpha) / 255.0), rwo = true, rwuo = false }; if (GlowEnabledOpposition | GlowEnabledFriendly) { if (cEntity.Entity_isAlive() && cEntity.Entity_IsDormant) { object right = Mem.ReadInt(cEntity.Entity_Base + m_iTeamNum); if (cEntity.Entity_Team == cLocalEntity.LocalEntity_Team) { if (GlowEnabledFriendly) { DrawGlow(Conversions.ToInteger(cEntity.Entity_GlowIndex), team, Mem); } } else { if (GlowEnabledOpposition) { DrawGlow(Conversions.ToInteger(cEntity.Entity_GlowIndex), opposition, Mem); } } } } }