⚙️ Add AllowedTeam and bump to 0.1.1

Restrict flashlight by CT/T/Any via config, drop tracked docs, and
ship the 0.1.1 version bump.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Tobias Thiele 2026-07-21 07:34:09 +02:00
parent 6f46cee3c1
commit c7779740c7
8 changed files with 73 additions and 212 deletions

View file

@ -59,4 +59,18 @@ public static class FlashlightLogic
{
return !isOn && hasValidLight;
}
/// <summary>
/// Returns whether <paramref name="team"/> may use the flashlight.
/// Team values match CS2: 2 = Terrorist, 3 = Counter-Terrorist.
/// </summary>
public static bool IsTeamAllowed(string allowedTeam, byte team)
{
return allowedTeam switch
{
"T" => team == 2,
"CT" => team == 3,
_ => true
};
}
}