Exemple #1
0
        private UInt64 objc_shield_inp()
        {
            UInt64 shield_power = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 character_shield     = objc_shield();
                    float  character_shield_max = ProcessReader.readFloat((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x70c);

                    if (character_shield_max != 0)
                    {
                        shield_power = (character_shield * 100) / Convert.ToUInt64(character_shield_max);
                    }
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 character_shield     = objc_health();
                    float  character_shield_max = ProcessReader.readFloat(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x514);

                    if (character_shield_max != 0)
                    {
                        shield_power = (character_shield * 100) / Convert.ToUInt64(character_shield_max);
                    }
                }
            }
            catch { }

            return(shield_power);
        }
Exemple #2
0
        private UInt64 objc_health_inp()
        {
            UInt64 health = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    UInt64 character_health     = objc_health();
                    float  character_health_max = ProcessReader.readFloat((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0x5fc);

                    if (character_health_max != 0)
                    {
                        health = (character_health * 100) / Convert.ToUInt64(character_health_max);
                    }
                }
                else if (MainWindow.client_selected == "x86")
                {
                    UInt64 character_health     = objc_health();
                    float  character_health_max = ProcessReader.readFloat(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0x400);

                    if (character_health_max != 0)
                    {
                        health = (character_health * 100) / Convert.ToUInt64(character_health_max);
                    }
                }
            }
            catch { }

            return(health);
        }
Exemple #3
0
        private float objc_position_z()
        {
            float position = 0;

            try
            {
                if (MainWindow.client_selected == "x64")
                {
                    float y = ProcessReader.readFloat((long)ProcessReader.readUInt64((long)PtrEntity + 0x60) + 0xf64);

                    position = y;
                }
                else if (MainWindow.client_selected == "x86")
                {
                    float y = ProcessReader.readFloat(ProcessReader.readUInt((long)PtrEntity + 0x48) + 0xf14);

                    position = y;
                }
            }
            catch { }

            return(position);
        }