Changeset 877 for Daodan/src/flatline
- Timestamp:
- Jun 2, 2013, 1:25:34 PM (11 years ago)
- Location:
- Daodan/src/flatline
- Files:
-
- 1 added
- 24 moved
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/flatline/Flatline.c
r876 r877 1 1 #include "Flatline.h" 2 #include " Oni_Character.h"3 #include " Oni_Gamestate.h"4 #include " Oni_Symbols.h"2 #include "../Oni_Character.h" 3 #include "../Oni_GameState.h" 4 #include "../Oni_Symbols.h" 5 5 #include "Flatline_Client.h" 6 6 #include "Flatline_Server.h" 7 7 #include "Flatline_Events.h" 8 #include " Daodan_Utility.h"9 #include < Windows.h>8 #include "../Daodan_Utility.h" 9 #include <windows.h> 10 10 //#include <sys/time.h> 11 11 #include <time.h> 12 12 #include <float.h> 13 13 14 #define isnan(x) ((x) != (x)) 15 14 16 uint32_t last1 = 0; uint32_t last2 = 0; 15 17 player_info Players[MAX_PLAYERS] = {{0}, {0}, {0}, {0}}; -
Daodan/src/flatline/Flatline.h
r876 r877 1 #pragma once2 1 #ifndef FLATLINE_H 3 2 #define FLATLINE_H … … 17 16 #include <winsock2.h> 18 17 #include "Flatline_Win32.h" 19 #else 20 #include <sys/ioctl.h> 21 #include <sys/types.h> 22 #include <sys/socket.h> 23 #include <unistd.h> 24 #include <stropts.h> 25 #include <arpa/inet.h> 26 #include <netinet/in.h> 27 28 #define NetPlatform_Initalize() /* */ 29 #define NetPlatform_Shutdown() /* */ 30 #define closesocket close 31 #define ioctlsocket ioctl 32 #endif 33 34 #include "Daodan.h" 35 #include "BFW_Utility.h" 36 #include "Daodan_Console.h" 37 #include "Oni_Character.h" 38 #include "Oni_Gamestate.h" 18 19 #include "../Daodan.h" 20 #include "../BFW_Utility.h" 21 #include "../Daodan_Console.h" 22 #include "../Oni_Character.h" 23 #include "../Oni_GameState.h" 39 24 #include "Flatline_Packet.h" 40 25 41 #include " Oni_Symbols.h"26 #include "../Oni_Symbols.h" 42 27 //#define breakpoint asm("int3") 43 28 … … 307 292 308 293 #define FLATLINE_PORT 27778 294 295 #endif -
Daodan/src/flatline/Flatline_BSL.c
r876 r877 1 1 #include <winsock2.h> 2 #include " BFW_ScriptLang.h"3 4 #include " Daodan_Patch.h"5 #include " Daodan_BSL.h"2 #include "../BFW_ScriptLang.h" 3 4 #include "../Daodan_Patch.h" 5 #include "../Daodan_BSL.h" 6 6 #include "Flatline_BSL.h" 7 7 #include "Flatline.h" … … 9 9 #include "Mariusnet_Public.h" 10 10 #include "Flatline_Client.h" 11 11 12 unsigned char server_started = 0; 12 13 unsigned char client_connected = 0; … … 16 17 char player_country[256] = {0}; 17 18 int update_rate = 5; 18 #include "Oni.h" 19 #include "Daodan_Cheater.h" 19 20 #include "../Oni.h" 21 #include "../Daodan_Cheater.h" 22 20 23 uint16_t ONICALL start_server(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret) 21 24 { -
Daodan/src/flatline/Flatline_BSL.h
r876 r877 1 1 #ifndef FLATLINE_BSL_H 2 2 #define FLATLINE_BSL_H 3 #include " Daodan.h"3 #include "../Daodan.h" 4 4 void SLrFlatline_Initialize(); 5 5 uint16_t ONICALL FLrSpawnHack(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret); -
Daodan/src/flatline/Flatline_Hooks.c
r876 r877 32 32 } 33 33 34 int FLrHook_DebugNameTextureInit(short width, short height, int type, int allocated, int flags, char* name, void** output)35 {36 //flags = (1 << 10);37 type = 1;38 //DDrPatch_Byte( 0x005EB83C + 3, 0xff );39 DDrPatch_Int32( 0x005EB83C, 0xFF000000 );40 return M3rTextureMap_New(width, height, type, allocated, flags, name, output);41 }42 43 short FLrHook_DebugNameShadeHack( Character* Char )44 {45 46 return TSrContext_SetShade(*(void**)0x005EB844, ONrCharacter_GetHealthShade( Char->Health, Char->MaxHealth ));47 //return TSrContext_SetShade(*(void**)0x005EB844, 0xFFFFFFFF);48 }49 34 /* 50 35 void FLrHook_Lasers( Character* PlayerChar ) -
Daodan/src/flatline/Flatline_Hooks.h
r876 r877 1 #include "Oni.h" 1 #ifndef FLATLINE_HOOKS_H 2 #define FLATLINE_HOOKS_H 3 4 #include "../Oni.h" 2 5 char * FLrHook_DoorOpen( DoorObject *Door, Character *Char); 3 6 short FLrHook_ConsoleActivate( void *inObject, Character *inCharacter ); 4 int FLrHook_DebugNameTextureInit(short width, short height, int type, int allocated, int flags, char* name, void** output);5 short FLrHook_DebugNameShadeHack( Character* Char );6 7 void FLrHook_Lasers( Character* PlayerChar ); 8 9 #endif -
Daodan/src/flatline/Flatline_Net.c
r876 r877 1 #include "Flatline_Net.h" 1 2 #include "Flatline.h" 2 3 #include "Flatline_Server.h" -
Daodan/src/flatline/Flatline_Net.h
r876 r877 1 1 #ifndef FLATLINE_NET_H 2 2 #define FLATLINE_NET_H 3 4 #include "stdint.h" 3 5 4 6 #define pad1_size (sizeof(int64_t) - sizeof(short)) -
Daodan/src/flatline/Flatline_PacketBuilder.c
r876 r877 1 1 #include "Flatline.h" 2 #include " Oni_Symbols.h"2 #include "../Oni_Symbols.h" 3 3 #include <assert.h> 4 4 -
Daodan/src/flatline/Flatline_Server.c
r876 r877 1 1 #include "Flatline.h" 2 2 #include "Flatline_Server.h" 3 #include < Windows.h>3 #include <windows.h> 4 4 //#include "PortForwardWrapper.h" 5 5 #include "Mariusnet_Public.h" -
Daodan/src/flatline/Flatline_Win32.h
r876 r877 1 #pragma once 1 #ifndef FLATLINE_WIN32_H 2 #define FLATLINE_WIN32_H 2 3 3 4 unsigned char NetPlatform_Initalize(); 4 5 unsigned char NetPlatform_Shutdown(); 6 7 #endif -
Daodan/src/flatline/Mariusnet.c
r876 r877 6 6 #include "Flatline_Client.h" 7 7 #include "Mariusnet_Defs.h" 8 #include " Daodan_Console.h"9 #include " Oni_Symbols.h"8 #include "../Daodan_Console.h" 9 #include "../Oni_Symbols.h" 10 10 #include <stdio.h> 11 11 -
Daodan/src/flatline/Mariusnet_Defs.h
r876 r877 1 #ifndef MARIUSNET_DEFS_H 2 #define MARIUSNET_DEFS_H 3 1 4 //to client 2 5 #include "Mariusnet_Public.h" … … 215 218 }; 216 219 } marius_packet; 220 221 #endif
Note:
See TracChangeset
for help on using the changeset viewer.