15 CS(player).m_handicap = 1;
20 return bound(1.0,
CS_CVAR(player).cvar_cl_handicap, 10.0);
25 return (
CS(player)) ?
CS(player).m_handicap : 1;
32 error(
"Handicap_SetForcedHandicap: Invalid handicap value.");
34 CS(player).m_handicap = value;
Header file that describes the handicap system.
ClientState CS(Client this)
float m_handicap
Holds the handicap value.
float Handicap_GetTotalHandicap(entity player)
Returns the total handicap of the player.
float Handicap_GetVoluntaryHandicap(entity player)
Returns the voluntary handicap of the player.
void Handicap_Initialize(entity player)
Initializes handicap to its default value.
void Handicap_SetForcedHandicap(entity player, float value)
Sets the forced handicap of the player.
float Handicap_GetForcedHandicap(entity player)
Returns the forced handicap of the player.