| 113 |
|
else{} |
| 114 |
|
return 0; |
| 115 |
|
} |
| 116 |
< |
|
| 117 |
< |
|
| 116 |
> |
uint16_t ONICALL addfake(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret) |
| 117 |
> |
{ |
| 118 |
> |
player_info * info; |
| 119 |
> |
info = FLrServer_AddPlayer( 0, "Fake", 0 ); |
| 120 |
> |
info->Actions1 = Action_Forward; |
| 121 |
> |
return 0; |
| 122 |
> |
} |
| 123 |
|
void SLrFlatline_Initialize() { |
| 124 |
|
|
| 125 |
< |
DDrPatch_MakeCall(OniExe + 0x000FA88B, FLrInput_Update_Keys); |
| 125 |
> |
DDrPatch_MakeCall(0x004FA88B, FLrInput_Update_Keys); |
| 126 |
> |
|
| 127 |
|
SLrGlobalVariable_Register_Int32("skip", "skips", &(((GameState*)ONgGameState)->field_40) ); |
| 128 |
|
SLrScript_Command_Register_ReturnType("connect","Connects to a server", "ip:string", sl_void, connect_to_server); |
| 129 |
|
SLrScript_Command_Register_Void("host","Starts a server", "", start_server); |
| 130 |
|
SLrScript_Command_Register_Void("msg","Sends a message", "", send_message); |
| 131 |
< |
SLrScript_Command_Register_Void("name","changes your name", "name:str", change_name); |
| 131 |
> |
SLrScript_Command_Register_ReturnType("name","changes your name", "name:str", sl_void, change_name); |
| 132 |
|
SLrScript_Command_Register_Void("status","shows the connection status", "", status); |
| 133 |
|
SLrGlobalVariable_Register_String("country", "Your Multiplayer country", player_name); |
| 134 |
< |
|
| 134 |
> |
SLrScript_Command_Register_ReturnType("addfakeclient","adds a fake client", "", sl_void, addfake); |
| 135 |
|
} |