SHARE
TWEET

Mafia 3 Script Engine

a guest Oct 8th, 2016 340 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. See more at https://mafiamods.com/forums/topic/mafia-3-modding-mega-thread
  2.  
  3. class C_ScriptGameMachineWrapper // Total size: 24 bytes
  4. {
  5. public:
  6.     uint64_t    VTABLE;         // 00-08
  7.     uint64_t    unkpointer;     // 08-16
  8.     uint8_t     unkbyte;        // 16-17
  9.     PAD(0x7);
  10.    
  11.     virtual void ~C_ScriptGameMachineWrapper();
  12.    
  13.     virtual void Function001();
  14.     virtual void Function002();
  15.     virtual void Function003(); // nullsub
  16.     virtual void Function004();
  17.     virtual void Function005();
  18.     virtual void Function006();
  19. };
  20.  
  21. class C_ScriptMachine // Total size: 412 bytes
  22. {
  23. public:
  24.     _QWORD qword0; // VTABLE
  25.     _QWORD qword8;
  26.     _QWORD qword10;
  27.     _QWORD qword18;
  28.     DWORD qword20;
  29.     _QWORD qword28;
  30.     _QWORD qword30;
  31.     _BYTE gap0[0x28]; // seems to be a std::vector
  32.     _QWORD qword60;
  33.     _QWORD qword68;
  34.     _QWORD qword70;
  35.     _QWORD qword78;
  36.     _QWORD qword80;
  37.     _QWORD qword88;
  38.     _QWORD qword90;
  39.     _QWORD qword98;
  40.     _QWORD qwordA0;
  41.     _QWORD qwordA8;
  42.     _QWORD qwordB0;
  43.     _QWORD qwordB8;
  44.     _BYTE gapC0[16];
  45.     _QWORD qwordD0;
  46.     _QWORD qwordD8;
  47.     _QWORD qwordE0;
  48.     _BYTE byteE8;
  49.     _BYTE gapE9[15];
  50.     _QWORD qwordF8;
  51.     _QWORD qword100;
  52.     _BYTE gap108[16];
  53.     _DWORD dword118;
  54.     void *pvoid120;
  55.     _QWORD qword128;
  56.     _QWORD qword130;
  57.     _DWORD dword138;
  58.     _QWORD qword140;
  59.     _QWORD qword148;
  60.     _QWORD qword150;
  61.     _DWORD dword158;
  62.     _DWORD dword15C;
  63.     _DWORD dword160;
  64.     _BYTE gap164[20];
  65.     _DWORD dword178;
  66.     _QWORD qword180;
  67.     _QWORD qword188;
  68.     _QWORD qword190;
  69.     _QWORD qword198;
  70.    
  71.     virtual void ~C_ScriptMachine();
  72.    
  73.     virtual void Function0001();
  74.     virtual void Function0002();
  75.     virtual void Function0003();
  76.     virtual void Function0004();
  77.     virtual void Function0005();
  78.     virtual void Function0006();
  79.     virtual void Function0007();
  80.     virtual void Function0008();
  81.     virtual void Function0009();
  82.     virtual void Function0010();
  83.     virtual void Function0011();
  84.     virtual void Function0012();
  85.     virtual void Function0013();
  86.     virtual void Function0014();
  87.     virtual void Function0015();
  88.     virtual void Function0016();
  89.     virtual void Function0017();
  90.     virtual void Function0018();
  91.     virtual void Function0019();  // nullsub
  92.     virtual void Function0020();
  93.     virtual void Function0021();
  94. }
  95.  
  96. class ue::game::script::C_ScriptGameMachine::ctor: public C_ScriptMachine // size: (start at offset 416, end at 560)
  97. {
  98. public:
  99.     _QWORD qword1A0; // ptr to 40(0x28) size big object, as down in C_ScriptMachine, seems to be a vector
  100.     _QWORD qword1A8;
  101.     _QWORD qword1B0;
  102.     _QWORD qword1B8;
  103.     _QWORD qword1C0;
  104.     _QWORD qword1C8;
  105.     _QWORD qword1D0;
  106.     _QWORD qword1D8;
  107.     _QWORD qword1E0;
  108.     _QWORD qword1E8;
  109.     _QWORD qword1F0;
  110.     _QWORD qword1F8;
  111.     _QWORD qword200;
  112.     _QWORD qword208;
  113.     _BYTE byte210;
  114.     _QWORD qword218;
  115.     _QWORD qword220;
  116.     _QWORD qword228;
  117.    
  118.     virtual void ~C_ScriptGameMachineWrapper();
  119.    
  120.     virtual void Function0001() override;
  121.     virtual void Function0002() override;
  122.     virtual void Function0003() override;
  123.     virtual void Function0004();
  124.     virtual void Function0005();
  125.     virtual void Function0006() override;
  126.     virtual void Function0007();
  127.     virtual void Function0008();
  128.     virtual void Function0009();
  129.     virtual void Function0010();
  130.     virtual void Function0011();
  131.     virtual void Function0012();
  132.     virtual void Function0013() override;
  133.     virtual void Function0014();
  134.     virtual void Function0015();
  135.     virtual void Function0016();
  136.     virtual void Function0017();
  137.     virtual void Function0018();
  138.     virtual void Function0019(); // nullsub
  139.     virtual void Function0020() override;
  140.     virtual void Function0021();
  141. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top