mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-06-20 09:42:04 +03:00
Fix organs spawning due to non-Vita-Saw damage
With this commit, organs only spawn when the weapon dealing damage is the Vita-Saw - not just when the Medic deals damage and is holding the Vita-Saw.
This commit is contained in:
parent
65aa7c910e
commit
ed11b204b2
@ -9096,12 +9096,9 @@ int CTFPlayer::OnTakeDamage( const CTakeDamageInfo &inputInfo )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( pTFAttacker && pTFAttacker->IsPlayerClass( TF_CLASS_MEDIC ) )
|
if ( pTFAttacker && pTFAttacker->IsPlayerClass( TF_CLASS_MEDIC ) && pWeapon && pWeapon->GetWeaponID() == TF_WEAPON_BONESAW )
|
||||||
{
|
{
|
||||||
CTFWeaponBase *pAttackerWeapon = pTFAttacker->GetActiveTFWeapon();
|
CTFBonesaw *pBoneSaw = static_cast< CTFBonesaw* >( pWeapon );
|
||||||
if ( pAttackerWeapon && pAttackerWeapon->GetWeaponID() == TF_WEAPON_BONESAW )
|
|
||||||
{
|
|
||||||
CTFBonesaw *pBoneSaw = static_cast< CTFBonesaw* >( pAttackerWeapon );
|
|
||||||
if ( pBoneSaw->GetBonesawType() == BONESAW_UBER_SAVEDONDEATH )
|
if ( pBoneSaw->GetBonesawType() == BONESAW_UBER_SAVEDONDEATH )
|
||||||
{
|
{
|
||||||
// Spawn their spleen
|
// Spawn their spleen
|
||||||
@ -9136,7 +9133,6 @@ int CTFPlayer::OnTakeDamage( const CTakeDamageInfo &inputInfo )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ( bIsSoldierRocketJumping || bIsDemomanPipeJumping )
|
if ( bIsSoldierRocketJumping || bIsDemomanPipeJumping )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user