mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'mace-maintenance' into 'master'
Mace maintenance (resolves #1069, #1645) Closes #1069 and #1645 See merge request kart-krew-dev/ring-racers-internal!2785
This commit is contained in:
commit
af5dacace9
1 changed files with 22 additions and 3 deletions
25
src/p_mobj.c
25
src/p_mobj.c
|
|
@ -13329,6 +13329,10 @@ static boolean P_SetupMace(mapthing_t *mthing, mobj_t *mobj)
|
||||||
mobjeflag_t meflagsapply;
|
mobjeflag_t meflagsapply;
|
||||||
const size_t mthingi = (size_t)(mthing - mapthings);
|
const size_t mthingi = (size_t)(mthing - mapthings);
|
||||||
|
|
||||||
|
mflagsapply = 0;
|
||||||
|
mflags2apply = 0;
|
||||||
|
meflagsapply = 0;
|
||||||
|
|
||||||
mlength = abs(mthing->thing_args[0]);
|
mlength = abs(mthing->thing_args[0]);
|
||||||
mnumspokes = mthing->thing_args[1] + 1;
|
mnumspokes = mthing->thing_args[1] + 1;
|
||||||
mspokeangle = FixedAngle((360*FRACUNIT)/mnumspokes) >> ANGLETOFINESHIFT;
|
mspokeangle = FixedAngle((360*FRACUNIT)/mnumspokes) >> ANGLETOFINESHIFT;
|
||||||
|
|
@ -13378,6 +13382,10 @@ static boolean P_SetupMace(mapthing_t *mthing, mobj_t *mobj)
|
||||||
case MT_CUSTOMMACEPOINT:
|
case MT_CUSTOMMACEPOINT:
|
||||||
macetype = mthing->thing_stringargs[0] ? get_number(mthing->thing_stringargs[0]) : MT_NULL;
|
macetype = mthing->thing_stringargs[0] ? get_number(mthing->thing_stringargs[0]) : MT_NULL;
|
||||||
chainlink = mthing->thing_stringargs[1] ? get_number(mthing->thing_stringargs[1]) : MT_NULL;
|
chainlink = mthing->thing_stringargs[1] ? get_number(mthing->thing_stringargs[1]) : MT_NULL;
|
||||||
|
if (mthing->thing_args[8] & TMM_DOUBLESIZE)
|
||||||
|
{
|
||||||
|
mflags2apply |= MF2_BOSSDEAD; // Basically nothing except Item Boxes use this
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case MT_CHAINPOINT:
|
case MT_CHAINPOINT:
|
||||||
if (mthing->thing_args[8] & TMM_DOUBLESIZE)
|
if (mthing->thing_args[8] & TMM_DOUBLESIZE)
|
||||||
|
|
@ -13406,6 +13414,17 @@ static boolean P_SetupMace(mapthing_t *mthing, mobj_t *mobj)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (modeattacking & ATTACKING_SPB)
|
||||||
|
{
|
||||||
|
// SPB Attack item filter
|
||||||
|
|
||||||
|
if (macetype == MT_RING || macetype == MT_RANDOMITEM)
|
||||||
|
macetype = MT_NULL;
|
||||||
|
|
||||||
|
if (chainlink == MT_RING || chainlink == MT_RANDOMITEM)
|
||||||
|
chainlink = MT_NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (!macetype && !chainlink)
|
if (!macetype && !chainlink)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
@ -13449,9 +13468,9 @@ static boolean P_SetupMace(mapthing_t *mthing, mobj_t *mobj)
|
||||||
mchainlike = (firsttype == chainlink);
|
mchainlike = (firsttype == chainlink);
|
||||||
widthfactor = (mchainlike ? 1 : 2);
|
widthfactor = (mchainlike ? 1 : 2);
|
||||||
|
|
||||||
mflagsapply = (mthing->thing_args[8] & TMM_CLIP) ? 0 : (MF_NOCLIP|MF_NOCLIPHEIGHT);
|
mflagsapply |= (mthing->thing_args[8] & TMM_CLIP) ? 0 : (MF_NOCLIP|MF_NOCLIPHEIGHT);
|
||||||
mflags2apply = ((mthing->options & MTF_OBJECTFLIP) ? MF2_OBJECTFLIP : 0);
|
mflags2apply |= ((mthing->options & MTF_OBJECTFLIP) ? MF2_OBJECTFLIP : 0);
|
||||||
meflagsapply = ((mthing->options & MTF_OBJECTFLIP) ? MFE_VERTICALFLIP : 0);
|
meflagsapply |= ((mthing->options & MTF_OBJECTFLIP) ? MFE_VERTICALFLIP : 0);
|
||||||
|
|
||||||
msound = (mchainlike ? 0 : (mwidth & 1));
|
msound = (mchainlike ? 0 : (mwidth & 1));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue