Donate Now Goal amount for this month: 95 USD, Received: 20 USD (21%)

+ Reply to Thread
Results 1 to 4 of 4

Thread: BFBC2 world to screen

  1. #1
    Join Date
    Jun 2004
    Posts
    272
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    87

    stunned BFBC2 world to screen

    can some one halp me with that?
    already made radar.. and i'll find subj by myself, but still too lazy to do that

    main problem: soldier matrix (whole class) differs the vehicle's

    also set view angles would be nice. i like aimbots

    and player/obj health, bones info, weapon (with info like recoil/dmg/penetration) would be nice too
    Forgive my English, I'm from a country far, far away, but I will appreciate if you point me to my mistakes.

  2. #2
    Join Date
    Jun 2004
    Posts
    272
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    87

    Read the f'ing Manual Re: BFBC2 world to screen

    reloaded nodvd 1.0.1.0

    [0x1534540]

    0x20-fovX
    0x24-fovY
    0x34-a/r
    0x60-matrix


    sig to locate this ptr:
    Code:
    .text:005B1016 39 5E 38                                      cmp     [esi+38h], ebx
    .text:005B1019 74 6F                                         jz      short loc_5B108A
    .text:005B101B 8B 0D 40 45 53 01                             mov     ecx, rend_1534540
    .text:005B1021 8B 11                                         mov     edx, [ecx]
    .text:005B1023 8B 82 AC 00 00 00                             mov     eax, [edx+0ACh]
    .text:005B1029 6A 02                                         push    2
    .text:005B102B FF D0                                         call    eax
    .text:005B102D 8B 0D 40 45 53 01                             mov     ecx, rend_1534540
    .text:005B1033 8B 11                                         mov     edx, [ecx]
    .text:005B1035 8B 82 AC 00 00 00                             mov     eax, [edx+0ACh]
    .text:005B103B 6A 04                                         push    4
    .text:005B103D FF D0                                         call    eax
    .text:005B103F 8B 0D 40 45 53 01                             mov     ecx, rend_1534540
    .text:005B1045 8B 11                                         mov     edx, [ecx]
    .text:005B1047 8B 82 AC 00 00 00                             mov     eax, [edx+0ACh]
    .text:005B104D 6A 03                                         push    3
    .text:005B104F FF D0                                         call    eax
    .text:005B1051 8B 0D 40 45 53 01                             mov     ecx, rend_1534540
    .text:005B1057 8B 11                                         mov     edx, [ecx]
    .text:005B1059 8B 82 AC 00 00 00                             mov     eax, [edx+0ACh]
    .text:005B105F 53                                            push    ebx
    .text:005B1060 FF D0                                         call    eax
    .text:005B1062 8B 46 38                                      mov     eax, [esi+38h]
    .text:005B1065 3B C3                                         cmp     eax, ebx
    /end of Q.
    Last edited by mattdog; 03-17-2010 at 04:01 PM.
    Forgive my English, I'm from a country far, far away, but I will appreciate if you point me to my mistakes.

  3. #3
    Join Date
    Jun 2007
    Posts
    75
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    41

    Re: BFBC2 world to screen

    I use something different (i don't know the address anymore , i use patterns):
    Code:
    class ViewFOV
    {
    public:
        char Unknowns01[0x8]; // 0x0
    	float FOV; // 0x8
        char Unknowns02[0x24]; // 0xc
    	float CurrentFOV; // 0x30
    	float PreviousFOV; // 0x34
    };
    
    class ClCameraContext
    {
    public:
        char Unknowns01[0x88]; // 0x0
    	D3DXMATRIX view_matrix; // 0x88
        char Unknowns02[0x10]; // 0xc8
    	ViewFOV* viewFOV; // 0xD8
        charUnknowns03[0x18]; // 0xDC
    	float DefaultFOV; // 0xf4
    };
    This fov is in degree whereas your fov is in radian.
    g_pCameraContext->DefaultFov is always 55 (or the default value in settings.ini)
    So i use g_pCameraContext->viewFOV->FOV

  4. #4
    Join Date
    Jun 2004
    Posts
    272
    Thanks
    0
    Thanked 1 Time in 1 Post
    Rep Power
    87

    Re: BFBC2 world to screen

    Forgive my English, I'm from a country far, far away, but I will appreciate if you point me to my mistakes.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. World to Screen
    By ntKid in forum DirectX/D3D
    Replies: 29
    Last Post: 1 Week Ago, 10:03 PM
  2. World to Screen
    By beeker in forum Far Cry/CryEngine (FCHook)
    Replies: 1
    Last Post: 12-03-2008, 01:13 PM
  3. World to Screen
    By beeker in forum Crysis
    Replies: 0
    Last Post: 12-01-2008, 12:54 PM
  4. World To Screen
    By hacker2 in forum Beginner
    Replies: 2
    Last Post: 06-19-2006, 03:03 AM
  5. World To Screen
    By tester in forum Gold Source/HL1 Engine
    Replies: 11
    Last Post: 05-03-2003, 11:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts