lots of changes

This commit is contained in:
2026-10-22 16:17:56 +01:00
parent e4a75367aa
commit ac3ffd5be2
53 changed files with 7716 additions and 193 deletions
+9 -4
View File
@@ -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);