Thread: MoveObject

Results 1 to 15 of 15
  1. #1
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    795
    My Mood
    Busy

    MoveObject

    Move Object Position


    Code :
    Code:
    #define LTClient_EU 0x377a1178 // EU
    #define LtClient_NA 0x377A0198 // NA not sure 
    
    void __cdecl MoveObject(int* Object , D3DXVECTOR3 Pos)
    {
    	_asm
    	{
    		MOV ECX,DWORD PTR DS:[LTClient_??]
    		MOV EDX,DWORD PTR DS:[ECX]
    		PUSH 1
    		LEA EAX,Pos
    		PUSH EAX
    		PUSH Object
    		MOV EDX,DWORD PTR DS:[EDX + 0xC4]
    		CALL EDX
    	}
    }
    ~Mo3ad001

    H A X O
    Email : Noobmem@hotmail.com


  2. The Following 8 Users Say Thank You to mo3ad001 For This Useful Post:

    'Batata! (08-22-2011),baraozin (08-21-2011),bazookaboy (08-20-2011),[MPGH]Flengo (08-20-2011),isaiasr (12-21-2011),m0k1 (10-20-2011),Soccorman1 (08-20-2011),TokolocoSK (08-28-2011)

  3. #2
    bazookaboy's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    Florida
    Posts
    532
    Reputation
    29
    Thanks
    297
    My Mood
    Happy
    OMG YOU ROCK! EPICNESS IF THIS WORKS!

  4. #3
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    795
    My Mood
    Busy
    Quote Originally Posted by bazookaboy View Post
    OMG YOU ROCK! EPICNESS IF THIS WORKS!
    ofc it should work

    H A X O
    Email : Noobmem@hotmail.com


  5. #4
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    4,922
    My Mood
    Cool
    what function is at LTC + 0xC4?

    nvm

    SetObjectPos(HLOCALOBJ hObj, LTVector* vPos, float fUnk); //0x00C4
    Last edited by topblast; 08-20-2011 at 11:40 AM.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  6. #5
    ᶠᶸᶜᵏ's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    174
    Reputation
    36
    Thanks
    159
    Quote Originally Posted by Gellin
    The SetObjectPos function is patched.
    just use LTVector

  7. #6
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    795
    My Mood
    Busy
    or try to references it like
    SetObjectPos(int* Obj, D3DXVECTOR3& Position, int Unknown);//0x00C4

    H A X O
    Email : Noobmem@hotmail.com


  8. #7
    Refrain's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    136
    Reputation
    22
    Thanks
    28
    You realize this is useless. You can just do :
    Object->Position = LTVector(x, y, z);

  9. #8
    Sixx93's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    673
    Reputation
    21
    Thanks
    250
    My Mood
    Cool
    can it be used to move players? (OPK u.u)

  10. #9
    Zeused's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    1,599
    Reputation
    2
    Thanks
    68
    My Mood
    Relaxed
    Movie Object? Never seen that before. It will be awesome, if it gets published in MPGH for free.

    -The Joker.

  11. #10
    mo3ad001's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    842
    Reputation
    53
    Thanks
    795
    My Mood
    Busy
    Quote Originally Posted by Sixx93 View Post
    can it be used to move players? (OPK u.u)
    Actually when I saw it ,I thought it was only for the players , because it was push player object and push transform .... , but it's work for Other objects

    H A X O
    Email : Noobmem@hotmail.com


  12. #11
    Sixx93's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Posts
    673
    Reputation
    21
    Thanks
    250
    My Mood
    Cool
    Quote Originally Posted by mo3ad001 View Post
    Actually when I saw it ,I thought it was only for the players , because it was push player object and push transform .... , but it's work for Other objects
    u mean u can move everything in the map? D:

  13. #12
    Gordon`'s Avatar
    Join Date
    Dec 2007
    Gender
    male
    Posts
    283
    Reputation
    24
    Thanks
    325
    Quote Originally Posted by Sixx93 View Post
    can it be used to move players? (OPK u.u)
    yes it can. u can do so much shit when u hook SetObjectPos


  14. #13
    _Fk127_'s Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    724
    Reputation
    16
    Thanks
    208
    My Mood
    Bitchy
    So, I am assuming that OPK would look something like
    Code:
    cSFXMgr* SFXMgr = GCS->GetSFXMgr();
    
    if( Valid( SFXMgr ) )
    {
    	for ( int i = 0; i < SFXMgr->SFXList[0x18].Num; i++ )
    	{
    	cCharacterFX* fx = (cCharacterFX*)SFXMgr->SFXList[0x18].List[i];
    		if( Valid( fx->Object ) )
    		{
    LTC->SetObjectPos( fx->Object, LocalPos, true);
    		}
    	}
    }
    @Gordon`

    Quote Originally Posted by ᶠᶸᶜᵏ View Post


    just use LTVector
    Are you referring to
    Code:
     class LTVector
    {
    public:
        float x, y,z;
    
        LTVector (){}
    
        LTVector (float x2, float y2, float z2)
        {
            x = x2;
            y = y2;
            z = z2;
        }
    };
    from FEAR?
    Last edited by _Fk127_; 08-22-2011 at 07:11 PM.



    Put this image in your signature if you support HTML5 development!

  15. #14
    [POWER]'s Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    117
    Reputation
    10
    Thanks
    21
    My Mood
    Pensive
    Quote Originally Posted by _Fk127_ View Post
    So, I am assuming that OPK would look something like
    Code:
    cSFXMgr* SFXMgr = GCS->GetSFXMgr();
    
    if( Valid( SFXMgr ) )
    {
    	for ( int i = 0; i < SFXMgr->SFXList[0x18].Num; i++ )
    	{
    	cCharacterFX* fx = (cCharacterFX*)SFXMgr->SFXList[0x18].List[i];
    		if( Valid( fx->Object ) )
    		{
    LTC->SetObjectPos( fx->Object, LocalPos, true);
    		}
    	}
    }
    @Gordon`



    Are you referring to
    Code:
     class LTVector
    {
    public:
        float x, y,z;
    
        LTVector (){}
    
        LTVector (float x2, float y2, float z2)
        {
            x = x2;
            y = y2;
            z = z2;
        }
    };
    from FEAR?
    fear SDK is your friend

  16. #15
    Xlilzoosk8rX's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    the-ville, PA
    Posts
    358
    Reputation
    24
    Thanks
    53
    so can this be used to move any object?
    for example, can it be used to create weaponVAC?
    will be really useful if it can lol.
    ill go all COD and start lobbing nades back at 'em lol