Xonotic
handicap.qh
Go to the documentation of this file.
1 #pragma once
2 
7 
8 // Handicap is used to make the game harder for strong players and easier for
9 // weak players. Values greater than 1 make the game harder and values less than
10 // 1 make the game easier. Right now handicap only affects damage. There are 2
11 // types of handicap: voluntary and forced. Voluntary handicap can be set via
12 // cl_handicap cvar. For obvious reasons, it can't be less than 1. Forced
13 // handicap can be set by server mutators. The total handicap is the product of
14 // voluntary and forced handicap.
15 
19 void Handicap_Initialize(entity player);
20 
25 
30 
35 void Handicap_SetForcedHandicap(entity player, float value);
36 
40 float Handicap_GetTotalHandicap(entity player);
float Handicap_GetForcedHandicap(entity player)
Returns the forced handicap of the player.
Definition: handicap.qc:23
void Handicap_Initialize(entity player)
Initializes handicap to its default value.
Definition: handicap.qc:13
entity() spawn
float Handicap_GetTotalHandicap(entity player)
Returns the total handicap of the player.
Definition: handicap.qc:37
void Handicap_SetForcedHandicap(entity player, float value)
Sets the forced handicap of the player.
Definition: handicap.qc:28
float Handicap_GetVoluntaryHandicap(entity player)
Returns the voluntary handicap of the player.
Definition: handicap.qc:18