Xonotic
sv_resources.qh File Reference

Header file that describes the resource system. More...

+ Include dependency graph for sv_resources.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

float GetResource (entity e, Resource res_type)
 Returns the current amount of resource the given entity has. More...
 
float GetResourceLimit (entity e, Resource res_type)
 Returns the maximum amount of the given resource. More...
 
void GiveResource (entity receiver, Resource res_type, float amount)
 Gives an entity some resource. More...
 
void GiveResourceWithLimit (entity receiver, Resource res_type, float amount, float limit)
 Gives an entity some resource but not more than a limit. More...
 
void SetResource (entity e, Resource res_type, float amount)
 Sets the current amount of resource the given entity will have but limited to the max amount allowed for the resource type. More...
 
bool SetResourceExplicit (entity e, Resource res_type, float amount)
 Sets the resource amount of an entity without calling any hooks. More...
 
void TakeResource (entity receiver, Resource res_type, float amount)
 Takes an entity some resource. More...
 
void TakeResourceWithLimit (entity receiver, Resource res_type, float amount, float limit)
 Takes an entity some resource but not less than a limit. More...
 

Variables

int autocvar_g_balance_armor_limit
 
float autocvar_g_balance_armor_regen
 
float autocvar_g_balance_armor_regenlinear
 
int autocvar_g_balance_armor_regenstable
 
float autocvar_g_balance_armor_rot
 
float autocvar_g_balance_armor_rotlinear
 
int autocvar_g_balance_armor_rotstable
 
float autocvar_g_balance_fuel_limit
 
float autocvar_g_balance_fuel_regen
 
float autocvar_g_balance_fuel_regenlinear
 
int autocvar_g_balance_fuel_regenstable
 
float autocvar_g_balance_fuel_rot
 
float autocvar_g_balance_fuel_rotlinear
 
int autocvar_g_balance_fuel_rotstable
 
float autocvar_g_balance_health_limit
 
float autocvar_g_balance_health_regen
 
float autocvar_g_balance_health_regenlinear
 
float autocvar_g_balance_health_regenstable
 
float autocvar_g_balance_health_rot
 
float autocvar_g_balance_health_rotlinear
 
float autocvar_g_balance_health_rotstable
 
float autocvar_g_balance_pause_armor_rot
 
float autocvar_g_balance_pause_fuel_regen
 
float autocvar_g_balance_pause_fuel_rot
 
float autocvar_g_balance_pause_health_regen
 
float autocvar_g_balance_pause_health_rot
 

Detailed Description

Header file that describes the resource system.

Author
Lyberta

Definition in file sv_resources.qh.

Function Documentation

◆ GetResource()

float GetResource ( entity  e,
Resource  res_type 
)

Returns the current amount of resource the given entity has.

Parameters
[in]eEntity to check.
[in]res_typeType of the resource (a RES_* constant).
Returns
Current amount of resource the given entity has.

Definition at line 10 of file cl_resources.qc.

Referenced by _StartItem(), ammo_pickupevalfunc(), assault_decreaser_sprite_visible(), assault_objective_decrease_use(), assault_wall_think(), basketball_touch(), bot_cmd_eval(), CheatImpulse(), ClientCommand_kill(), CommonCommand_editmob(), CopyBody(), cpicon_draw(), cpicon_send(), ctf_CheckFlagReturn(), ctf_FlagcarrierWaypoints(), ctf_Handle_Drop(), Damage(), destructible_heal(), dompointtouch(), door_damage(), door_reset(), door_trigger_touch(), Draw_ShowNames(), Draw_ShowNames_All(), football_touch(), formatmessage(), frag_centermessage_override(), freezetag_count_alive_players(), freezetag_LastPlayerForTeam(), generator_draw(), generator_send(), GENERIC_COMMAND(), GiveRandomWeapons(), GiveResource(), GiveResourceValue(), GiveResourceWithLimit(), GrapplingHook_Damage(), havocbot_goalrating_ctf_enemyflag(), havocbot_goalrating_enemyplayers(), havocbot_goalrating_ft_freeplayers(), havocbot_goalrating_item_can_be_left_to_teammate(), havocbot_movetogoal(), healtharmor_pickupevalfunc(), instagib_ammocheck(), instagib_countdown(), Invasion_CheckWinner(), Item_GiveAmmoTo(), LinkDoors(), MapVote_Tick(), Monster_Attack_Leap_Check(), Monster_Damage(), Monster_Dead_Damage(), Monster_Frozen_Think(), Monster_Heal(), Monster_Move_Target(), Monster_Spawn_Setup(), Monster_Think(), Monster_ValidTarget(), MUTATOR_HOOKFUNCTION(), navigation_routerating(), NET_HANDLE(), Obituary(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Damage(), ons_ControlPoint_Icon_Heal(), ons_ControlPoint_Icon_Spawn(), ons_ControlPoint_Icon_Think(), ons_ControlPoint_UpdateSprite(), ons_GeneratorDamage(), ons_GeneratorHeal(), ons_GeneratorReset(), ons_GeneratorSetup(), Onslaught_count_generators(), plat_center_touch(), plat_outside_touch(), player_regen(), PlayerCorpseDamage(), PlayerDamage(), PlayerHeal(), PlayerHealth(), PlayerPostThink(), PlayerPreThink(), Portal_Damage(), powerups_DropItem_Think(), PutObserverInServer(), readplayerstartcvars(), RotRegen(), spawnfunc(), SpectateCopy(), TakeResource(), TakeResourceWithLimit(), target_objective_spawn_evalfunc(), test_weapons_hurt(), turret_draw(), vehicles_damage(), vehicles_heal(), vehicles_painframe(), vehicles_projectile_damage(), vehicles_regen(), vehicles_regen_resource(), W_DecreaseAmmo(), W_Reload(), W_ReloadedAndReady(), W_ThrowNewWeapon(), W_WeaponFrame(), and weapon_defaultspawnfunc().

11 {
12  return e.(GetResourceField(res_type));
13 }
+ Here is the caller graph for this function:

◆ GetResourceLimit()

float GetResourceLimit ( entity  e,
Resource  res_type 
)

Returns the maximum amount of the given resource.

Parameters
[in]eEntity to check.
[in]res_typeType of the resource (a RES_* constant).
Returns
Maximum amount of the given resource.

Definition at line 12 of file sv_resources.qc.

References autocvar_g_balance_armor_limit, autocvar_g_balance_fuel_limit, autocvar_g_balance_health_limit, error(), g_pickup_cells_max, g_pickup_nails_max, g_pickup_plasma_max, g_pickup_rockets_max, g_pickup_shells_max, GetResourceLimit(), IS_PLAYER, M_ARGV, MUTATOR_CALLHOOK, RES_AMOUNT_HARD_LIMIT, RES_HEALTH, and RES_LIMIT_NONE.

Referenced by GetResourceLimit(), RotRegen(), and SetResource().

13 {
14  if(!IS_PLAYER(e))
15  return RES_LIMIT_NONE; // no limits on non-players
16 
17  float limit;
18  // TODO: registry handles
19  switch (res_type)
20  {
21  case RES_HEALTH:
22  {
24  break;
25  }
26  case RES_ARMOR:
27  {
29  break;
30  }
31  case RES_SHELLS:
32  {
33  limit = g_pickup_shells_max;
34  break;
35  }
36  case RES_BULLETS:
37  {
38  limit = g_pickup_nails_max;
39  break;
40  }
41  case RES_ROCKETS:
42  {
43  limit = g_pickup_rockets_max;
44  break;
45  }
46  case RES_CELLS:
47  {
48  limit = g_pickup_cells_max;
49  break;
50  }
51  case RES_PLASMA:
52  {
53  limit = g_pickup_plasma_max;
54  break;
55  }
56  case RES_FUEL:
57  {
59  break;
60  }
61  default:
62  {
63  error("GetResourceLimit: Invalid resource type.");
64  return 0;
65  }
66  }
67  MUTATOR_CALLHOOK(GetResourceLimit, e, res_type, limit);
68  limit = M_ARGV(2, float);
69  if (limit > RES_AMOUNT_HARD_LIMIT)
70  {
71  limit = RES_AMOUNT_HARD_LIMIT;
72  }
73  return limit;
74 }
float g_pickup_nails_max
Definition: world.qh:70
const int RES_AMOUNT_HARD_LIMIT
Unconditional maximum amount of resources the entity can have.
Definition: resources.qh:45
float autocvar_g_balance_fuel_limit
Definition: sv_resources.qh:13
RES_HEALTH
Definition: ent_cs.qc:126
const int RES_LIMIT_NONE
Definition: resources.qh:46
float g_pickup_rockets_max
Definition: world.qh:71
float g_pickup_shells_max
Definition: world.qh:69
int autocvar_g_balance_armor_limit
Definition: sv_resources.qh:12
#define M_ARGV(x, type)
Definition: events.qh:17
float GetResourceLimit(entity e, Resource res_type)
Returns the maximum amount of the given resource.
Definition: sv_resources.qc:12
float g_pickup_plasma_max
Definition: world.qh:73
#define MUTATOR_CALLHOOK(id,...)
Definition: base.qh:140
float autocvar_g_balance_health_limit
Definition: sv_resources.qh:11
float g_pickup_cells_max
Definition: world.qh:72
#define IS_PLAYER(v)
Definition: utils.qh:9
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GiveResource()

void GiveResource ( entity  receiver,
Resource  res_type,
float  amount 
)

Gives an entity some resource.

Parameters
[in,out]receiverEntity to give resource to.
[in]res_typeType of the resource (a RES_* constant).
[in]amountAmount of resource to give.
Returns
No return.

Definition at line 120 of file sv_resources.qc.

References autocvar_g_balance_pause_armor_rot, autocvar_g_balance_pause_fuel_rot, autocvar_g_balance_pause_health_rot, entity(), GetResource(), GiveResource(), M_ARGV, max(), MUTATOR_CALLHOOK, RES_HEALTH, SetResource(), and time.

Referenced by GiveRandomWeapons(), GiveResource(), GiveResourceWithLimit(), Monster_Miniboss_Check(), MUTATOR_HOOKFUNCTION(), NIX_GiveCurrentWeapon(), ons_ControlPoint_Icon_BuildThink(), and W_ThrowNewWeapon().

121 {
122  if (amount <= 0)
123  {
124  return;
125  }
126  bool forbid = MUTATOR_CALLHOOK(GiveResource, receiver, res_type, amount);
127  if (forbid)
128  {
129  return;
130  }
131  res_type = M_ARGV(1, entity);
132  amount = M_ARGV(2, float);
133  if (amount <= 0)
134  {
135  return;
136  }
137  SetResource(receiver, res_type, GetResource(receiver, res_type) + amount);
138  // TODO: registry handles
139  switch (res_type)
140  {
141  case RES_HEALTH:
142  {
143  receiver.pauserothealth_finished =
144  max(receiver.pauserothealth_finished, time +
146  return;
147  }
148  case RES_ARMOR:
149  {
150  receiver.pauserotarmor_finished =
151  max(receiver.pauserotarmor_finished, time +
153  return;
154  }
155  case RES_FUEL:
156  {
157  receiver.pauserotfuel_finished = max(receiver.pauserotfuel_finished,
159  return;
160  }
161  }
162 }
float autocvar_g_balance_pause_armor_rot
Definition: sv_resources.qh:32
void SetResource(entity e, Resource res_type, float amount)
Sets the current amount of resource the given entity will have.
Definition: sv_resources.qc:92
entity() spawn
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.
Definition: sv_resources.qc:76
RES_HEALTH
Definition: ent_cs.qc:126
#define M_ARGV(x, type)
Definition: events.qh:17
float autocvar_g_balance_pause_health_rot
Definition: sv_resources.qh:36
void GiveResource(entity receiver, Resource res_type, float amount)
Gives an entity some resource.
#define MUTATOR_CALLHOOK(id,...)
Definition: base.qh:140
float time
Definition: csprogsdefs.qc:16
float autocvar_g_balance_pause_fuel_rot
Definition: sv_resources.qh:34
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GiveResourceWithLimit()

void GiveResourceWithLimit ( entity  receiver,
Resource  res_type,
float  amount,
float  limit 
)

Gives an entity some resource but not more than a limit.

Parameters
[in,out]receiverEntity to give resource to.
[in]res_typeType of the resource (a RES_* constant).
[in]amountAmount of resource to give.
[in]limitLimit of resources to give.
Returns
No return.

Definition at line 164 of file sv_resources.qc.

References entity(), GetResource(), GiveResource(), GiveResourceWithLimit(), M_ARGV, MUTATOR_CALLHOOK, and RES_LIMIT_NONE.

Referenced by destructible_heal(), GiveResourceWithLimit(), Item_GiveAmmoTo(), Monster_Heal(), ons_ControlPoint_Icon_Heal(), ons_ControlPoint_Icon_Think(), ons_GeneratorHeal(), PlayerHeal(), and vehicles_heal().

165 {
166  if (amount <= 0)
167  {
168  return;
169  }
170  bool forbid = MUTATOR_CALLHOOK(GiveResourceWithLimit, receiver, res_type, amount, limit);
171  if (forbid)
172  {
173  return;
174  }
175  res_type = M_ARGV(1, entity);
176  amount = M_ARGV(2, float);
177  limit = M_ARGV(3, float);
178  if (amount <= 0)
179  {
180  return;
181  }
182  float current_amount = GetResource(receiver, res_type);
183  if (current_amount + amount > limit && limit != RES_LIMIT_NONE)
184  {
185  amount = limit - current_amount;
186  }
187  GiveResource(receiver, res_type, amount);
188 }
entity() spawn
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.
Definition: sv_resources.qc:76
void GiveResourceWithLimit(entity receiver, Resource res_type, float amount, float limit)
Gives an entity some resource but not more than a limit.
const int RES_LIMIT_NONE
Definition: resources.qh:46
#define M_ARGV(x, type)
Definition: events.qh:17
void GiveResource(entity receiver, Resource res_type, float amount)
Gives an entity some resource.
#define MUTATOR_CALLHOOK(id,...)
Definition: base.qh:140
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetResource()

void SetResource ( entity  e,
Resource  res_type,
float  amount 
)

Sets the current amount of resource the given entity will have but limited to the max amount allowed for the resource type.

Parameters
[in,out]eEntity to adjust.
[in]res_typeType of the resource (a RES_* constant).
[in]amountAmount of resource to set.
Returns
No return.

Sets the current amount of resource the given entity will have but limited to the max amount allowed for the resource type.

Parameters
[in,out]eEntity to adjust.
[in]res_typeType of the resource (a RES_* constant).
[in]amountAmount of resource to set.
Returns
No return.

Definition at line 26 of file cl_resources.qc.

References entity(), GetResourceLimit(), M_ARGV, MUTATOR_CALLHOOK, RES_LIMIT_NONE, and SetResourceExplicit().

Referenced by CheatImpulse(), Damage(), Freeze(), GENERIC_COMMAND(), GiveResource(), MUTATOR_HOOKFUNCTION(), NIX_GiveCurrentWeapon(), PutPlayerInServer(), readplayerstartcvars(), REGISTER_MUTATOR(), RotRegen(), TakeResource(), target_init_use(), Unfreeze(), vehicles_regen_resource(), W_DecreaseAmmo(), W_ReloadedAndReady(), W_ThrowNewWeapon(), and weapon_defaultspawnfunc().

27 {
28  SetResourceExplicit(e, res_type, amount);
29 }
bool SetResourceExplicit(entity e, Resource res_type, float amount)
Sets the resource amount of an entity without calling any hooks.
Definition: cl_resources.qc:15
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetResourceExplicit()

bool SetResourceExplicit ( entity  e,
Resource  res_type,
float  amount 
)

Sets the resource amount of an entity without calling any hooks.

Parameters
[in,out]eEntity to adjust.
[in]res_typeType of the resource (a RES_* constant).
[in]amountAmount of resource to set.
Returns
Boolean for whether the ammo amount was changed

Definition at line 15 of file cl_resources.qc.

Referenced by assault_objective_decrease_use(), assault_objective_reset(), assault_objective_use(), CheatCommand(), CopyBody(), ctf_FlagDamage(), ctf_FlagSetup(), ctf_FlagThink(), ctf_Handle_Drop(), ctf_Handle_Pickup(), ctf_RespawnFlag(), Damage(), door_damage(), door_go_down(), Draw_ShowNames_All(), FireGrapplingHook(), FixIntermissionClient(), ft_RemovePlayer(), GiveResourceValue(), LinkDoors(), MapVote_Tick(), Monster_Dead_Fade(), Monster_Frozen_Think(), Monster_Reset(), Monster_Spawn_Setup(), MUTATOR_HOOKFUNCTION(), NET_HANDLE(), ons_ControlPoint_Icon_BuildThink(), ons_ControlPoint_Icon_Spawn(), ons_GeneratorReset(), ons_GeneratorSetup(), PlayerPreThink(), Portal_Spawn(), Portal_TeleportPlayer(), powerups_DropItem(), PutObserverInServer(), SetResource(), spawnfunc(), SpectateCopy(), turret_construct(), and vehicles_projectile().

16 {
17  .float res_field = GetResourceField(res_type);
18  if (e.(res_field) != amount)
19  {
20  e.(res_field) = amount;
21  return true;
22  }
23  return false;
24 }
+ Here is the caller graph for this function:

◆ TakeResource()

void TakeResource ( entity  receiver,
Resource  res_type,
float  amount 
)

Takes an entity some resource.

Parameters
[in,out]receiverEntity to take resource from.
[in]res_typeType of the resource (a RES_* constant).
[in]amountAmount of resource to take.
Returns
No return.

Definition at line 31 of file cl_resources.qc.

References entity(), GetResource(), M_ARGV, MUTATOR_CALLHOOK, and SetResource().

Referenced by assault_objective_decrease_use(), ctf_FlagDamage(), ctf_FlagThink(), door_damage(), GrapplingHook_Damage(), Monster_Damage(), Monster_Dead_Damage(), MUTATOR_HOOKFUNCTION(), ons_ControlPoint_Icon_Damage(), ons_GeneratorDamage(), PlayerCorpseDamage(), PlayerDamage(), PM_jetpack(), Portal_Damage(), powerups_DropItem_Think(), TakeResourceWithLimit(), vehicles_damage(), and vehicles_projectile_damage().

32 {
33  if (amount == 0)
34  {
35  return;
36  }
37  SetResource(receiver, res_type, GetResource(receiver, res_type) - amount);
38 }
void SetResource(entity e, Resource res_type, float amount)
Sets the current amount of resource the given entity will have.
Definition: cl_resources.qc:26
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.
Definition: cl_resources.qc:10
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TakeResourceWithLimit()

void TakeResourceWithLimit ( entity  receiver,
Resource  res_type,
float  amount,
float  limit 
)

Takes an entity some resource but not less than a limit.

Parameters
[in,out]receiverEntity to take resource from.
[in]res_typeType of the resource (a RES_* constant).
[in]amountAmount of resource to take.
[in]limitLimit of resources to take.
Returns
No return.

Definition at line 40 of file cl_resources.qc.

References entity(), GetResource(), M_ARGV, MUTATOR_CALLHOOK, and TakeResource().

Referenced by Item_GiveAmmoTo().

41 {
42  if (amount == 0)
43  {
44  return;
45  }
46  float current_amount = GetResource(receiver, res_type);
47  if (current_amount - amount < limit)
48  {
49  amount = limit + current_amount;
50  }
51  TakeResource(receiver, res_type, amount);
52 }
void TakeResource(entity receiver, Resource res_type, float amount)
Takes an entity some resource.
Definition: cl_resources.qc:31
float GetResource(entity e, Resource res_type)
Returns the current amount of resource the given entity has.
Definition: cl_resources.qc:10
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ autocvar_g_balance_armor_limit

int autocvar_g_balance_armor_limit

Definition at line 12 of file sv_resources.qh.

Referenced by GetResourceLimit().

◆ autocvar_g_balance_armor_regen

float autocvar_g_balance_armor_regen

Definition at line 14 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_armor_regenlinear

float autocvar_g_balance_armor_regenlinear

Definition at line 15 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_armor_regenstable

int autocvar_g_balance_armor_regenstable

Definition at line 16 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_armor_rot

float autocvar_g_balance_armor_rot

Definition at line 17 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_armor_rotlinear

float autocvar_g_balance_armor_rotlinear

Definition at line 18 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_armor_rotstable

int autocvar_g_balance_armor_rotstable

Definition at line 19 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_fuel_limit

float autocvar_g_balance_fuel_limit

Definition at line 13 of file sv_resources.qh.

Referenced by GetResourceLimit().

◆ autocvar_g_balance_fuel_regen

float autocvar_g_balance_fuel_regen

Definition at line 20 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_fuel_regenlinear

float autocvar_g_balance_fuel_regenlinear

Definition at line 21 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_fuel_regenstable

int autocvar_g_balance_fuel_regenstable

Definition at line 22 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_fuel_rot

float autocvar_g_balance_fuel_rot

Definition at line 23 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_fuel_rotlinear

float autocvar_g_balance_fuel_rotlinear

Definition at line 24 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_fuel_rotstable

int autocvar_g_balance_fuel_rotstable

Definition at line 25 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_health_limit

float autocvar_g_balance_health_limit

Definition at line 11 of file sv_resources.qh.

Referenced by GetResourceLimit().

◆ autocvar_g_balance_health_regen

float autocvar_g_balance_health_regen

Definition at line 26 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_health_regenlinear

float autocvar_g_balance_health_regenlinear

Definition at line 27 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_health_regenstable

float autocvar_g_balance_health_regenstable

Definition at line 28 of file sv_resources.qh.

Referenced by MUTATOR_HOOKFUNCTION(), and player_regen().

◆ autocvar_g_balance_health_rot

float autocvar_g_balance_health_rot

Definition at line 29 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_health_rotlinear

float autocvar_g_balance_health_rotlinear

Definition at line 30 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_health_rotstable

float autocvar_g_balance_health_rotstable

Definition at line 31 of file sv_resources.qh.

Referenced by player_regen().

◆ autocvar_g_balance_pause_armor_rot

float autocvar_g_balance_pause_armor_rot

Definition at line 32 of file sv_resources.qh.

Referenced by GiveItems(), GiveResource(), and target_init_use().

◆ autocvar_g_balance_pause_fuel_regen

float autocvar_g_balance_pause_fuel_regen

Definition at line 33 of file sv_resources.qh.

Referenced by GiveItems(), and PM_jetpack().

◆ autocvar_g_balance_pause_fuel_rot

float autocvar_g_balance_pause_fuel_rot

Definition at line 34 of file sv_resources.qh.

Referenced by GiveItems(), and GiveResource().

◆ autocvar_g_balance_pause_health_regen

float autocvar_g_balance_pause_health_regen

◆ autocvar_g_balance_pause_health_rot

float autocvar_g_balance_pause_health_rot

Definition at line 36 of file sv_resources.qh.

Referenced by GiveItems(), GiveResource(), and target_init_use().