| 178 |
|
return Oni_ONrMechanics_Register(inObjectType, inObjectTypeIndex, inGroupName, inSizeInMemory, inObjectMethods, inFlags, inMechanicsMethods); |
| 179 |
|
} |
| 180 |
|
|
| 181 |
+ |
_ONrGameState_HandleUtilityInput Oni_ONrGameState_HandleUtilityInput = (_ONrGameState_HandleUtilityInput)0; |
| 182 |
+ |
void ONICALL DD_ONrGameState_HandleUtilityInput(const void* inInput) |
| 183 |
+ |
{ |
| 184 |
+ |
Oni_ONrGameState_HandleUtilityInput(inInput); |
| 185 |
+ |
|
| 186 |
+ |
if (ONrDebugKey_WentDown(7)) { |
| 187 |
+ |
OBJgTriggerVolume_Visible = !OBJgTriggerVolume_Visible; |
| 188 |
+ |
} |
| 189 |
+ |
} |
| 190 |
|
|
| 191 |
|
|
| 192 |
|
int DD_Patch_DebugNameTextureInit(short width, short height, int type, int allocated, int flags, char* name, void** output) |
| 505 |
|
void DD_Patch_ShowTriggerVolumes() |
| 506 |
|
{ |
| 507 |
|
Oni_ONrMechanics_Register = DDrPatch_MakeDetour((void*)ONrMechanics_Register, (void*)DD_ONrMechanics_Register); |
| 508 |
+ |
Oni_ONrGameState_HandleUtilityInput = DDrPatch_MakeDetour((void*)ONrGameState_HandleUtilityInput, (void*)DD_ONrGameState_HandleUtilityInput); |
| 509 |
|
} |
| 510 |
|
|
| 511 |
|
// Experiment with allowing enemies to be thrown over railings |