KF2-TAWOD/TAWOD/Classes/TAWODPawn_Human.uc

29 lines
525 B
Ucode
Raw Normal View History

2021-01-31 10:13:35 +00:00
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
{
}