| 87 |
|
// return Frequency.QuadPart; |
| 88 |
|
} |
| 89 |
|
|
| 90 |
< |
void ONICALL DDrWeapon2Message(int* weapon, void* output_ptr) { |
| 90 |
> |
void ONICALL DDrWeapon2Message(int* weapon, void* output_ptr) |
| 91 |
> |
{ |
| 92 |
|
char buffer[128] = {0}; |
| 93 |
|
char* weapon_string = (char*)(*(weapon + 1)+0x5C); |
| 94 |
|
int16_t ammo = *(int16_t *)((int)weapon + 0x56); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
|
| 110 |
< |
void ONICALL DDrMake_Weapon_Message(char* weapon_string, char* output_ptr) { |
| 110 |
> |
void ONICALL DDrMake_Weapon_Message(char* weapon_string, char* output_ptr) |
| 111 |
> |
{ |
| 112 |
|
char* weapon_msg = NULL; //The normal "You have recieved X" message. |
| 113 |
|
char weapon_name[64] = {'\0'}; //The stripped weapon name |
| 114 |
|
//TODO, someday: dynamically detect different keybindings. |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
} |
| 129 |
+ |
typedef struct |
| 130 |
+ |
{ |
| 131 |
+ |
uint16_t x; |
| 132 |
+ |
uint16_t y; |
| 133 |
+ |
|
| 134 |
+ |
} IMtPoint2D; |
| 135 |
+ |
IMtPoint2D Point = {256, 250}; |
| 136 |
+ |
extern void* TSrTest; |
| 137 |
+ |
void ONICALL DDrText_Hook() |
| 138 |
+ |
{ |
| 139 |
+ |
if(TSrTest) |
| 140 |
+ |
{ |
| 141 |
+ |
TSrContext_DrawText(TSrTest, "FINALLY THIS BLOODY TEXT THING WORKS\n Gotta call it at the right point...", 128, 0, &Point); |
| 142 |
+ |
} |
| 143 |
+ |
COrConsole_StatusLine_Display(); |
| 144 |
+ |
|
| 145 |
+ |
} |