Quote:
Originally Posted by Bugsy
1. I didn't consider the scenario where someone could hurt someone before round start. I personally still consider it as damage issued in the round.
2. clamp() would only make sense if you want to enforce damage within a range (eg. 50-100). I do not need a lower boundary for damage since all damage counts, we just want to limit the max. Please provide your argument for using clamp().
3. My goal is to only call get_user_health() on alive players, and only call it once per alive player per round. I updated the code here to avoid redundant calls.
4. I added max() to limit the damage to 100 since you requested it here:
|
The plugin still has a problem, for example, I give 100 damage to the opponent and the plugin writes 70 !!!
What is the reason for this problem?