Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
Switch team in teamplay_broadcast_audio
Browse files Browse the repository at this point in the history
  • Loading branch information
powerlord committed Dec 30, 2014
1 parent b262d80 commit 74e5251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/prophunt.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2678,7 +2678,7 @@ PH_EmitSoundToAll(const String:soundid[], entity = SOUND_FROM_PLAYER, channel =
if (!EmitGameSoundToAll(sample, entity, flags, speakerentity, origin, dir, updatePos, soundtime))
{
new Handle:broadcastEvent = CreateEvent("teamplay_broadcast_audio");
SetEventInt(broadcastEvent, "team", -1); // despite documentation saying otherwise, it's team -1 for all (docs say team 0)
SetEventInt(broadcastEvent, "team", 0); // despite documentation saying otherwise, it's team -1 for all (docs say team 0). Edit: changed from -1 to 0 in a 2014 update
SetEventString(broadcastEvent, "sound", sample);
FireEvent(broadcastEvent);
}
Expand Down Expand Up @@ -4714,7 +4714,7 @@ public Action:TF2Items_OnGiveNamedItem(client, String:classname[], iItemDefiniti
return Plugin_Stop;
}

// Block wearablesfor Props
// Block wearables for Props
// From testing, Action items still work even if you block them
// Note: The Love and War update seems to have changed that, as taunt items won't work unless the taunt menu
// was open before round start and can only be used once
Expand Down

0 comments on commit 74e5251

Please sign in to comment.