about summary refs log tree commit diff
path: root/src/game/server/gs_game_ctf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/server/gs_game_ctf.cpp')
-rw-r--r--src/game/server/gs_game_ctf.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/game/server/gs_game_ctf.cpp b/src/game/server/gs_game_ctf.cpp
index 30d898d9..9e11586b 100644
--- a/src/game/server/gs_game_ctf.cpp
+++ b/src/game/server/gs_game_ctf.cpp
@@ -119,7 +119,17 @@ void gameobject_ctf::tick()
 					f->at_stand = 0;
 					f->carrying_player = players[i];
 					f->carrying_player->score += 1;
-					create_sound_global(SOUND_CTF_GRAB);
+					
+					for(int c = 0; c < MAX_CLIENTS; c++)
+					{
+						if(!players[c])
+							continue;
+							
+						if(players[c]->team == fi)
+							create_sound_global(SOUND_CTF_GRAB_EN, c);
+						else
+							create_sound_global(SOUND_CTF_GRAB_PL, c);
+					}
 					break;
 				}
 			}