Skip to content

Commit adfbe08

Browse files
committed
Added changes for v1.3
- Fixed some convars not having the "FCVAR_NOTIFY" flag.
1 parent db141e5 commit adfbe08

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## Version 1.3 (April 10, 2022)
4+
5+
### Bug Fixes
6+
7+
#### ConVars
8+
- Fixed some convars not having the `FCVAR_NOTIFY` flag.
9+
310
## Version 1.2 (February 1, 2022)
411

512
### Changes
0 Bytes
Binary file not shown.

addons/sourcemod/scripting/l4d_clean_kills.sp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#pragma semicolon 1
1818
#pragma newdecls required
1919

20-
#define CK_VERSION "1.2"
20+
#define CK_VERSION "1.3"
2121

2222
public Plugin myinfo =
2323
{
@@ -120,8 +120,8 @@ public void OnPluginStart()
120120
g_esGeneral.g_cvCKDisabledGameModes = CreateConVar("l4d_clean_kills_disabled_gamemodes", "", "Disable Clean Kills in these game modes.\nSeparate by commas.\nEmpty: None\nNot empty: Disabled only in these game modes.", FCVAR_NOTIFY);
121121
g_esGeneral.g_cvCKEnabledGameModes = CreateConVar("l4d_clean_kills_enabled_gamemodes", "", "Enable Clean Kills in these game modes.\nSeparate by commas.\nEmpty: All\nNot empty: Enabled only in these game modes.", FCVAR_NOTIFY);
122122
g_esGeneral.g_cvCKGameModeTypes = CreateConVar("l4d_clean_kills_gamemode_types", "0", "Enable Clean Kills in these game mode types.\n0 OR 15: All game mode types.\n1: Co-Op modes only.\n2: Versus modes only.\n4: Survival modes only.\n8: Scavenge modes only. (Only available in Left 4 Dead 2.)", FCVAR_NOTIFY, true, 0.0, true, 15.0);
123-
g_esGeneral.g_cvCKHitGroups = CreateConVar("l4d_clean_kills_hit_groups", "127", "Hit group(s) that trigger clean kills.\n1: Headshots only\n2: Chest shots only\n4: Stomach shots only\n8: Left arm shots only\n16: Right arm shots only\n32: Left leg shots only\n64: Right leg shots only\n127: ALL", _, true, 1.0, true, 127.0);
124-
g_esGeneral.g_cvCKKillTypes = CreateConVar("l4d_clean_kills_kill_types", (g_bSecondGame ? "7" : "3"), "Type(s) of clean kills allowed.\n0: NONE\n1: Boomers only\n2: Smokers only\n4: Spitters only (Only available in Left 4 Dead 2.)\n7: ALL", _, true, 0.0, true, 7.0);
123+
g_esGeneral.g_cvCKHitGroups = CreateConVar("l4d_clean_kills_hit_groups", "127", "Hit group(s) that trigger clean kills.\n1: Headshots only\n2: Chest shots only\n4: Stomach shots only\n8: Left arm shots only\n16: Right arm shots only\n32: Left leg shots only\n64: Right leg shots only\n127: ALL", FCVAR_NOTIFY, true, 1.0, true, 127.0);
124+
g_esGeneral.g_cvCKKillTypes = CreateConVar("l4d_clean_kills_kill_types", (g_bSecondGame ? "7" : "3"), "Type(s) of clean kills allowed.\n0: NONE\n1: Boomers only\n2: Smokers only\n4: Spitters only (Only available in Left 4 Dead 2.)\n7: ALL", FCVAR_NOTIFY, true, 0.0, true, 7.0);
125125
g_esGeneral.g_cvCKPluginEnabled = CreateConVar("l4d_clean_kills_enabled", "1", "Enable Clean Kills.\n0: OFF\n1: ON", FCVAR_NOTIFY, true, 0.0, true, 1.0);
126126
CreateConVar("l4d_clean_kills_version", CK_VERSION, "Clean Kills Version", FCVAR_DONTRECORD|FCVAR_NOTIFY|FCVAR_REPLICATED|FCVAR_SPONLY);
127127
AutoExecConfig(true, "l4d_clean_kills");

0 commit comments

Comments
 (0)