mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-02-21 03:11:24 +00:00
Random items poof instead of sparkle
Also added a poof when they respawn in Battle
This commit is contained in:
parent
ff09a51915
commit
118721ebc1
3 changed files with 9 additions and 5 deletions
|
@ -14285,7 +14285,7 @@ mobjinfo_t mobjinfo[NUMMOBJTYPES] =
|
|||
16*FRACUNIT, // radius
|
||||
32*FRACUNIT, // height
|
||||
0, // display offset
|
||||
MT_SPARK, // mass
|
||||
MT_EXPLODE, // mass
|
||||
0, // damage
|
||||
sfx_None, // activesound
|
||||
MF_NOCLIP, // flags
|
||||
|
|
|
@ -1480,12 +1480,12 @@ static menuitem_t OP_NetgameOptionsMenu[] =
|
|||
{IT_STRING | IT_CVAR, NULL, "Frantic Items", &cv_kartfrantic, 34},
|
||||
|
||||
{IT_STRING | IT_CVAR, NULL, "Item Respawn", &cv_itemrespawn, 50},
|
||||
{IT_STRING | IT_CVAR, NULL, "Item Respawn time", &cv_itemrespawntime, 58},
|
||||
{IT_STRING | IT_CVAR, NULL, "Item Respawn Delay", &cv_itemrespawntime, 58},
|
||||
|
||||
{IT_STRING | IT_CVAR, NULL, "Player respawn delay", &cv_respawntime, 74},
|
||||
{IT_STRING | IT_CVAR, NULL, "Player Respawn Delay", &cv_respawntime, 74},
|
||||
|
||||
{IT_STRING | IT_CVAR, NULL, "Force Skin #", &cv_forceskin, 90},
|
||||
{IT_STRING | IT_CVAR, NULL, "Restrict skin changes", &cv_restrictskinchange, 98},
|
||||
{IT_STRING | IT_CVAR, NULL, "Restrict Skin Changes", &cv_restrictskinchange, 98},
|
||||
|
||||
//{IT_STRING | IT_CVAR, NULL, "Autobalance Teams", &cv_autobalance, 114},
|
||||
//{IT_STRING | IT_CVAR, NULL, "Scramble Teams on Map Change", &cv_scrambleonchange, 122},
|
||||
|
|
|
@ -9279,7 +9279,7 @@ void P_RemoveSavegameMobj(mobj_t *mobj)
|
|||
}
|
||||
|
||||
static CV_PossibleValue_t respawnitemtime_cons_t[] = {{1, "MIN"}, {300, "MAX"}, {0, NULL}};
|
||||
consvar_t cv_itemrespawntime = {"respawnitemtime", "1", CV_NETVAR|CV_CHEAT, respawnitemtime_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL};
|
||||
consvar_t cv_itemrespawntime = {"respawnitemtime", "3", CV_NETVAR|CV_CHEAT, respawnitemtime_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL};
|
||||
consvar_t cv_itemrespawn = {"respawnitem", "On", CV_NETVAR, CV_OnOff, NULL, 0, NULL, NULL, 0, 0, NULL};
|
||||
static CV_PossibleValue_t flagtime_cons_t[] = {{0, "MIN"}, {300, "MAX"}, {0, NULL}};
|
||||
consvar_t cv_flagtime = {"flagtime", "30", CV_NETVAR|CV_CHEAT, flagtime_cons_t, NULL, 0, NULL, NULL, 0, 0, NULL};
|
||||
|
@ -9514,9 +9514,13 @@ void P_RespawnSpecials(void)
|
|||
{
|
||||
P_SpawnMapThing(box->spawnpoint);
|
||||
newmobj = box->spawnpoint->mobj; // this is set to the new mobj in P_SpawnMapThing
|
||||
P_SpawnMobj(box->spawnpoint->mobj->x, box->spawnpoint->mobj->y, box->spawnpoint->mobj->z, MT_EXPLODE); // poof into existance
|
||||
}
|
||||
else
|
||||
{
|
||||
newmobj = P_SpawnMobj(box->x, box->y, box->z, box->type);
|
||||
P_SpawnMobj(newmobj->x, newmobj->y, newmobj->z, MT_EXPLODE); // poof into existance
|
||||
}
|
||||
|
||||
// Transfer flags2 (strongbox, objectflip)
|
||||
newmobj->flags2 = box->flags2;
|
||||
|
|
Loading…
Reference in a new issue