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

Go to the source code of this file.

Functions

float buff_Inferno_CalculateDamage (float frag_damage)
float buff_Inferno_CalculateTime (float dmg)

Function Documentation

◆ buff_Inferno_CalculateDamage()

float buff_Inferno_CalculateDamage ( float frag_damage)

Definition at line 13 of file inferno.qc.

14{
16}
float autocvar_g_buffs_inferno_damagemultiplier
Definition inferno.qh:10
float frag_damage
Definition sv_ctf.qc:2322

References autocvar_g_buffs_inferno_damagemultiplier, and frag_damage.

Referenced by MUTATOR_HOOKFUNCTION().

◆ buff_Inferno_CalculateTime()

float buff_Inferno_CalculateTime ( float dmg)

Definition at line 4 of file inferno.qc.

5{
6 float offset_x = 0;
11 return offset_y + (intersect_y - offset_y) * logn(((dmg - offset_x) * ((base - 1) / intersect_x)) + 1, base);
12}
float dmg
Definition breakable.qc:12
float autocvar_g_buffs_inferno_burntime_target_damage
Definition inferno.qh:8
float autocvar_g_buffs_inferno_burntime_target_time
Definition inferno.qh:9
float autocvar_g_buffs_inferno_burntime_min_time
Definition inferno.qh:7
float autocvar_g_buffs_inferno_burntime_factor
Definition inferno.qh:6
float logn(float e, float base)
Definition mathlib.qc:102

References autocvar_g_buffs_inferno_burntime_factor, autocvar_g_buffs_inferno_burntime_min_time, autocvar_g_buffs_inferno_burntime_target_damage, autocvar_g_buffs_inferno_burntime_target_time, dmg, and logn().

Referenced by MUTATOR_HOOKFUNCTION().