ArmA SDK v0.1.1 Downloads › Sourcecode Kategorie: Sourcecode Entwickler: 64com Hochgeladen von: System Hinzugefügt am: Fr 24. Apr 2015, 09:57 System: Windows Download (20.54 KB) VirusTotal Ergebnis: 0/55 Download (20.54 KB) Beschreibung Bei Problemen mit einem Hack hilftein Blick in die FAQ! First, you need to initialize "main interfaces" (GWorld, GEngine, GNetworkManager, etc):CPP Code: // Somewhere inside your "main()" function InitIterfaces(); After this you get "control" over engine. As an example we obtain the coordinates of objects in 3D space, and convert them to the "real 2D" screen space:CPP Code: // ===============================================// Somewhere inside your "DrawObjects()" function// =============================================== // local playerObject* obj = (Object*)(cameraOn.GetObject()); // this SDK don't containt object-iterating method (below is just an example)for(int i = 0; i < static_cast<int>(entities.size()); i++){ if(entities[i].GetObject() != NULL && entities[i].GetObject() != cameraOn.GetObject()) { // real player, AI, object, etc Object* target = (Object*)(entities[i].GetObject()); Vector3 pos = target->RenderVisualState().Position(); Point2DFloat posScr; bool behindCam = GAbstractUI->WorldToScreen(pos, posScr); if(!behindCam) GRender.DrawText("TEXT", posScr.x, posScr.y, ...); // your "Text render" function }} For calculating distance between you and target use this:CPP Code:float dist = obj->FutureVisualState().Position().Distance(pos);NOTE: for "local player" you have to use "FutureVisualState()" and for other objects "RenderVisualState()". It avoids the appearance of "ESP lagging".For calculating height and width of the ESP-box you can use this:CPP Code:float boxW = (250.0f/dist)/GCamera->Left();float boxH = (250.0f/dist)/GCamera->Top();Enough for today. As the availability of free time and the mood I will be supplement "ArmA SDK" with new features. Please don't flaming or flooding on this topic and dont's ask me about any details. Please try to use this information "as is".[Instructions]You need to add this VS project to your solution or use this sources as "base" for new project.[Changelog]v0.1 (April 22, 2015) – Original release. Only basic functions fot initialization "interfaces", getting object's info (position, name, etc) and manipulating it (some math-functions, WorldToScreen, etc).v.0.1.1 (April 22, 2015) – Removed some unnecessary files (they will be needed later). Download ArmA SDK v0.1.1