Advertisement
dcomicboy

teleport

Apr 3rd, 2012
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. void CPlayerMgr::Teleport(const LTVector & vPos)
  2. {
  3. #ifndef _FINAL // Don't allow player teleporing in the final version...
  4.  
  5. CAutoMessage cMsg;
  6. cMsg.Writeuint8(MID_PLAYER_TELEPORT);
  7. cMsg.WriteLTVector(vPos);
  8. cMsg.WriteLTRotation(m_pPlayerCamera->GetCameraRotation( ));
  9. g_pLTClient->SendToServer(cMsg.Read(), MESSAGE_GUARANTEED);
  10.  
  11. #endif // _FINAL
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement