Results 1 to 15 of 15
  1. #1
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,066
    Reputation
    323
    Thanks
    3,319
    My Mood
    Doh

    S2S Fun: Full Teleport

    Code:
     
    LTVector    vPos;
    
    ////////////////////////////////////////////////////////
    LTVector vPitchYawRoll(m_fPlayerPitch, m_fPlayerYaw, m_fPlayerRoll); // the 3 objects in the () are part of the PlayerMGR
    
    CAutoMessage cMsg;
            cMsg.Writeuint8(MID_PLAYER_TELEPORT); // good luck finding the id ;) the hint is it is 1-255
            cMsg.WriteLTVector(vPos);
            cMsg.WriteLTRotation(m_pPlayerCamera->GetCameraRotation( )); // good luck with the camera :)
        g_pLTClient->SendToServer(cMsg.Read(), MESSAGE_GUARANTEED);
    good luck this is noob proof, or i'd post the ID. Those of u who actually can reverse will get this working

    commando: You're probably the best non-coder coder I know LOL


  2. The Following 3 Users Say Thank You to supercarz1991 For This Useful Post:

    Ch40zz-C0d3r (04-07-2012),pDevice (07-21-2012),teehee15 (04-06-2012)

  3. #2
    teehee15's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    334
    Reputation
    52
    Thanks
    109
    lawls nice it seems its not nexons lucky day

  4. #3
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,066
    Reputation
    323
    Thanks
    3,319
    My Mood
    Doh
    its not their lucky day because they fail in updating from the old sources of other games

    commando: You're probably the best non-coder coder I know LOL


  5. #4
    street_21's Avatar
    Join Date
    Jul 2011
    Gender
    male
    Posts
    450
    Reputation
    -36
    Thanks
    54
    My Mood
    Amazed
    ............... 121?
    Respect List:
    @Black Diamond
    @ChaosMagician
    @TokolocoSK

  6. #5
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,066
    Reputation
    323
    Thanks
    3,319
    My Mood
    Doh
    lol i'm not saying 1 way or another :P

    besides... even if u get the right ID, still gotta get the classes... although u can leave out the Player Rotation and set it urself, that's just kind of an added bonus

    commando: You're probably the best non-coder coder I know LOL


  7. #6
    DATBIGMAOZEDONG's Avatar
    Join Date
    Feb 2012
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    this is just a shitty version of ghostmode. all it does is change your camera angle, your actual position doesnt change on the server side.

  8. #7
    SpadeCA's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    57
    Reputation
    7
    Thanks
    22
    My Mood
    Psychedelic
    Dont tell me
    inb4Matt?

  9. #8
    steven1578's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Location
    CShell.dll
    Posts
    684
    Reputation
    1
    Thanks
    936
    My Mood
    Busy
    #define MID_PLAYER_TELEPORT 121
    R.I.P Grandma! 3-17-2012

  10. #9
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,066
    Reputation
    323
    Thanks
    3,319
    My Mood
    Doh
    Quote Originally Posted by steven1578 View Post
    #define MID_PLAYER_TELEPORT 121
    good job you can read the NOLF2 source lol its not 121 for ca

    commando: You're probably the best non-coder coder I know LOL


  11. #10
    Refrain's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    136
    Reputation
    22
    Thanks
    28
    Quote Originally Posted by supercarz1991 View Post
    good job you can read the NOLF2 source lol its not 121 for ca
    You too did you even read the code
    Code:
    void CPlayerMgr::Teleport(const LTVector & vPos)
    {
    #ifndef _FINAL // Don't allow player teleporing in the final version...   <------------ this line right here
    
    	CAutoMessage cMsg;
    	cMsg.Writeuint8(MID_PLAYER_TELEPORT);
    	cMsg.WriteLTVector(vPos);
    	cMsg.WriteLTRotation(m_pPlayerCamera->GetCameraRotation( ));
        g_pLTClient->SendToServer(cMsg.Read(), MESSAGE_GUARANTEED);
    
    #endif // _FINAL
    }

  12. The Following User Says Thank You to Refrain For This Useful Post:

    matypatty (04-07-2012)

  13. #11
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,066
    Reputation
    323
    Thanks
    3,319
    My Mood
    Doh
    Quote Originally Posted by Refrain View Post
    You too did you even read the code
    Code:
    void CPlayerMgr::Teleport(const LTVector & vPos)
    {
    #ifndef _FINAL // Don't allow player teleporing in the final version...   <------------ this line right here
    
    	CAutoMessage cMsg;
    	cMsg.Writeuint8(MID_PLAYER_TELEPORT);
    	cMsg.WriteLTVector(vPos);
    	cMsg.WriteLTRotation(m_pPlayerCamera->GetCameraRotation( ));
        g_pLTClient->SendToServer(cMsg.Read(), MESSAGE_GUARANTEED);
    
    #endif // _FINAL
    }
    difference between me and u is the fact i got this working

    u just c&p'd the NOLF msg id for teleport

    commando: You're probably the best non-coder coder I know LOL


  14. #12
    Refrain's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    136
    Reputation
    22
    Thanks
    28
    Quote Originally Posted by supercarz1991 View Post
    difference between me and u is the fact i got this working

    u just c&p'd the NOLF msg id for teleport
    I tested through all 255 and nothing. I didn't expect Nexon to keep it in though

  15. #13
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,066
    Reputation
    323
    Thanks
    3,319
    My Mood
    Doh
    they have to. Its not used for normal players. The teleport is used to move NPC's from their spawner locations to the location they are visible/shootable on map

    if you knew anything about modding, you would understand. The way spawning zombies on cabin fever (for my example, its the easiest to explain) works is you know those 3 zombies under the map? those are the main spawners. Yeah you can kill em and it doesnt do anything but those mark where they spawn, From there they teleport to the top of the map

    everything needs a spawner except the main human player spawns, Those are GameStartPoints...

    commando: You're probably the best non-coder coder I know LOL


  16. #14
    Refrain's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    136
    Reputation
    22
    Thanks
    28
    Why the hell does it make sense to put a message telling the server when to move NPCs. The server should be telling the client that the NPC teleported and same with players as well.

  17. #15
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    North of Hell, South of Heaven
    Posts
    6,066
    Reputation
    323
    Thanks
    3,319
    My Mood
    Doh
    Quote Originally Posted by Refrain View Post
    Why the hell does it make sense to put a message telling the server when to move NPCs. The server should be telling the client that the NPC teleported and same with players as well.
    players never teleport. That's the thing. NPC's have to teleport from spawn to AIVolume location ... if you want to understand, read up some old AVP2 map creation tutorials

    AVP2 full map creation tutorials for modding

    commando: You're probably the best non-coder coder I know LOL


Similar Threads

  1. [Release] Full SDK for S2S, CreateObject and others
    By supercarz1991 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 20
    Last Post: 04-09-2012, 03:32 AM
  2. [Release] S2S Fun: No Player Animations
    By supercarz1991 in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 5
    Last Post: 04-06-2012, 01:22 AM
  3. Replies: 13
    Last Post: 02-22-2010, 11:59 AM
  4. Replies: 2
    Last Post: 03-26-2009, 06:50 PM
  5. Full Metal alchimist
    By gunot in forum Anime
    Replies: 27
    Last Post: 10-27-2006, 05:01 AM