From 770313761870b3e68049fa894f097a8bbec80420 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Fri, 3 Aug 2007 06:35:35 +0000 Subject: added pickup sounds for the weapons --- src/game/server/game_server.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/game') diff --git a/src/game/server/game_server.cpp b/src/game/server/game_server.cpp index 841be9b8..d5ba355f 100644 --- a/src/game/server/game_server.cpp +++ b/src/game/server/game_server.cpp @@ -1455,6 +1455,12 @@ void powerup::tick() pplayer->weapons[subtype].got = true; pplayer->weapons[subtype].ammo = min(10, pplayer->weapons[subtype].ammo + data->powerupinfo[type].amount); respawntime = data->powerupinfo[type].respawntime; + + // TODO: data compiler should take care of stuff like this + if(subtype == WEAPON_ROCKET) + create_sound(pos, SOUND_PICKUP_ROCKET); + else if(subtype == WEAPON_SHOTGUN) + create_sound(pos, SOUND_PICKUP_SHOTGUN); } } break; @@ -1465,6 +1471,7 @@ void powerup::tick() pplayer->weapons[WEAPON_NINJA].got = true; pplayer->active_weapon = WEAPON_NINJA; respawntime = data->powerupinfo[type].respawntime; + create_sound(pos, SOUND_PICKUP_NINJA); break; } default: -- cgit 1.4.1