mirror of
https://github.com/creazy231/cs2-css-flashlight.git
synced 2026-09-27 20:17:04 +02:00
Flashlight: A Counter-Strike 2 plugin adding a flashlight feature for players, written in C# using CounterStrikeSharp API.
| .github/workflows | ||
| Flashlight | ||
| .gitignore | ||
| Flashlight.sln | ||
| LICENSE | ||
| README.md | ||
🔦 Flashlight
Flashlight is a plugin for Counter-Strike 2 that adds a flashlight feature for players. It is written in C# and uses the CounterStrikeSharp API. 🎮
⭐ Features
- 💡 Players can toggle the flashlight on and off using
Usekey (the default key for this isE) or/fl_togglein chat which could be bind 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.
🔧 Installation
- ⬇️ Download the latest release from the GitHub repository.
- 📁 Extract the ZIP file.
- 📂 Place the plugin in the
game/csgo/addons/counterstrikesharp/plugins/Flashlightdirectory.
💻 Usage
⌨️ Use the Use key to toggle the flashlight on and off. The default key for this is E.
🤝 Contributing
Contributions are welcome. Please open an issue or submit a pull request on GitHub. 🐙
📝 Development Tasks
- 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
📃 License
This project is licensed under the GNU General Public License. ⚖️
✏️ Author
This project was created by creazy.eth