Skip to content

Commit ba9c172

Browse files
authored
Change equality checks to greater than or equal
1 parent 230a2a3 commit ba9c172

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CSDM/CSDM_Misc.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,22 +149,22 @@ void CCSDM_Misc::PlayerKilled(CBasePlayer* Victim, CBasePlayer* Killer)
149149
Killer->edict()->v.health = clamp(Killer->edict()->v.health + RestoreHealth, 1.0f, 100.0f);
150150
}
151151

152-
if (this->m_kill_repair_armor->value == HeadshotCheck)
152+
if (this->m_kill_repair_armor->value >= HeadshotCheck)
153153
{
154154
Killer->edict()->v.armorvalue = 100.0f;
155155
}
156156

157-
if (this->m_kill_fade->value == HeadshotCheck)
157+
if (this->m_kill_fade->value >= HeadshotCheck)
158158
{
159159
gCSDM_Util.ScreenFade(Killer->edict(), BIT(10), BIT(10), 0x0000, 0, 0, 200, 75);
160160
}
161161

162-
if (this->m_kill_sound->value == HeadshotCheck)
162+
if (this->m_kill_sound->value >= HeadshotCheck)
163163
{
164164
g_engfuncs.pfnClientCommand(Killer->edict(), "%s", "speak \"sound/fvox/blip.wav\"\n");
165165
}
166166

167-
if (this->m_reload_on_kill->value == HeadshotCheck)
167+
if (this->m_reload_on_kill->value >= HeadshotCheck)
168168
{
169169
if (Killer->m_pActiveItem)
170170
{

0 commit comments

Comments
 (0)