Directly ripped from my source (just wrote it):
Code:/* * The battle state should work using the following routine: * upon entering a game the client should send a loading packet with the value (0x64, 100) * Once recieved we should notify the other clients that it has loadded. * Once the packet is sent out the client reqeuests the battle info packet, as soon as that is recieved we get the: * Battle Reqeuest Join packet, in which we respond with the peers in that stage (IP & Port) and the MTD_CharInfo * structure. From there we will confirm the timesync (determine speed hack, etc) with the client. After the time sync * has been accepted the client can finally request a spawn. Once the client is spawned now we just thread a timer until * the clock is down or we get enough game kill packets to end the match. * * Intrusion works the same except they request a peerlist. * * PS: Maiet's method of EXP is annoying as fuck. * * It works like this: * result = (ExpTable[killerLevel+1]<<1)/100 * * Now when sending the packet you have to do result << 16. * * Fuck you MAIET. */



Reply With Quote


