• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 1 of 1
    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      Drew's Avatar
      Join Date
      Aug 2013
      Posts
      9
      Thanks (-->)
      0
      Thanks (<--)
      0

      DayZ Standalone - World2Screen help

      John Kittz
      I want to make a hack for dayz standalone where there is a line drawn from bottom of the screen to the object (loot)
      So far i have got the shader constants for the object by dissambling the vertexshader, here is the output

      Inside my DrawIndexPrimitive Hook
      if(primCount == 474) //gprimCount)
      {
      //doDisassembleShader(pDevice,"ShovelShaderLog.txt") ;
      WorldToScreen(pDevice);
      pDevice->SetRenderState(D3DRS_FILLMODE,D3DFILL_SOLID);
      pDevice->SetRenderState(D3DRS_ZENABLE, true);
      pDevice->SetPixelShader(RedShader);
      }

      // Registers:
      //
      // Name Reg Size
      // ----------------------------------------------------- ----- ----
      // FogModeA b0 1
      // FogModeB b1 1
      // ShadowReceiverFlag b4 1
      // EnableAlignNormal b6 1
      // ShadowReceiverSSSM b7 1
      // VSC_PointLoopCount i0 1
      // VSC_SpotLoopCount i1 1
      // VSC_ViewMatrix c0 3
      // VSC_ProjMatrix c3 4
      // VSC_CameraPosition c7 1
      // VSC_TexTransform c8 12
      // VSC_InstanceColor c25 1
      // VSC_SpecularPower_Alpha_FogEnd_RCPFogEndMinusFogSt art c31 1
      // VSC_Free_ExpFog_AFogEnd_RCPAFogEndMinusAFogStart c34 1
      // VSC_ShadowmapMatrix c35 3
      // VSC_InstanceLandShadowIntensity c38 1
      // VSC_LWSMatrix c43 3
      // LPSData c214 20
      //

      So this is my function

      void WorldToScreen(IDirect3DDevice9* Device)
      {
      D3DVIEWPORT9 Viewport;
      Device->GetViewport(&Viewport);

      Device->GetVertexShaderConstantF(0,ViewMatrix,3);//VSC_ViewMatrix
      Device->GetVertexShaderConstantF(3,Projecti********,4);//VSC_ProjMatrix


      D3DXMatrixIdentity(&WorldToLocal);


      D3DXVec3Project(&Vector2D,
      &Vector3D,
      &Viewport,
      &Projecti********,
      &ViewMatrix,
      &WorldToLocal);
      if(Vector2D.z < 1.0f)
      {
      X = static_cast<int>(Vector2D.x);
      Y = static_cast<int>(Vector2D.y);
      }
      }

      But its not working at all,looking for help to solve this so X,Y point to the correct location on screen

      The Screenshot is the effect i want
      Attached Thumbnails Attached Thumbnails dayz-chams.jpg  

    Similar Game Hacker Threads

    1. [Discuss] DayZ StandAlone - ESP Hack. - Code or Injection?
      By Bunny_Code in forum Hacking Help
      Replies: 4
      Last Post: 04-01-2014, 05:04 PM
    2. [Help] WorldToScreen Matrix [DayZ:Standalone]
      By IGR in forum ESP - WorldToScreen - ViewMatrix
      Replies: 6
      Last Post: 02-03-2014, 05:45 PM
    3. CSS World2Screen
      By brinkz in forum Tutorials and Snippets
      Replies: 15
      Last Post: 03-21-2013, 12:41 PM
    4. [Help] Help with World2Screen
      By j3b in forum GH Tutorials Help
      Replies: 8
      Last Post: 02-08-2013, 07:08 PM

    Tags for this Thread