KF2-TAWOD/TAWOD/Classes/TAWODPawn_Human.uc
2021-01-31 13:13:35 +03:00

29 lines
525 B
Ucode

class TAWODPawn_Human extends KFPawn_Human;
function ThrowActiveWeapon( optional bool bDestroyWeap )
{
local KFWeapon TempWeapon;
if( Role < ROLE_Authority )
{
return;
}
if (Health <= 0)
{
if (InvManager != none)
foreach InvManager.InventoryActors(class'KFWeapon', TempWeapon)
if (TempWeapon.bDropOnDeath && TempWeapon.CanThrow())
if (TempWeapon != none)
TossInventory(TempWeapon);
}
else
{
super.ThrowActiveWeapon( bDestroyWeap );
}
}
defaultproperties
{
}