Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
resistance.qh File Reference
Include dependency graph for resistance.qh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ResistanceBuff

Functions

float buff_Resistance_CalculateDamage (float frag_damage)
 REGISTER_BUFF (RESISTANCE, NEW(ResistanceBuff))

Variables

float autocvar_g_buffs_resistance_blockpercent

Function Documentation

◆ buff_Resistance_CalculateDamage()

float buff_Resistance_CalculateDamage ( float frag_damage)

Definition at line 4 of file resistance.qc.

5{
7}
float bound(float min, float value, float max)
float autocvar_g_buffs_resistance_blockpercent
Definition resistance.qh:6
float frag_damage
Definition sv_ctf.qc:2322

References autocvar_g_buffs_resistance_blockpercent, bound(), and frag_damage.

Referenced by MUTATOR_HOOKFUNCTION().

◆ REGISTER_BUFF()

REGISTER_BUFF ( RESISTANCE ,
NEW(ResistanceBuff)  )

Variable Documentation

◆ autocvar_g_buffs_resistance_blockpercent

float autocvar_g_buffs_resistance_blockpercent

Definition at line 6 of file resistance.qh.

Referenced by buff_Resistance_CalculateDamage().