Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    DreadKyller's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    122
    Reputation
    12
    Thanks
    21

    Question [?How?]Get Camera Orientation

    Recently I had an idea of how to make real ghost mode useing camera orientations and trig, only problem is I do not know how to get the camera orientation(s) along the y, x, and z axis, which I need in order to make this.

    ALL I'm asking is how to get the camera orientations, not need any help with the triganometry.

    Also, incase anyone knows before hand, is the orientation in radians or degrease?

  2. #2
    .L33T's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    80
    Reputation
    9
    Thanks
    49
    My Mood
    Cool
    HOBJECT. (Maybe? /)
    __________________

  3. #3
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    get your viewangles (use a memory searcher to search it) and work with it. its all in radians


  4. #4
    DreadKyller's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    122
    Reputation
    12
    Thanks
    21
    Quote Originally Posted by Gordon` View Post
    get your viewangles and work with it. its all in radians
    WOW, do you get what I'm asking? I'm asking HOW TO DO THAT, so telling me to do what I want to is not helping, this is supposed to be the HELP thread, so why does no one ever help?

    @.L33T: And w t f is that, this site is bull, no one can ever just simpley "help" they all have to be smart ass shits.

  5. #5
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    i see two good answers, so whats up with you?

    i say search your viewangles (like if you would know what it is you would know how to search it) also i answered you the question about if its radian or not. also L33T helped you. it also possible the get the HOBJECT from the camera to get its position and its viewpoint and viewangles

    but how? move your ass and start doing instead of annoying other ppl. be thankful for answers. you did not choose the best forum to ask smth like that


  6. The Following 4 Users Say Thank You to Gordon` For This Useful Post:

    .L33T (10-21-2010),Crash (10-21-2010),Debugger (02-06-2011),T0y (10-21-2010)

  7. #6
    DreadKyller's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    122
    Reputation
    12
    Thanks
    21
    dude, my point is thank you for that, but how do I do those things?

  8. #7
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    Viewangles tell you where are you looking at.
    There are pitch, yaw and roll. All of these are radians in Combat Arms.
    Pitch changes when you move your crosshair up and down, yaw when you move it left or right. These are all stored as floats in memory. These tips may help you finding it.

    That are the structs I made:
    Code:
    struct CViewangles
    {
        /*0x00*/    char unknown0[72];
        /*0x48*/    float pitch;
        /*0x4C*/    float yaw; 
        /*0x50*/    float roll;
        /*0x54*/    char unknown84[216];
        /*0x12C*/    CCamera1* cam1;
        /*0x130*/    CCamera2* cam2; 
    };
    
    struct CCamera1
    {
        /*0x00*/    char unknown0[4];
        /*0x04*/    LTVector pos1;
        /*0x10*/    LTVector pos2;
    };
    
    struct CCamera2
    {
        /*0x00*/    char unknown0[24];
        /*0x18*/    LTVector pos;
    };
    BTW: when you find it, try adding PI to the roll angle. quite funny
    Last edited by Gordon`; 10-21-2010 at 11:01 AM.


  9. #8
    DreadKyller's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    122
    Reputation
    12
    Thanks
    21
    ty, this should help.

    lol, i can only guess seeing pi has to do with a circle, I'm guessing something real strange.

    Ghost mode seems extremely simple, I'm going to use the trigenometry of the camera angles to change the camera offset.just need to find out what axos it up and down for rotation, I know that the "y" axis is vertical, and so it would rotate you left and right, but which axis do you straft on?
    Last edited by DreadKyller; 10-21-2010 at 11:07 AM.

  10. #9
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,689
    Reputation
    184
    Thanks
    1,149
    My Mood
    Aggressive
    Quote Originally Posted by Gordon` View Post
    Viewangles tell you where are you looking at.
    There are pitch, yaw and roll. All of these are radians in Combat Arms.
    Pitch changes when you move your crosshair up and down, yaw when you move it left or right. These are all stored as floats in memory. These tips may help you finding it.

    That are the structs I made:
    Code:
    struct CViewangles
    {
        /*0x00*/    char unknown0[72];
        /*0x48*/    float pitch;
        /*0x4C*/    float yaw; 
        /*0x50*/    float roll;
        /*0x54*/    char unknown84[216];
        /*0x12C*/    CCamera1* cam1;
        /*0x130*/    CCamera2* cam2; 
    };
    
    struct CCamera1
    {
        /*0x00*/    char unknown0[4];
        /*0x04*/    LTVector pos1;
        /*0x10*/    LTVector pos2;
    };
    
    struct CCamera2
    {
        /*0x00*/    char unknown0[24];
        /*0x18*/    LTVector pos;
    };
    BTW: when you find it, try adding PI to the roll angle. quite funny
    You had to give him shit

  11. #10
    T0y's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    92
    Reputation
    10
    Thanks
    25
    Example:

    Code:
    class LTVector
    {
    	public:
    		char unknown0[72]; //0x00
                    float pitch; //0x48
                    float yaw; //0x4C
                    float roll; //0x50
                    char unknown84[216]; //0x54
                    CCamera1* cam1; //0x12C
                    CCamera2* cam2; //0x130
    
    };
    
    class CCamera1
    {
    	public:
    		char unknown0[4]; //0x00
                    LTVector pos1; //0x04
                    LTVector pos2; //0x10
    };
    
    class CCamera2
    {
    	public:
    	        char unknown0[24]; //0x00
                    LTVector pos; //0x18
    };
    
    //typedef CCamera1*        HOBJECT1;
    //typedef CCamera1*        HLOCALOBJ1;
    typedef CCamera2*        HOBJECT2;
    typedef CCamera2*        HLOCALOBJ2;
    
    class CILTClient //Camera 2
    {
    	public:
    		char szUnknown0[0x208];
    		int ( *RunConsoleCommand )( const char * szCommand ); 
    		HLOCALOBJ2 ( *GetClientObject )( void ); 
    };
    
    HLOCALOBJ2 myObj;
    LTVector objPos;
    
    if(GetAsyncKeyState(VK_UP)<0){
    	
    	myObj = ILTClient->GetClientObject();
    	myObj->Pos.pitch += 15;
    	Sleep(100);
    
    }

  12. #11
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    biggest fail ever T0y. doesnt make any sense:

    Code:
    myObj->Pos.pitch += 15;
    Why:

    Code:
    typedef CCamera2*        HLOCALOBJ2;
    CCamera2 has no pitch, yaw. So stop spamming and delete your post.


  13. The Following User Says Thank You to Gordon` For This Useful Post:

    yazzn` (10-22-2010)

  14. #12
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,881
    Reputation
    163
    Thanks
    3,291
    My Mood
    Sleepy
    Err... you probably shouldn't do this if you haven't heard of the unit circle.

    Code:
    //X:
    sin(yaw);
    //Y:
    sin(-pitch);
    //Z:
    cos(yaw);
    ???

  15. #13
    T0y's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    92
    Reputation
    10
    Thanks
    25
    Quote Originally Posted by Gordon` View Post
    biggest fail ever T0y. doesnt make any sense:

    Code:
    myObj->Pos.pitch += 15;
    Why:

    Code:
    typedef CCamera2*        HLOCALOBJ2;
    CCamera2 has no pitch, yaw. So stop spamming and delete your post.
    relax, it's just an example not real one -_- i just want the TS get some picture.
    Last edited by T0y; 10-21-2010 at 02:55 PM.

  16. #14
    DreadKyller's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    122
    Reputation
    12
    Thanks
    21
    I know how to do the sine and cosine and tangant ect, I just did not know how to get the orientation. thank you, i have this semi working now.

  17. #15
    DreadKyller's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    122
    Reputation
    12
    Thanks
    21
    Why am I getting the error

    Code:
    missing type specifier - int assumed. Note: C++ does not support default-int
    when I try that?

Page 1 of 2 12 LastLast

Similar Threads

  1. How get free NX 100% LEGAL
    By KteDEN in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 08-29-2009, 10:45 AM
  2. how get hax
    By I-Am-Hot in forum Spammers Corner
    Replies: 0
    Last Post: 06-07-2009, 02:38 PM
  3. how get warrock windowed :'(
    By dyllaboy in forum WarRock - International Hacks
    Replies: 2
    Last Post: 01-12-2008, 06:08 AM
  4. hOW GET cASH?? ANd 5tH + 6Th SLOtS?
    By Cataldo in forum WarRock Korea Hacks
    Replies: 16
    Last Post: 05-21-2007, 11:09 AM
  5. [TUT] How to add Oriental/Korean Fonts
    By W$t$5TA34TYTHSETH5Y5 in forum WarRock Korea Hacks
    Replies: 2
    Last Post: 05-06-2007, 11:08 AM

Tags for this Thread