Advertisement
fastman92

SET_OBJECT_ROTATION different version from VCS

Apr 12th, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.73 KB | None | 0 0
  1. // command name: SET_OBJECT_ROTATION
  2. // a different version like this exists in GTA VCS
  3. // what does it do?
  4.  
  5.     case 0x453:
  6.       CRunningScript__CollectParameters(this, 4u);
  7.       v4 = CPool_CObject__atHandle(ObjectPool, CollectiveArray[0].dwParam);
  8.  
  9. //      CWorld__Remove(&v4->__parent.__parent);
  10.  
  11.       v5 = *(float *)&CollectiveArray[3].dwParam * 0.01745329238474369;
  12.       v6 = *(float *)&CollectiveArray[2].dwParam * 0.01745329238474369;
  13.       v7 = *(float *)&CollectiveArray[1].dwParam * 0.01745329238474369;
  14.       CPlaceable__setRotation(&v4->__parent.__parent.__parent, v7, v6, v5);
  15.  
  16. /*
  17.       CMatrix__updateRW((int)v4);
  18.       CEntity__UpdateRwFrame(v4);
  19.       CWorld__add(&v4->__parent.__parent);
  20. */
  21.       return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement