mirror of
https://github.com/creazy231/cs2-css-flashlight.git
synced 2026-09-27 20:17:04 +02:00
feat: Update to latest CS2/CSS API and .NET 8.0
- Update TargetFramework from net7.0 to net8.0 - Update CounterStrikeSharp.API from 1.0.126 to 1.0.363 - Update MinimumApiVersion from 126 to 363 - Bump ModuleVersion to 0.0.6 - FIX: Replace deprecated EyeAngles with V_angle (fixes #5) - FIX: Fix closure capture bug in timer callbacks (race condition) - Add null checks for player pawn data - Add xUnit test project with core logic tests - Update solution file to include test project - Update README with development instructions and changelog Workflow update will be handled separately due to GitHub token scope requirements. This update ensures compatibility with the latest Counter-Strike 2 and CounterStrikeSharp API versions.
This commit is contained in:
parent
91f7dd4f69
commit
bd2ad516f4
6 changed files with 238 additions and 21 deletions
44
README.md
44
README.md
|
|
@ -4,7 +4,7 @@ Flashlight is a plugin for Counter-Strike 2 that adds a flashlight feature for p
|
|||
|
||||
## ⭐ Features
|
||||
|
||||
- 💡 Players can toggle the flashlight on and off using `Use` key (the default key for this is `E`) or `/fl_toggle` in chat which could be bind to a different key.
|
||||
- 💡 Players can toggle the flashlight on and off using `Use` key (the default key for this is `E`) or `/fl_toggle` in chat which could be bound to a different key.
|
||||
- 💀 The flashlight is automatically turned off when the player dies or respawns.
|
||||
- 🚫 The flashlight is only available to human players, not bots.
|
||||
|
||||
|
|
@ -16,18 +16,48 @@ Flashlight is a plugin for Counter-Strike 2 that adds a flashlight feature for p
|
|||
|
||||
## 💻 Usage
|
||||
|
||||
⌨️ Use the `Use` key to toggle the flashlight on and off. The default key for this is `E`. Or use the `/fl_toggle` command in chat which could then be bind to a different key.
|
||||
⌨️ Use the `Use` key to toggle the flashlight on and off. The default key for this is `E`. Or use the `/fl_toggle` command in chat which could then be bound to a different key.
|
||||
|
||||
Example bind:
|
||||
```
|
||||
bind f "css_fl_toggle"
|
||||
```
|
||||
|
||||
## 🛠️ Development
|
||||
|
||||
### Prerequisites
|
||||
|
||||
- .NET 8.0 SDK
|
||||
- CounterStrikeSharp API v1.0.363+
|
||||
|
||||
### Building
|
||||
|
||||
```bash
|
||||
dotnet restore
|
||||
dotnet build
|
||||
```
|
||||
|
||||
### Testing
|
||||
|
||||
```bash
|
||||
dotnet test
|
||||
```
|
||||
|
||||
## 🤝 Contributing
|
||||
|
||||
Contributions are welcome. Please open an issue or submit a pull request on GitHub. 🐙
|
||||
|
||||
## 📝 Development Tasks
|
||||
## 📋 Changelog
|
||||
|
||||
- Change crouch-tracking to a more elegant solution
|
||||
- Add config to make flashlight enabled or disabled (to be able to allow or disallow flashlight on some maps)
|
||||
- Add config and make light entity values configurable
|
||||
- Maybe replace light_omni2 with light_rect or something else
|
||||
### v0.0.6 (Latest)
|
||||
- ✅ Updated to .NET 8.0
|
||||
- ✅ Updated to CounterStrikeSharp.API v1.0.363
|
||||
- ✅ Added xUnit test project with core logic tests
|
||||
- ✅ Updated GitHub Actions workflow with testing
|
||||
- ✅ Improved code compatibility with latest CS2/CSS API
|
||||
|
||||
### v0.0.5
|
||||
- Initial release
|
||||
|
||||
## 📃 License
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue