Skip to content

Commit

Permalink
Merge pull request #475 from zer0k-z/quiet-weaponsound
Browse files Browse the repository at this point in the history
Fix gokz-quiet disabling all user messages
  • Loading branch information
zealain authored May 5, 2023
2 parents 3dd9125 + 1678606 commit a3f358d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions addons/sourcemod/scripting/gokz-quiet/hideplayers.sp
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ static void RequestFrame_WeaponSound(DataPack dp)

Protobuf newMsg = view_as<Protobuf>(StartMessageEx(msg_id, newClients, newTotal, flags));

newMsg.AddInt("entidx", dp.ReadCell());
newMsg.AddFloat("origin_x", dp.ReadFloat());
newMsg.AddFloat("origin_y", dp.ReadFloat());
newMsg.AddFloat("origin_z", dp.ReadFloat());
newMsg.SetInt("entidx", dp.ReadCell());
newMsg.SetFloat("origin_x", dp.ReadFloat());
newMsg.SetFloat("origin_y", dp.ReadFloat());
newMsg.SetFloat("origin_z", dp.ReadFloat());
char path[PLATFORM_MAX_PATH];
dp.ReadString(path, sizeof(path));
newMsg.AddString("sound", path);
newMsg.AddFloat("timestamp", dp.ReadFloat());
newMsg.SetString("sound", path);
newMsg.SetFloat("timestamp", dp.ReadFloat());

EndMessage();

Expand Down

0 comments on commit a3f358d

Please sign in to comment.