Thanks dcx2, I'll have a look at this when I get a chance.
About fractional damage on SI, not sure. I'd tested pellet damage on hunters a lot, and since the values never added up unless I'd round to floor, I never gave it a second thought. I'm pretty sure there's no fractional damage on a single shot's worth of pellets, but maybe between shots.
Yes, it is true that stumbling spitters didn't have their spit do damage. That is fixed with v.1.0.3 (that I made without having checked this thread in ages
). I think it fixes stumble damage (the 2 points) too, but if that reports as being done by inflictor == attacker, then it'll be negated. I could just check for the damage amount and let it slide if 2.0...
It is also true that my solution for the stumble-scratch is pretty ugly. I'd assumed the onplayerruncmd approach wouldn't work because of fakeclients, but if that works, sweet. I'll see about incorporating your approach into the plugin!
As for leveling chargers, you can still only do it with a head-hit:
A hit on the stomach (1.25 modifier) would do 0.65 * 600 * 1.25 = 487, a hit on any other part (1 modifier) would do 390. It may be that head-hits are not entirely consistent between AI and human chargers because of the effects of lag, etc. I've managed to level plenty of chargers with the plugin, so it's definitely possible though.
Thanks for the feedback & improvements.
Btw, I'm not going to make a version/cvar to make human chargers behave like SI bots. The 1/3-damage thing is pretty silly and there are better ways to make the game versus AI harder. Unlevelable human chargers would be a pretty bad idea too, imo. If you really want it, you can easily make a version that does that, so I'll leave that up to you. :]