Skip to content

Commit

Permalink
Merge branch 'master' into reorg
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Oct 11, 2021
2 parents 9dbd08e + 0f66a08 commit 6325212
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addons/sourcemod/scripting/shavit-misc.sp
Original file line number Diff line number Diff line change
Expand Up @@ -878,6 +878,13 @@ void CleanSwitchTeam(int client, int team)
}
else
{
// Remove flashlight :)
if (gEV_Type == Engine_CSS)
{
int EF_DIMLIGHT = 4;
SetEntProp(client, Prop_Send, "m_fEffects", ~EF_DIMLIGHT & GetEntProp(client, Prop_Send, "m_fEffects"));
}

ChangeClientTeam(client, team);
}
}
Expand Down

0 comments on commit 6325212

Please sign in to comment.