File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -15372,7 +15372,20 @@ void CTFPlayer::PainSound( const CTakeDamageInfo &info )
1537215372 TFPlayerClassData_t *pData = GetPlayerClass()->GetData();
1537315373 if ( pData )
1537415374 {
15375- EmitSound( pData->GetDeathSound( DEATH_SOUND_GENERIC ) );
15375+ #ifdef BDSBASE
15376+ int nDeathSound = DEATH_SOUND_GENERIC;
15377+ if (TFGameRules() && TFGameRules()->IsMannVsMachineMode() && GetTeamNumber() == TF_TEAM_PVE_INVADERS)
15378+ {
15379+ nDeathSound = DEATH_SOUND_GENERIC_MVM;
15380+ if (IsMiniBoss())
15381+ {
15382+ nDeathSound = DEATH_SOUND_GENERIC_GIANT_MVM;
15383+ }
15384+ }
15385+ EmitSound(pData->GetDeathSound(nDeathSound));
15386+ #else
15387+ EmitSound(pData->GetDeathSound(DEATH_SOUND_GENERIC));
15388+ #endif
1537615389 }
1537715390 }
1537815391 return;
You can’t perform that action at this time.
0 commit comments