Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
vengeance.qc
Go to the documentation of this file.
1#include "vengeance.qh"
2
3#ifdef SVQC
5{
6 if (this.enemy)
7 Damage(this.enemy, this.owner, this.owner, this.dmg, DEATH_BUFF.m_id, DMG_NOWEP, this.enemy.origin, '0 0 0');
8
9 delete(this);
10 return;
11}
16#endif // SVQC
17#ifdef MENUQC
18#include "vampire.qh"
19
20METHOD(VengeanceBuff, describe, string(VengeanceBuff this))
21{
22 TC(VengeanceBuff, this);
24 PAR(_("The %s buff reciprocates a portion of the damage enemies deal to you onto them, until the buff expires."), COLORED_NAME(this));
25 PAR(_("In some sense, this is the opposite of the %s buff."), COLORED_NAME(BUFF_VAMPIRE));
26 return PAGE_TEXT;
27}
28#endif // MENUQC
float dmg
Definition breakable.qc:12
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity owner
Definition main.qh:87
#define COLORED_NAME(this)
Definition color.qh:195
void Damage(entity targ, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force)
Definition damage.qc:503
#define DMG_NOWEP
Definition damage.qh:104
#define TC(T, sym)
Definition _all.inc:82
#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
entity enemy
Definition sv_ctf.qh:153
void buff_Vengeance_DelayedDamage(entity this)
Definition vengeance.qc:4
float buff_Vengeance_CalculateDamage(float frag_damage)
Definition vengeance.qc:12
float autocvar_g_buffs_vengeance_damage_multiplier
Definition vengeance.qh:6