im using bubblemod for my hldm server, as you can see the code below, it plays sound when people get killed my huge damage. a lot of my players complained that those sounds really loud and kinda annoying. so, i want to block those sounds, i've tried the sound replacer, sound block, command blocker plugins but none of them works
Код:
if ( ( pev->health < -40 && iGib != GIB_NEVER ) || iGib == GIB_ALWAYS )
{
pev->solid = SOLID_NOT;
GibMonster(); // This clears pev->model
pev->effects |= EF_NODRAW;
if ((RANDOM_LONG(0, 100) < 15) || (m_LastHitGroup == HITGROUP_HEAD) )
{
switch (RANDOM_LONG(0, 6))
{
case 0:
UTIL_SpeakAll("buzwarn buzwarn, cleanup in sector alpha");
break;
case 1:
UTIL_SpeakAll("buzwarn buzwarn, cleanup in sector zulu");
break;
case 2:
UTIL_SpeakAll("buzwarn buzwarn, cleanup in sector delta");
break;
case 3:
UTIL_SpeakAll("buzwarn buzwarn, cleanup in sector thirteen");
break;
case 4:
UTIL_SpeakAll("buzwarn buzwarn, cleanup in sector b");
break;
case 5:
UTIL_SpeakAll("buzwarn buzwarn, cleanup in sector c");
break;
case 6:
UTIL_SpeakAll("buzwarn buzwarn, cleanup in sector d");
break;
}
}
return;
}
DeathSound();
pev->angles.x = 0;
pev->angles.z = 0;
SetThink(PlayerDeathThink);
pev->nextthink = gpGlobals->time + 0.1;
}