After integrating it you may use it as such:
1
2
3
sp.percent_health.add_player(1)
sp.percent_health.set_max_health(1, 2000)
sp.percent_health.set_cur_health(1, 2000)
This will set player id 1's max and current health to 2000.
Functions:
-- Must use to initialize a player, all players are reset on round start.
sp.percent_health.add_player(p)
-- Use this to reset a player manually.
sp.percent_health.rem_player(p)
-- Set current health of a player.
sp.percent_health.set_cur_health(p, health)
-- Set max health of a player.
sp.percent_health.set_max_health(p, health)
-- Receive values from a specific player.
sp.percent_health.get(p, value)
Values (string):
1
2
3
"added",
"current_health",
"max_health".
Configuration Variables:
1
2
config.debug_hit_hook	= false	-- Debug the hit hook?
config.show_credits		= true	-- Show credits in the console on load?