mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
LSZ bungee object/variable definitions
This commit is contained in:
parent
908bbba4ec
commit
35e530be3d
5 changed files with 40 additions and 0 deletions
|
|
@ -730,6 +730,11 @@ struct player_t
|
|||
fixed_t rdaddmomy;
|
||||
fixed_t rdaddmomz;
|
||||
|
||||
////////////
|
||||
// bungee //
|
||||
////////////
|
||||
UINT8 bungee; // constants are defined with the object file for the bungee.
|
||||
|
||||
//
|
||||
|
||||
SINT8 lives;
|
||||
|
|
|
|||
|
|
@ -5827,6 +5827,8 @@ const char *const MOBJTYPE_LIST[] = { // array length left dynamic for sanity t
|
|||
|
||||
"MT_RIDEROID",
|
||||
"MT_RIDEROIDNODE",
|
||||
|
||||
"MT_LSZ_BUNGEE",
|
||||
};
|
||||
|
||||
const char *const MOBJFLAG_LIST[] = {
|
||||
|
|
|
|||
27
src/info.c
27
src/info.c
|
|
@ -30442,6 +30442,33 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
|
|||
MF_NOGRAVITY|MF_NOCLIP, // flags
|
||||
S_NULL // raisestate
|
||||
},
|
||||
|
||||
{ // MT_LSZ_BUNGEE
|
||||
3440, // doomednum
|
||||
S_INVISIBLE, // spawnstate
|
||||
1000, // spawnhealth
|
||||
S_NULL, // seestate
|
||||
sfx_None, // seesound
|
||||
0, // reactiontime
|
||||
sfx_None, // attacksound
|
||||
S_NULL, // painstate
|
||||
0, // painchance
|
||||
sfx_None, // painsound
|
||||
S_NULL, // meleestate
|
||||
S_NULL, // missilestate
|
||||
S_NULL, // deathstate
|
||||
S_NULL, // xdeathstate
|
||||
sfx_None, // deathsound
|
||||
0, // speed
|
||||
127*FRACUNIT, // radius
|
||||
64*FRACUNIT, // height
|
||||
0, // display offset
|
||||
0, // mass
|
||||
0, // damage
|
||||
sfx_None, // activesound
|
||||
MF_NOGRAVITY|MF_SPECIAL, // flags
|
||||
S_NULL // raisestate
|
||||
},
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -7026,6 +7026,8 @@ typedef enum mobj_type
|
|||
MT_RIDEROID,
|
||||
MT_RIDEROIDNODE,
|
||||
|
||||
MT_LSZ_BUNGEE,
|
||||
|
||||
MT_FIRSTFREESLOT,
|
||||
MT_LASTFREESLOT = MT_FIRSTFREESLOT + NUMMOBJFREESLOTS - 1,
|
||||
NUMMOBJTYPES
|
||||
|
|
|
|||
|
|
@ -563,6 +563,8 @@ static void P_NetArchivePlayers(savebuffer_t *save)
|
|||
WRITEFIXED(save->p, players[i].rdaddmomy);
|
||||
WRITEFIXED(save->p, players[i].rdaddmomz);
|
||||
|
||||
WRITEUINT8(save->, players[i].bungee);
|
||||
|
||||
// respawnvars_t
|
||||
WRITEUINT8(save->p, players[i].respawn.state);
|
||||
WRITEUINT32(save->p, K_GetWaypointHeapIndex(players[i].respawn.wp));
|
||||
|
|
@ -1046,6 +1048,8 @@ static void P_NetUnArchivePlayers(savebuffer_t *save)
|
|||
players[i].rdaddmomx = READFIXED(save->p);
|
||||
players[i].rdaddmomy = READFIXED(save->p);
|
||||
players[i].rdaddmomz = READFIXED(save->p);
|
||||
|
||||
players[i].bungee = READUINT8(save->p);
|
||||
|
||||
// respawnvars_t
|
||||
players[i].respawn.state = READUINT8(save->p);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue