diff --git a/src/p_user.cpp b/src/p_user.cpp index df8d88725d..84a81d3840 100644 --- a/src/p_user.cpp +++ b/src/p_user.cpp @@ -1185,6 +1185,22 @@ void APlayerPawn::Die (AActor *source, AActor *inflictor) { AInventory *item; + // kgDROP - start - modified copy from a_action.cpp + FDropItem *di = weap->GetDropItems(); + + if (di != NULL) + { + while (di != NULL) + { + if (di->Name != NAME_None) + { + const PClass *ti = PClass::FindClass(di->Name); + if (ti) P_DropItem (player->mo, ti, di->amount, di->probability); + } + di = di->Next; + } + } else + // kgDROP - end if (weap->SpawnState != NULL && weap->SpawnState != ::GetDefault()->SpawnState) {