mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-23 17:51:31 +00:00
Added botstuffs to savestate
This commit is contained in:
parent
25bf4b54e2
commit
1274b4651e
1 changed files with 25 additions and 0 deletions
|
@ -158,6 +158,18 @@ static void P_NetArchivePlayers(void)
|
||||||
WRITEUINT32(save_p, players[i].dashmode);
|
WRITEUINT32(save_p, players[i].dashmode);
|
||||||
WRITEUINT32(save_p, players[i].skidtime);
|
WRITEUINT32(save_p, players[i].skidtime);
|
||||||
|
|
||||||
|
//////////
|
||||||
|
// Bots //
|
||||||
|
//////////
|
||||||
|
WRITEUINT8(save_p, players[i].bot);
|
||||||
|
WRITEUINT8(save_p, players[i].botmem.lastForward);
|
||||||
|
WRITEUINT8(save_p, players[i].botmem.lastBlocked);
|
||||||
|
WRITEUINT8(save_p, players[i].botmem.catchup_tics);
|
||||||
|
WRITEUINT8(save_p, players[i].botmem.thinkstate);
|
||||||
|
|
||||||
|
WRITEUINT8(save_p, players[i].blocked);
|
||||||
|
WRITEUINT16(save_p, players[i].lastbuttons);
|
||||||
|
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
// Conveyor Belt Movement //
|
// Conveyor Belt Movement //
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
|
@ -372,6 +384,19 @@ static void P_NetUnArchivePlayers(void)
|
||||||
players[i].dashmode = READUINT32(save_p); // counter for dashmode ability
|
players[i].dashmode = READUINT32(save_p); // counter for dashmode ability
|
||||||
players[i].skidtime = READUINT32(save_p); // Skid timer
|
players[i].skidtime = READUINT32(save_p); // Skid timer
|
||||||
|
|
||||||
|
//////////
|
||||||
|
// Bots //
|
||||||
|
//////////
|
||||||
|
players[i].bot = READUINT8(save_p);
|
||||||
|
|
||||||
|
players[i].botmem.lastForward = READUINT8(save_p);
|
||||||
|
players[i].botmem.lastBlocked = READUINT8(save_p);
|
||||||
|
players[i].botmem.catchup_tics = READUINT8(save_p);
|
||||||
|
players[i].botmem.thinkstate = READUINT8(save_p);
|
||||||
|
|
||||||
|
players[i].blocked = READUINT8(save_p);
|
||||||
|
players[i].lastbuttons = READUINT16(save_p);
|
||||||
|
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
// Conveyor Belt Movement //
|
// Conveyor Belt Movement //
|
||||||
////////////////////////////
|
////////////////////////////
|
||||||
|
|
Loading…
Reference in a new issue