| 22 |
|
case(EV_CONSOLE_USE): |
| 23 |
|
OBJrConsole_OnActivate( OBJrConsole_GetByID(args[0]), PlayerList[args[1]]->Chr ); |
| 24 |
|
break; |
| 25 |
+ |
case(EV_RESPAWN): |
| 26 |
+ |
ONrCorpse_Create(PlayerList[args[0]]->Chr); |
| 27 |
+ |
break; |
| 28 |
|
default: |
| 29 |
|
break; |
| 30 |
|
} |
| 44 |
|
|
| 45 |
|
//starts the connection |
| 46 |
|
DDrConsole_PrintF("Connecting to server %s on socket %i", inet_ntoa(address.sin_addr), client_sock); |
| 47 |
< |
sent_bytes = NetUDPSocket_Send(client_sock, (sockaddr*)&address, (char*)packet, 255); |
| 47 |
> |
sent_bytes = NetUDPSocket_Send(client_sock, (sockaddr*)&address, (char*)packet, FLATLINE_HEADER + sizeof(connect_send) ); |
| 48 |
|
if(sent_bytes == SOCKET_ERROR) { |
| 49 |
|
NetCatchError(); |
| 50 |
|
} |
| 75 |
|
//DDrPatch_MakeJump( 0x004F7EB1, 0x004F8030 ); |
| 76 |
|
|
| 77 |
|
|
| 78 |
< |
DDrPatch_Byte(0x04ED6FB, 0xEB); |
| 78 |
> |
//DDrPatch_Byte(0x04ED6FB, 0xEB); |
| 79 |
|
|
| 80 |
|
//DDrConsole_PrintF("Slot %i", ((connect_reply*)packet)->player_slot); |
| 81 |
|
//DDrPatch_NOOP(0x43B23,0x10); |