PLUGIN - cs2-css-flashlight

Spatiul dedicat dezvoltatorilor. Aici gasesti resurse pentru CounterStrikeSharp, ajutor pentru cod si scripting avansat.
Post Reply
User avatar
greenie
Full Member
Full Member
Posts: 2389
Joined: Sun Nov 21, 2021 4:55 pm
Jucator SA:MP ?: Nu
Nick:: greenie
Jucator CS ?: Da

PLUGIN - cs2-css-flashlight

Post by greenie »

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 Use key (the default key for this is E) or /fl_toggle in 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/Flashlight directory.
๐Ÿ’ป 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.

๐Ÿค 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

https://github.com/creazy231/cs2-css-fl ... s/main.zip
๐‘ด๐’‚๐’š๐’ƒ๐’† ๐’•๐’‰๐’† ๐‘ฌ๐’‚๐’“๐’•๐’‰ ๐’Š๐’” ๐’•๐’‰๐’† ๐‘ฏ๐’†๐’๐’ ๐’๐’‡ ๐‘จ๐’๐’๐’•๐’‰๐’†๐’“ ๐‘ท๐’๐’‚๐’๐’†๐’•... โ˜ข๏ธ
Post Reply

Return to โ€œScripting CS2โ€