- Timestamp:
- Jun 2, 2013, 1:58:39 PM (11 years ago)
- Location:
- Daodan/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/flatline/Flatline.c
r877 r878 15 15 16 16 uint32_t last1 = 0; uint32_t last2 = 0; 17 player_info Players[MAX_PLAYERS] = {{0}, {0}, {0}, {0}};17 player_info Players[MAX_PLAYERS]; 18 18 player_info * PlayerList[MAX_CONNECTIONS] = {0}; 19 19 multiplayer_status MultiplayerStatus; … … 33 33 34 34 35 short TRrAnimation_GetType(c har* anim)35 short TRrAnimation_GetType(const void* anim) 36 36 { 37 37 return *(short*)(anim + 0x15A); … … 42 42 { 43 43 ONCC *ONCC = Char->ONCC; 44 void *TRAC = ONCC->TRAC;44 void *TRAC = (void*)ONCC->TRAC; 45 45 short index = Char->Number; 46 46 short animType; -
Daodan/src/flatline/Flatline_BSL.c
r877 r878 211 211 } 212 212 213 uint16_t tele(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret)213 uint16_t ONICALL tele(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret) 214 214 { 215 215 ActiveCharacter *AC = ONrGetActiveCharacter(ONgGameState->PlayerCharacter); -
Daodan/src/flatline/Flatline_Hooks.c
r877 r878 4 4 5 5 //Don't modify this. 6 char *FLrHook_DoorOpen( DoorObject *Door, Character *Char)6 char* ONICALL FLrHook_DoorOpen( DoorObject *Door, Character *Char) 7 7 { 8 8 int crashStop; … … 22 22 return (char*)(Door->Door.class); 23 23 } 24 short FLrHook_ConsoleActivate( void *inObject, Character *inCharacter )24 short ONICALL FLrHook_ConsoleActivate( void *inObject, Character *inCharacter ) 25 25 { 26 26 if(server_started) … … 54 54 */ 55 55 56 void FLrHook_Lasers( Character* Char )56 void ONICALL FLrHook_Lasers( Character* Char ) 57 57 { 58 58 ONiDrawWeaponSight( Char ); -
Daodan/src/flatline/Flatline_Hooks.h
r877 r878 3 3 4 4 #include "../Oni.h" 5 char *FLrHook_DoorOpen( DoorObject *Door, Character *Char);6 short FLrHook_ConsoleActivate( void *inObject, Character *inCharacter );7 void FLrHook_Lasers( Character* PlayerChar );5 char* ONICALL FLrHook_DoorOpen( DoorObject *Door, Character *Char); 6 short ONICALL FLrHook_ConsoleActivate( void *inObject, Character *inCharacter ); 7 void ONICALL FLrHook_Lasers( Character* PlayerChar ); 8 8 9 9 #endif -
Daodan/src/patches/Patches.c
r877 r878 226 226 } 227 227 228 // Adds new BSL functions if usedaodanbsl is enabled228 // Adds new BSL functions 229 229 void DD_Patch_DaodanInit() 230 230 { … … 249 249 DDrPatch_NOOP((char*)(OniExe + 0x000E1957), 6 ); 250 250 DDrPatch_MakeCall((void*)(OniExe + 0x000E17F6), FLrHook_Lasers ); 251 252 251 253 252 //Flatline related stuff 254 253 DDrPatch_MakeCall((void*)(OniExe + 0x000FBCEA), DDrText_Hook); 255 254 256 DDrPatch_Int32((int*)(OniExe + 0x000B24D2), FLrSpawnHack);255 DDrPatch_Int32((int*)(OniExe + 0x000B24D2), (unsigned int)FLrSpawnHack); 257 256 258 257 DDrPatch_NOOP((char*)(OniExe + 0x000C26CB), 6);
Note:
See TracChangeset
for help on using the changeset viewer.