diff --git a/src/p_enemy.c b/src/p_enemy.c index b472e8259..c7acf06dc 100644 --- a/src/p_enemy.c +++ b/src/p_enemy.c @@ -14661,6 +14661,9 @@ void P_RefreshItemCapsuleParts(mobj_t *mobj) mobj_t *part = mobj->tracer; skincolornum_t color; + part->threshold = mobj->threshold; + part->movecount = mobj->movecount; + if (itemType < 1 || itemType >= NUMKARTITEMS) itemType = KITEM_SAD; diff --git a/src/p_mobj.c b/src/p_mobj.c index da1a41f9a..cf262a78b 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -6144,6 +6144,10 @@ static boolean P_MobjRegularThink(mobj_t *mobj) INT32 itemType = mobj->threshold; mobj_t *part = mobj->tracer; + if (mobj->threshold != part->threshold + || mobj->movecount != part->movecount) // allow scripters to easily change the capsule properties! + P_RefreshItemCapsuleParts(mobj); + if (itemType < 1 || itemType >= NUMKARTITEMS) itemType = KITEM_SAD;