08-14-2011, 17:27
Is there a way i can implement sound after a kill.
So i mean something like if (sMeantOfDeath == "Headshot" play name.mp3)
PHP Code:
}
onPlayerKilled( eInflictor, attacker, iDamage, sMeansOfDeath, sWeapon, vDir, sHitLoc, psOffsetTime, deathAnimDuration )
{
if ( sMeansOfDeath == "MOD_SUICIDE" )
{
self thread demotePlayer();
return;
}
if ( IsDefined( attacker ) && IsPlayer( attacker ) )
{
if ( attacker == self )
{
self thread demotePlayer();
return;
}
if ( sMeansOfDeath == "MOD_MELEE" )
{
self thread demotePlayer();
attacker thread maps\mp\gametypes\_wager::queueWagerPopup( &"MP_HUMILIATION", 0, &"MP_GUN_PREV_LEVEL_OTHER", "wm_humiliation" );
return;
}
attacker thread promotePlayer( sWeapon );
}
So i mean something like if (sMeantOfDeath == "Headshot" play name.mp3)