Esempio n. 1
0
        //Made by EchoHackCmd
        public static List <Entity> getEntityList(bool filter)
        {
            List <Entity> entityList = new List <Entity>();
            UInt64        likelySize = MCM.readBaseInt64(0x30366B0);

            for (UInt64 index = 0; index < likelySize; index++)
            {
                UInt64[] startOffs     = { 0x30, 0xF0, 0x8, 0x50, 0x120, 0x38, index *0x8 };
                UInt64   indexedEntity = MCM.readInt64(MCM.baseEvaluatePointer(0x03022AE0, startOffs));
                if (indexedEntity == SDK.client.localPlayer.addr)
                {
                    continue;
                }

                Entity eObj = new Entity(indexedEntity);
                if (eObj.movedTick > 1)
                {
                    if (filter)
                    {
                        if (targetable.Contains(eObj.type))
                        {
                            entityList.Add(eObj);
                        }
                    }
                    else
                    {
                        entityList.Add(eObj);
                    }
                }

                /*
                 * if (eObj.movedTick > 1)
                 * {
                 *  entityList.Add(eObj);
                 * }//Only allow entities that move (Bye bye NPC's)
                 *///Hi NPCs... sorry you werent invited last time...
            }
            return(entityList);
        }