public static void Glow(int GlowIndex, Structs.GlowStruct GlowColor, GlowStyle _GlowStyle, GlowType _GlowType) { CylMem.WriteFloat(GlowObject + ((GlowIndex * 0x38) + 0x4), GlowColor.r); CylMem.WriteFloat(GlowObject + ((GlowIndex * 0x38) + 0x8), GlowColor.g); CylMem.WriteFloat(GlowObject + ((GlowIndex * 0x38) + 0xC), GlowColor.b); CylMem.WriteFloat(GlowObject + ((GlowIndex * 0x38) + 0x10), GlowColor.a); CylMem.WriteInt(GlowObject + ((GlowIndex * 0x38) + 0x2C), (int)_GlowType); CylMem.WriteBoolean(GlowObject + ((GlowIndex * 0x38) + 0x24), true); CylMem.WriteBoolean(GlowObject + ((GlowIndex * 0x38) + 0x25), false); if (_GlowStyle == Enums.GlowStyle.BLOOM) { CylMem.WriteBoolean(GlowObject + ((GlowIndex * 0x38) + 0x26), true); } }
public static void ChangeSkin(string CustomName, int PaintKit, EntityQuality EntityQuality, int StatTrack) { SkinStruct WeaponSkin = new SkinStruct { CustomName = CustomName, PaintKit = PaintKit, StatTrack = StatTrack, EntityQualityIndex = EntityQuality, Wear = 0.0001f, Seed = 0 }; for (int i = 0; i < 8; i++) { WeaponBase = CylMem.ReadInt(CLocalPlayer.LocalPlayerBase + m_hMyWeapons + i * 0x4) & 0xFFF; WeaponBase = CylMem.ReadInt((int)Modules.ClientDLLAdress + dwEntityList + (WeaponBase - 1) * 0x10); if (WeaponSkin.PaintKit != 0) { if (CylMem.ReadInt(WeaponBase + m_iItemIDHigh) != -1) { CylMem.WriteInt(WeaponBase + m_iItemIDHigh, -1); } CylMem.WriteInt(WeaponBase + m_OriginalOwnerXuidLow, 0); CylMem.WriteInt(WeaponBase + m_OriginalOwnerXuidHigh, 0); CylMem.WriteInt(WeaponBase + m_nFallbackPaintKit, WeaponSkin.PaintKit); CylMem.WriteInt(WeaponBase + m_nFallbackSeed, WeaponSkin.Seed); CylMem.WriteInt(WeaponBase + m_nFallbackStatTrak, WeaponSkin.StatTrack); CylMem.WriteFloat(WeaponBase + m_flFallbackWear, WeaponSkin.Wear); CylMem.CWrite <char[]>(WeaponBase + m_szCustomName, WeaponSkin.CustomName.ToCharArray()); if (StatTrack >= 0) { CylMem.WriteInt(WeaponBase + m_iEntityQuality, (int)WeaponSkin.EntityQualityIndex); } else { CylMem.WriteInt(WeaponBase + m_iEntityQuality, 0); } } } }