lots of changes
This commit is contained in:
@@ -880,10 +880,15 @@ void BreakCouch(int couch, int attacker)
|
||||
EmitSoundToAll(g_sExplodeSounds[GetRandomInt(0, sizeof(g_sExplodeSounds) - 1)], SOUND_FROM_PLAYER, SNDCHAN_STATIC, SNDLEVEL_NONE);
|
||||
EmitSoundToAll(g_sBreakSounds[GetRandomInt(0, sizeof(g_sBreakSounds) - 1)], couch, SNDCHAN_STATIC, SNDLEVEL_SCREAMING);
|
||||
|
||||
if (attacker >= 1 && attacker <= MaxClients && IsClientInGame(attacker))
|
||||
PrintToChatAll(PREFIX ... "%N\x01 broke the couch! Game over!", attacker);
|
||||
else
|
||||
PrintToChatAll(PREFIX ... "The couch\x01 broke! Game over!");
|
||||
// Printed three times so it stands out in a busy chat.
|
||||
bool bNamed = attacker >= 1 && attacker <= MaxClients && IsClientInGame(attacker);
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
if (bNamed)
|
||||
PrintToChatAll(PREFIX ... "%N\x01 broke the couch! Game over!", attacker);
|
||||
else
|
||||
PrintToChatAll(PREFIX ... "The couch\x01 broke! Game over!");
|
||||
}
|
||||
|
||||
// While the entity still exists, so listeners can read its position.
|
||||
Call_StartForward(g_fwdOnCouchBroken);
|
||||
|
||||
Reference in New Issue
Block a user