Hey Grey83,
The plugin looks fine and I'll approve it if you remove your FCVAR_REPLICATED, as it may cause error for clients.
A few things you could also change (optional) :
- You may want to limit R/G/B/A values to 0-255 (SM allows to set up easily such restrictions on a CVar)
- When a client is IsClientInGame, he is necessarily Connected, so not need to check if he is connected.
- When you get so many comparison, you may prefer to put all the weapons you want the beam for in a Trie, that way you can compare it in O(1)
Red
__________________