Quote:
Originally Posted by r3dw3r3w0lf
Just a suggestion for your code:
This:
Code:
g_bEnabled = StringToInt(newValue) == 1 ? true : false;
Can be this:
Code:
g_bEnabled = bool:StringToInt(newValue);
|
I know, and I've written that way before too. But I recently saw someone use it the way I used it here, and found that I liked the way it looked / read more. More importantly, it adds more syntax coloring so it looks
prettier in my IDE.
Quote:
Originally Posted by secondtimesold
|
Quote:
Originally Posted by Vivo
Error when compile.
|
Ultimately, I do think you should use Bara's plugin as it will be maintained and auto updated. If everything doesn't work right I'm sure he'll fix it.
However, I did make a few changes to the simplehs plugin I posted that I'm curious to know if it works or not.
The documentation for the damagetypes was written for CSS, but it may work in CSGO as well. In theory, it should allow all damage except bullets to the body.
Attached is version 1.1 untested.