- exported a few more weapon handling functions so that the native GetDownState stub could be removed.
This commit is contained in:
parent
d8aa39e03e
commit
595208f2fd
9 changed files with 155 additions and 165 deletions
|
|
@ -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, ¶m, 1, nullptr, 0);
|
||||
}
|
||||
|
||||
if (this == players[consoleplayer].camera && automapactive)
|
||||
{
|
||||
// don't die in auto map, switch view prior to dying
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue