Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Commit d22c891

Browse files
authored
1.0.7
1 parent 04416f9 commit d22c891

File tree

4 files changed

+1386
-678
lines changed

4 files changed

+1386
-678
lines changed

Config/Configs.cs

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,20 @@ public class ConfigData
8989
{
9090
public bool KS_EnableQuakeSounds { get; set; }
9191
public bool KS_DisableQuakeSoundsOnWarmUp { get; set; }
92+
public bool KS_ResetKillStreakOnEveryRound { get; set; }
9293

9394
public string empty { get; set; }
94-
public string KS_HeadShotKillSoundPath { get; set; }
95+
public bool KS_AddMenu_FreezeOnOpenMenu { get; set; }
96+
public string KS_AddMenu_HeadShotKillSoundPath { get; set; }
9597

96-
public string KS_BodyKillSoundPath { get; set; }
98+
public string KS_AddMenu_BodyKillSoundPath { get; set; }
9799

98-
public string KS_HeadShotHitSoundPath { get; set; }
100+
public string KS_AddMenu_HeadShotHitSoundPath { get; set; }
99101

100-
public string KS_BodyHitSoundPath { get; set; }
102+
public string KS_AddMenu_BodyHitSoundPath { get; set; }
103+
public bool KS_AddMenu_QuakeSoundsToggle { get; set; }
104+
public bool KS_AddMenu_QuakeCenterMessageToggle { get; set; }
105+
public bool KS_AddMenu_QuakeChatMessageToggle { get; set; }
101106

102107
public string empty2 { get; set; }
103108
public bool KS_FreezeOnOpenMenuDefaultValue { get; set; }
@@ -114,18 +119,23 @@ public ConfigData()
114119
{
115120
KS_EnableQuakeSounds = false;
116121
KS_DisableQuakeSoundsOnWarmUp = true;
122+
KS_ResetKillStreakOnEveryRound = true;
117123
empty = "-----------------------------------------------------------------------------------";
118-
KS_HeadShotKillSoundPath = "sounds/GoldKingZ/Training/bell_normal.vsnd_c";
119-
KS_BodyKillSoundPath = "sounds/GoldKingZ/Training/timer_bell.vsnd_c";
120-
KS_HeadShotHitSoundPath = "sounds/GoldKingZ/Training/bell_impact.vsnd_c";
121-
KS_BodyHitSoundPath = "sounds/GoldKingZ/Training/timer_bell.vsnd_c";
124+
KS_AddMenu_FreezeOnOpenMenu = true;
125+
KS_AddMenu_HeadShotKillSoundPath = "sounds/GoldKingZ/Training/bell_normal.vsnd_c";
126+
KS_AddMenu_BodyKillSoundPath = "sounds/GoldKingZ/Training/timer_bell.vsnd_c";
127+
KS_AddMenu_HeadShotHitSoundPath = "sounds/GoldKingZ/Training/bell_impact.vsnd_c";
128+
KS_AddMenu_BodyHitSoundPath = "sounds/GoldKingZ/Training/timer_bell.vsnd_c";
129+
KS_AddMenu_QuakeSoundsToggle = true;
130+
KS_AddMenu_QuakeCenterMessageToggle = true;
131+
KS_AddMenu_QuakeChatMessageToggle = true;
122132
empty2 = "-----------------------------------------------------------------------------------";
123133
KS_FreezeOnOpenMenuDefaultValue = true;
124134
KS_HeadShotKillSoundDefaultValue = true;
125135
KS_BodyKillSoundDefaultValue = false;
126136
KS_HeadShotHitSoundDefaultValue = false;
127137
KS_BodyHitSoundDefaultValue = false;
128-
KS_InGameMenu = "!soundmenu,!soundsmenu,!menusound,!menusounds";
138+
KS_InGameMenu = "!quake,!quakesounds,!soundmenu,!soundsmenu,!menusound,!menusounds,!soundsettings,!soundsetting";
129139
KS_OnlyAllowTheseGroupsToToggle = "";
130140
empty3 = "-----------------------------------------------------------------------------------";
131141
Information_For_You_Dont_Delete_it = " Vist [https://github.com/oqyh/cs2-Kill-Sound-GoldKingZ/tree/main?tab=readme-ov-file#-configuration-] To Understand All Above";

Config/Helper.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ public static void CreateDefaultWeaponsJson(string jsonFilePath)
344344

345345
string json = System.Text.Json.JsonSerializer.Serialize(configData, options);
346346

347-
json = "// Note: To Use These You Need To Enable KS_EnableQuakeSounds First In config.json \n// Then Download https://github.com/Source2ZE/MultiAddonManager With Gold KingZ WorkShop \n// https://steamcommunity.com/sharedfiles/filedetails/?id=3230015783\n// mm_extra_addons 3230015783 \n\n" + json;
347+
json = "// Note: To Use These You Need To Enable KS_EnableQuakeSounds First In config.json \n// Then Download https://github.com/Source2ZE/MultiAddonManager With Gold KingZ WorkShop \n// https://steamcommunity.com/sharedfiles/filedetails/?id=3230015783\n// mm_extra_addons 3230015783\n// You Can Find WorkShop Path Sound In https://github.com/oqyh/cs2-Kill-Sound-GoldKingZ/blob/main/sounds/Gold%20KingZ%20WorkShop%20Sounds.txt \n\n" + json;
348348

349349
File.WriteAllText(jsonFilePath, json);
350350
}
@@ -383,9 +383,12 @@ public class PersonData
383383
public bool headshothit { get; set; }
384384
public bool bodyshotkill { get; set; }
385385
public bool bodyshothit { get; set; }
386+
public bool quakesounds { get; set; }
387+
public bool quakehmessages { get; set; }
388+
public bool quakecmessages { get; set; }
386389
public DateTime DateAndTime { get; set; }
387390
}
388-
public static void SaveToJsonFile(ulong PlayerSteamID, bool freezemenu, bool headshotkill, bool headshothit, bool bodyshotkill, bool bodyshothit, DateTime DateAndTime)
391+
public static void SaveToJsonFile(ulong PlayerSteamID, bool freezemenu, bool headshotkill, bool headshothit, bool bodyshotkill, bool bodyshothit, bool quakesounds, bool quakehmessages, bool quakecmessages, DateTime DateAndTime)
389392
{
390393
string Fpath = Path.Combine(Configs.Shared.CookiesModule!, "../../plugins/Kill-Sound-GoldKingZ/Cookies/");
391394
string Fpathc = Path.Combine(Configs.Shared.CookiesModule!, "../../plugins/Kill-Sound-GoldKingZ/Cookies/Kill_Sound_Cookies.json");
@@ -414,6 +417,9 @@ public static void SaveToJsonFile(ulong PlayerSteamID, bool freezemenu, bool hea
414417
existingPerson.headshothit = headshothit;
415418
existingPerson.bodyshotkill = bodyshotkill;
416419
existingPerson.bodyshothit = bodyshothit;
420+
existingPerson.quakesounds = quakesounds;
421+
existingPerson.quakehmessages = quakehmessages;
422+
existingPerson.quakecmessages = quakecmessages;
417423
existingPerson.DateAndTime = DateAndTime;
418424
}
419425
else
@@ -425,6 +431,9 @@ public static void SaveToJsonFile(ulong PlayerSteamID, bool freezemenu, bool hea
425431
headshothit = headshothit,
426432
bodyshotkill = bodyshotkill,
427433
bodyshothit = bodyshothit,
434+
quakesounds = quakesounds,
435+
quakehmessages = quakehmessages,
436+
quakecmessages = quakecmessages,
428437
DateAndTime = DateAndTime
429438
};
430439
allPersonsData.Add(newPerson);

0 commit comments

Comments
 (0)