X-Git-Url: http://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fgame%2Fg_triggers.pas;h=af000f0dda34bff1a628859e0ba878dd6d129ad0;hb=04f1e58db9ef9dd87bb4a829d000b02da0304c3b;hp=9f6df9f5ded1502c244836da3a402ad20c3c76b9;hpb=ba69b47c522858ed70d450d1fec26933472c080b;p=d2df-sdl.git diff --git a/src/game/g_triggers.pas b/src/game/g_triggers.pas index 9f6df9f..af000f0 100644 --- a/src/game/g_triggers.pas +++ b/src/game/g_triggers.pas @@ -809,7 +809,7 @@ begin TRIGGER_SHOT_FLAME: begin g_Weapon_flame(wx, wy, dx, dy, 0, -1, True); - //snd := 'SOUND_WEAPON_FIREPLASMA'; + snd := 'SOUND_GAME_BURNING'; end; else exit; @@ -853,7 +853,7 @@ begin dx += Random(tgcAccuracy)-Random(tgcAccuracy); dy += Random(tgcAccuracy)-Random(tgcAccuracy); - tr_SpawnShot(tgcShotType, wx, wy, dx, dy, not tgcQuiet, TargetUID); + tr_SpawnShot(tgcShotType, wx, wy, dx, dy, tgcShotSound, TargetUID); end else begin @@ -1352,9 +1352,15 @@ begin Result := True; if gLMSRespawn = LMS_RESPAWN_NONE then begin - g_Player_Get(ActivateUID).GetSecret(); + p := g_Player_Get(ActivateUID); + p.GetSecret(); Inc(gCoopSecretsFound); - if g_Game_IsNet then MH_SEND_GameStats(); + if g_Game_IsNet then + begin + MH_SEND_GameStats(); + if p.FClientID >= 0 then + MH_SEND_GameEvent(NET_EV_SECRET, p.UID, '', p.FClientID); + end; end; end;