Thread: Advanced UAV

Page 1 of 2 12 LastLast
Results 1 to 15 of 28
  1. #1
    cardoow's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Posts
    215
    Reputation
    28
    Thanks
    766
    My Mood
    Amazed

    Advanced UAV

    Well since the radar is drawn locally you can manipulate it like a boss, saw people draw their own radar + use rotatedpic, but i personally like to use the engine to achieve my wishes. So since its almost christmas i have some Advanced UAV code for you guys.

    this function does it all
    Code:
    void __cdecl sub_47F690(int a1, int a2, int a3, int a4, int a5)
    it loops trough a struct of 18 big, as far as i know its not clientinfo or entity, feel free to reverse it
    Code:
    v7 = (char *)&unk_8F2938 + 3640 * a1;
        v52 = 18;
        do
        {
          .....
          v7 += 140; //see here the struct size = 0x8C = 140 dec
        }
        while ( v52-- != 1 );
    now we're heading to some more important stuff
    at the bottom of the function we see a call to drawrotatedpic
    Code:
     sub_40D420(v51, v55, v56, v48, v47, *(_BYTE *)(a4 + 16), *(_BYTE *)(a4 + 17), v44, (int)&v58, v31);
    and we see that v31 holds the shader.

    if we scroll up a bit we see this piece of code
    Code:
     if ( dword_8FF284 || v10 ) // 0x8FF080 is cg_t, means cg_t + 0x204 holds the advanced uav value
    {
        if ( !v45 || !dword_A041F8 || (v31 = dword_A041F8, sub_4F5920(dword_A041F8)) )
        v31 = dword_A04184; // here v31 will hold compassping_enemyfacingdirection
    }
    so we now know where to toggle the advanced uav, but now we only see the shaders when people shoot. We want those shaders at all time.
    Now if we take a look at the top of the function we will find this
    Code:
    if ( v7[56] & 1 )//guess here they check for isalive
          {
            v8 = *((_DWORD *)v7 + 16);
            v10 = (unsigned __int16)((_WORD)v8 >> 16);
            v9 = (*((_DWORD *)v7 + 16) >> 17) & 1;
            if ( v43 || v9 || (_WORD)v8 >> 16 || (unsigned __int16)(v8 & 0x8000) ) 
            {
              //we need to make sure this if is true
              //we can do hard stuff with shifts or bitwise ands, or just take the easy way and pick v43
              v12 = dword_96A1DC;
              v11 = 1;
              if ( *(_DWORD *)v7 > LODWORD(dword_96A1DC) )
                *(_DWORD *)v7 = 0;
              if ( *(_DWORD *)v7 < LODWORD(v12) - 500 )
                goto LABEL_71;
            }
            else
            {
              v11 = 0;
            }
    if we look something above that code we will find this
    Code:
     v43 = *(_BYTE *)(dword_1C2C39C + 12);
    hey! that looks like a cvar! + 0xC is the value, hmm lets make it have a value! (this is g_compassShowEnemies)

    Code:
    void AdvancedUAV()
    {	
    	cg_t->uav = 1;	//the 0x8FF284 we found before in cg_t
    	*(BYTE*)(*(DWORD*)(0x1C2C39C) + 0xC) = 0x1;	// the cvar		
    }
    call this every frame and you will have advanced uav at all time, have fun!

  2. The Following 7 Users Say Thank You to cardoow For This Useful Post:

    dr.x (12-16-2011),echo2436 (06-18-2012),Fth17 (12-15-2011),House (12-15-2011),intervention61 (12-15-2011),lolbie (12-15-2011),RyanH100 (12-15-2011)

  3. #2
    luckycool's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    Wow good job
    But is this bannable ?

  4. #3
    RyanH100's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Belfast, Northern Ireland, United Kingdom.
    Posts
    526
    Reputation
    22
    Thanks
    571
    My Mood
    Blah
    Can you make a program for it? Or give a tutorial on how to use it? sorry.

  5. The Following 2 Users Say Thank You to RyanH100 For This Useful Post:

    anel1234 (01-02-2012),ZeqtorHD (12-16-2011)

  6. #4
    cardoow's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Posts
    215
    Reputation
    28
    Thanks
    766
    My Mood
    Amazed
    Quote Originally Posted by luckycool View Post
    Wow good job
    But is this bannable ?
    depends on how you use it, the code itself is not bannable it depends on where you call it

  7. #5
    lolbie's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Netherlands
    Posts
    5,207
    Reputation
    288
    Thanks
    2,136
    My Mood
    Angelic
    Great job !

    Not that I can use it but other people can
    I love it when people keep their agreements /sarcasm ftw

  8. #6
    RyanH100's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Belfast, Northern Ireland, United Kingdom.
    Posts
    526
    Reputation
    22
    Thanks
    571
    My Mood
    Blah
    Hopefully someone get's this made into something pritty quick so we can use it

  9. #7
    dark_420's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    55
    Reputation
    10
    Thanks
    3
    My Mood
    Cool
    im gonna give this a shot its something good to learn from thanks great post !

  10. #8
    Anniversary's Avatar
    Join Date
    Feb 2011
    Gender
    male
    Location
    Netivot, Israel
    Posts
    127
    Reputation
    10
    Thanks
    21
    My Mood
    Hungover
    Awesome dude but make a tutorial please?

    Prees THANKS if i helped

  11. #9
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,676
    Reputation
    905
    Thanks
    19,112
    My Mood
    Angelic
    Language looks like C++
    So try a compiler and copy paste them.
    See how it go.
    PS: Don't forget to add it in a void :P

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  12. #10
    cardoow's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Posts
    215
    Reputation
    28
    Thanks
    766
    My Mood
    Amazed
    Quote Originally Posted by Anniversary View Post
    Awesome dude but make a tutorial please?
    this is a tutorial

  13. #11
    RyanH100's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Belfast, Northern Ireland, United Kingdom.
    Posts
    526
    Reputation
    22
    Thanks
    571
    My Mood
    Blah
    Not really it's a tutorial for the code not how to use it.

  14. #12
    cardoow's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Posts
    215
    Reputation
    28
    Thanks
    766
    My Mood
    Amazed
    Quote Originally Posted by RyanH100 View Post
    Not really it's a tutorial for the code not how to use it.
    Its a tutorial for coders, they know how to use this. If you dont know, then this is not for you

  15. #13
    obliviron3's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Wow card, did you code this by yourself? O_O

  16. #14
    BlackRows's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    New zealand
    Posts
    50
    Reputation
    10
    Thanks
    1
    This is some really good shit

  17. #15
    Fth17's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Posts
    16
    Reputation
    10
    Thanks
    0
    I want that its make us 1 step forward

Page 1 of 2 12 LastLast

Similar Threads

  1. No-Brush Signature (Advanced)
    By Chronologix in forum Tutorials
    Replies: 13
    Last Post: 05-27-2008, 01:33 AM
  2. Advanced Full Sig Tut
    By -[standoff]- in forum Tutorials
    Replies: 17
    Last Post: 09-22-2007, 02:46 PM
  3. Where could I learn C++? (Beginner, and Advanced stuff)
    By TsumikiriX in forum C++/C Programming
    Replies: 8
    Last Post: 07-19-2006, 08:11 PM
  4. Advanced Backround By InfinityXero
    By Paolo1993 in forum Tutorials
    Replies: 0
    Last Post: 01-27-2006, 08:09 PM
  5. Advanced Box Cut
    By Chronologix in forum Tutorials
    Replies: 11
    Last Post: 01-23-2006, 09:00 PM