OldSchoolHack

Register / Login English

ArmA SDK v0.2.1

not available
  • Category: Sourcecode
  • Developer:
  • Uploaded by: System
  • Uploaded at:
  • System: Windows
Download (24.09 KB)

VirusTotal Result: 0/57

virustotal

Description

This package contains the "ArmA Software Development Kit", a small collection of helper classes for writing C++ code for PC game "ArmA 3". You can use it to explore the game engine, for creating additional admin-tools or for fun. Please, don't use it for hacking or cheating! I think that it is not necessary to describe in detail how to use it – just look at the source code and all will become clear. I just give a simple example.

First, you need to initialize "main interfaces" (GWorld, GEngine, GNetworkManager, etc):
CPP Code:
  1.  
  2. // Somewhere inside your "main()" function
  3.  
  4. InitIterfaces();
  5.  
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:
  1.  
  2. // ===============================================
  3. // Somewhere inside your "DrawObjects()" function
  4. // ===============================================
  5.  
  6. // local player
  7. Object* obj = (Object*)(cameraOn.GetObject());
  8.  
  9. // this SDK don't containt object-iterating method (below is just an example)
  10. for(int i = 0; i < static_cast<int>(entities.size()); i++)
  11. {
  12.    if(entities[i].GetObject() != NULL && entities[i].GetObject() != cameraOn.GetObject())
  13.    {
  14.        // real player, AI, object, etc
  15.        Object* target = (Object*)(entities[i].GetObject());
  16.            
  17.        Vector3 worldPos = target->RenderVisualState().Position();
  18.  
  19.        Point2DFloat screenPos;
  20.        bool behindCam = GAbstractUI->WorldToScreen(worldPos, screenPos);
  21.  
  22.        if(!behindCam)        
  23.            GRender.DrawText("TEXT", screenPos.x, screenPos.y, ...); // your "Text render" function
  24.    }
  25. }
  26.  

Download ArmA SDK v0.2.1