mirror of
https://github.com/creazy231/cs2-css-flashlight.git
synced 2026-09-27 20:17:04 +02:00
🔦 Modernize flashlight for CSS/.NET 10
Bump to CounterStrikeSharp 1.0.371 and .NET 10, replace per-tick light spawns with a parented light_barn, add plugin config, real unit tests, and refresh CI plus docs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
081278a8ae
commit
a0ef6311ee
13 changed files with 847 additions and 434 deletions
18
Flashlight/PlayerFlashlightState.cs
Normal file
18
Flashlight/PlayerFlashlightState.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using CounterStrikeSharp.API.Core;
|
||||
|
||||
namespace Flashlight;
|
||||
|
||||
public sealed class PlayerFlashlightState
|
||||
{
|
||||
public bool IsOn { get; set; }
|
||||
public bool CanToggle { get; set; } = true;
|
||||
public bool WasUsePressed { get; set; }
|
||||
public CBarnLight? Light { get; set; }
|
||||
|
||||
public void Reset()
|
||||
{
|
||||
IsOn = false;
|
||||
CanToggle = true;
|
||||
WasUsePressed = false;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue