mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-28 04:51:42 +00:00
Netsave player.hoverhyudoro
This commit is contained in:
parent
2196ccef62
commit
38ab22f022
1 changed files with 17 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ typedef enum
|
||||||
FOLLOWER = 0x04,
|
FOLLOWER = 0x04,
|
||||||
SKYBOXVIEW = 0x08,
|
SKYBOXVIEW = 0x08,
|
||||||
SKYBOXCENTER = 0x10,
|
SKYBOXCENTER = 0x10,
|
||||||
|
HOVERHYUDORO = 0x20,
|
||||||
} player_saveflags;
|
} player_saveflags;
|
||||||
|
|
||||||
static inline void P_ArchivePlayer(void)
|
static inline void P_ArchivePlayer(void)
|
||||||
|
|
@ -195,6 +196,9 @@ static void P_NetArchivePlayers(void)
|
||||||
if (players[i].skybox.centerpoint)
|
if (players[i].skybox.centerpoint)
|
||||||
flags |= SKYBOXCENTER;
|
flags |= SKYBOXCENTER;
|
||||||
|
|
||||||
|
if (players[i].hoverhyudoro)
|
||||||
|
flags |= HOVERHYUDORO;
|
||||||
|
|
||||||
WRITEUINT16(save_p, flags);
|
WRITEUINT16(save_p, flags);
|
||||||
|
|
||||||
if (flags & SKYBOXVIEW)
|
if (flags & SKYBOXVIEW)
|
||||||
|
|
@ -209,6 +213,9 @@ static void P_NetArchivePlayers(void)
|
||||||
if (flags & FOLLOWITEM)
|
if (flags & FOLLOWITEM)
|
||||||
WRITEUINT32(save_p, players[i].followmobj->mobjnum);
|
WRITEUINT32(save_p, players[i].followmobj->mobjnum);
|
||||||
|
|
||||||
|
if (flags & HOVERHYUDORO)
|
||||||
|
WRITEUINT32(save_p, players[i].hoverhyudoro->mobjnum);
|
||||||
|
|
||||||
WRITEUINT32(save_p, (UINT32)players[i].followitem);
|
WRITEUINT32(save_p, (UINT32)players[i].followitem);
|
||||||
|
|
||||||
WRITEUINT32(save_p, players[i].charflags);
|
WRITEUINT32(save_p, players[i].charflags);
|
||||||
|
|
@ -474,6 +481,9 @@ static void P_NetUnArchivePlayers(void)
|
||||||
if (flags & FOLLOWITEM)
|
if (flags & FOLLOWITEM)
|
||||||
players[i].followmobj = (mobj_t *)(size_t)READUINT32(save_p);
|
players[i].followmobj = (mobj_t *)(size_t)READUINT32(save_p);
|
||||||
|
|
||||||
|
if (flags & HOVERHYUDORO)
|
||||||
|
players[i].hoverhyudoro = (mobj_t *)(size_t)READUINT32(save_p);
|
||||||
|
|
||||||
players[i].followitem = (mobjtype_t)READUINT32(save_p);
|
players[i].followitem = (mobjtype_t)READUINT32(save_p);
|
||||||
|
|
||||||
//SetPlayerSkinByNum(i, players[i].skin);
|
//SetPlayerSkinByNum(i, players[i].skin);
|
||||||
|
|
@ -4213,6 +4223,13 @@ static void P_RelinkPointers(void)
|
||||||
CONS_Debug(DBG_GAMELOGIC, "respawn.wp not found on %d\n", mobj->type);
|
CONS_Debug(DBG_GAMELOGIC, "respawn.wp not found on %d\n", mobj->type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (mobj->player->hoverhyudoro)
|
||||||
|
{
|
||||||
|
temp = (UINT32)(size_t)mobj->player->hoverhyudoro;
|
||||||
|
mobj->player->hoverhyudoro = NULL;
|
||||||
|
if (!P_SetTarget(&mobj->player->hoverhyudoro, P_FindNewPosition(temp)))
|
||||||
|
CONS_Debug(DBG_GAMELOGIC, "hoverhyudoro not found on %d\n", mobj->type);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue