feat: Added damage cash for human side. - #367
Conversation
|
Test on linux working fine. |
Vauff
left a comment
There was a problem hiding this comment.
I think we should offer more flexibility with the convar, by using it as a scale for money given, e.g. set as zr_damage_cash_scale 1.0, then calculate money to give with zr_damage_cash_scale * damage.
This should also be disabled by default in the .cfg (can check for value of 0.0 to act as a disable).
|
That will do |
|
@Vauff I knew that this already get merged, but if some server set this convar to 0.001 instead of normal human being number, do we suppose to make it minimum earning money to 1 or just leave it like that? |
I can't imagine such low values are really a valid use case. However if you think they are, it'd probably be better to store the <1 decimal value(s) in plugin, until enough damage is done to reach 1, and only then add $1 to the players money. But this is probably overkill unless desired by someone. |
as the title said, I know GFL doesn't need it, but this is simply added for old Zombie:Reloaded feature that allow player to earn money from damaging zombie.