Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
inferno.qc
Go to the documentation of this file.
1#include "inferno.qh"
2
3#ifdef SVQC
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}
17#endif // SVQC
18#ifdef MENUQC
19METHOD(InfernoBuff, describe, string(InfernoBuff this))
20{
21 TC(InfernoBuff, this);
23 PAR(_("The %s buff sets any enemies or monsters you attack alight, dealing burn damage to them for several seconds until the buff expires."), COLORED_NAME(this));
24 return PAGE_TEXT;
25}
26#endif // MENUQC
float dmg
Definition breakable.qc:12
#define COLORED_NAME(this)
Definition color.qh:195
float buff_Inferno_CalculateTime(float dmg)
Definition inferno.qc:4
float buff_Inferno_CalculateDamage(float frag_damage)
Definition inferno.qc:13
float autocvar_g_buffs_inferno_burntime_target_damage
Definition inferno.qh:8
float autocvar_g_buffs_inferno_damagemultiplier
Definition inferno.qh:10
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
#define TC(T, sym)
Definition _all.inc:82
float logn(float e, float base)
Definition mathlib.qc:102
#define METHOD(cname, name, prototype)
Definition oo.qh:269
#define PAGE_TEXT
Definition string.qh:643
#define PAR(...)
Adds an individually translatable paragraph to PAGE_TEXT without having to deal with strcat and sprin...
Definition string.qh:649
#define PAGE_TEXT_INIT()
Definition string.qh:642
float frag_damage
Definition sv_ctf.qc:2322