- exported a few more weapon handling functions so that the native GetDownState stub could be removed.

This commit is contained in:
Christoph Oelckers 2018-11-24 18:21:40 +01:00
commit 595208f2fd
9 changed files with 155 additions and 165 deletions

View file

@ -599,7 +599,13 @@ void AActor::Die (AActor *source, AActor *inflictor, int dmgflags, FName MeansOf
flags &= ~MF_SOLID;
player->playerstate = PST_DEAD;
P_DropWeapon (player);
IFVM(PlayerPawn, DropWeapon)
{
VMValue param = player->mo;
VMCall(func, &param, 1, nullptr, 0);
}
if (this == players[consoleplayer].camera && automapactive)
{
// don't die in auto map, switch view prior to dying