#define PTR_CAST( x ) *( DWORD* )x #define COMMANDER_ASSETS_OFF 0x9E0970 #define SQUAD_CMD_BASE 0x9D903C #define CROSSHAIR_DMA ( ( ( PTR_CAST( COMMANDER_ASSETS_OFF ) ) + 0x130 ) + 0x170 ) #define VIEWDISTANCE_DMA ( PTR_CAST( ( RendDx9.Base + 0x239970 ) ) + 0x4F8 ) #define FOG_DMA ( PTR_CAST( ( RendDx9.Base + 0x23D7C0 ) ) + 0x38 ) #define STATIC_TV_DMA ( PTR_CAST( ( RendDx9.Base + 0x23D7C0 ) ) + 0x27 ) #define SUPPLY_DMA ( PTR_CAST( COMMANDER_ASSETS_OFF ) + 0x15c ) + 0x5C ) #define JEEP_DMA ( PTR_CAST( COMMANDER_ASSETS_OFF ) + 0x15c ) + 0x64 ) #define ARTY_DMA ( PTR_CAST( COMMANDER_ASSETS_OFF ) + 0x15c ) + 0x44 ) #define UAV_DMA ( PTR_CAST( COMMANDER_ASSETS_OFF ) + 0x15c ) + 0x30 ) #define TEAM_DMA ( PTR_CAST( SQUAD_CMD_BASE ) + 0x60 ) + 0xD8 ) #define FORCE_COMMANDER_DMA ( PTR_CAST( SQUAD_CMD_BASE ) + 0x60 ) + 0x110 ) #define FORCE_SQUAD_DMA ( PTR_CAST( SQUAD_CMD_BASE ) + 0x60 ) + 0x111 ) #define JUMP_SQUAD_DMA ( PTR_CAST( 0x9D903C ) + 0x60 ) + 0x10C ) #define GRN_STATIC_DMA ( ( RendDx9.Base + 0x23D3D8 ) + 0x4 ) #define ZOOM_DMA ( PTR_CAST( SQUAD_CMD_BASE ) + 0x60 ) + 0xC4 ) #define ZOOM_DMA2 ( PTR_CAST( SQUAD_CMD_BASE ) + 0x60 ) + 0xC8 ) #define UNLIM_CARS_DMA ( PTR_CAST( COMMANDER_ASSETS_OFF ) + 0x2F0 )