DayZ SA SDK 0.58 Downloads › Sourcecode Kategorie: Sourcecode Entwickler: ChaosLeader Hochgeladen von: System Hinzugefügt am: Mi 18. Nov 2015, 21:39 System: Windows Download (22.12 KB) VirusTotal Ergebnis: 0/54 Download (22.12 KB) Beschreibung Bei Problemen mit einem Hack hilftein Blick in die FAQ! You can't just c&p and expect it to compile. Some helper functions are missing. Ifyou don't manage to implement these, please do not spam for more spoonfeed here.Needed function:CPP Code:template <typename Type, typename Base, typename Offset>static inline Type Ptr(Base base, Offset offset){ static_assert(std::is_pointer<Type>::value || std::is_integral<Type>::value, "Type must be a pointer or address"); static_assert(std::is_pointer<Base>::value || std::is_integral<Base>::value, "Base must be a pointer or address"); static_assert(std::is_pointer<Offset>::value || std::is_integral<Offset>::value, "Offset must be a pointer or address"); return base ? (Type)((uint64_t)base + (uint64_t)offset) : Type();}How to use it:CPP Code:auto pNetworkManager = Game::NetworkManager::GetSingletonPtr();if (!pNetworkManager->isIngame()) return; auto pWorld = Game::World::GetSingletonPtr();if (!pWorld) return; auto pLandscape = Game::Landscape::GetSingletonPtr();if (!pLandscape) return; auto pLocalPlayer = pWorld->getLocalPlayer();if (!pLocalPlayer) return; auto pLocalPlayerName = pLocalPlayer->getName();if (!pLocalPlayerName) return; const auto &localPos = pLocalPlayer->getPosition(); std::list<Game::Entity *> entities;std::list<Game::Player *> players;std::list<Game::Zombie *> zombies;std::list<Game::Animal *> animals;std::list<Game::Car *> cars;std::list<Game::Item *> items;std::list<Game::House *> houses; pLandscape->getObjects(entities, localPos.getX(), localPos.getZ(), 1000);for (auto &pEntity : entities){ switch (pEntity->getType()) { case Game::Entity::Type::Player: players.push_back(reinterpret_cast<Game::Player *>(pEntity)); break; case Game::Entity::Type::Zombie: zombies.push_back(reinterpret_cast<Game::Zombie *>(pEntity)); break; case Game::Entity::Type::Animal: animals.push_back(reinterpret_cast<Game::Animal *>(pEntity)); break; case Game::Entity::Type::Car: cars.push_back(reinterpret_cast<Game::Car *>(pEntity)); break; case Game::Entity::Type::Item: items.push_back(reinterpret_cast<Game::Item *>(pEntity)); break; case Game::Entity::Type::House: houses.push_back(reinterpret_cast<Game::House *>(pEntity)); break; default: break; }}Little bonus. Since they really pissed me off, I'm going to return the favour Spawn grenades:CPP Code:// You can frame other players if you set the owner of the shot.Game::Shot::CreateShot(nullptr, Game::EntityTypeBank::GetSingletonPtr()->getEntityType(ENCRYPT("G_Grenade")), shotPos, shotSpeed); // Interesting ammo types areLaserBombCoreG_GrenadeG_FlashGrenadeHandB_FlareA_compositeB_762x54_Ball Download DayZ SA SDK 0.58