public static void GoRight()
 {
     if (IsPlaying)
     {
         CylMem.WriteInt(Modules.ClientDLLAdress + dwForceRight, (int)MoveState.MAKEMOVE);
     }
 }
示例#2
0
 public static void UpdateSkin()
 {
     if (CylMem.ReadInt(WeaponBase + m_iItemIDHigh) != -1)
     {
         CylMem.WriteInt(WeaponBase + m_iItemIDHigh, -1);
     }
 }
 public static void ShootWithPointer(int time)
 {
     if (IsPlaying)
     {
         CylMem.WriteInt(Modules.ClientDLLAdress + dwForceAttack, (int)ShootState.SHOOT);
         Methods.Wait(time);
         CylMem.WriteInt(Modules.ClientDLLAdress + dwForceAttack, (int)ShootState.STOP);
     }
 }
示例#4
0
 public static void ForceUpdate()
 {
     if (ClientStateBase != 0)
     {
         CylMem.WriteInt(ClientState + clientstate_delta_ticks, -1);
     }
     else
     {
         ConfigureClientState();
         CylMem.WriteInt(ClientState + clientstate_delta_ticks, -1);
     }
 }
 public static void RemoveHands()
 {
     if (!IsModelGrabbed)
     {
         ViewModelId    = ModelIndex;
         IsModelGrabbed = true;
     }
     if (ModelIndex != (int)ViewModel.NOMODEL)
     {
         CylMem.WriteInt(LocalPlayerBase + m_nModelIndex, (int)ViewModel.NOMODEL);
     }
 }
示例#6
0
 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);
     }
 }
示例#7
0
        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);
                    }
                }
            }
        }
 public static void AddHands()
 {
     if (BaseAdress != 0)
     {
         if (ModelIndex == (int)ViewModel.NOMODEL)
         {
             CylMem.WriteInt(LocalPlayerBase + m_nModelIndex, ViewModelId);
             IsModelGrabbed = false;
         }
         else
         {
             ConfigureLocalPlayer();
             if (ModelIndex == (int)ViewModel.NOMODEL)
             {
                 CylMem.WriteInt(LocalPlayerBase + m_nModelIndex, ViewModelId);
                 IsModelGrabbed = false;
             }
         }
     }
 }