Advertisement
Dimitri_UA

GTA:EfLC/CCutscenes/getOffset/0x872410

May 2nd, 2012
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. Vector4 *__cdecl CCutscenes__getOffset(Vector4 *vector, int sectionID)
  2. {
  3.   Vector4 *result;
  4.   CCutsceneSection *section;
  5.  
  6.   section = cutsceneSections[sectionID];
  7.   result = vector;
  8.   if ( section )
  9.   {
  10.     vector->x = section->offset.x;
  11.     vector->y = section->offset.y;
  12.     vector->z = section->offset.z;
  13.   }
  14.   else
  15.   {
  16.     LODWORD(vector->x) = 0;
  17.     LODWORD(vector->y) = 0;
  18.     LODWORD(vector->z) = 0;
  19.   }
  20.   return result;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement