Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
bash.qc
Go to the documentation of this file.
1#include "bash.qh"
2
3#ifdef SVQC
5{
6 if (frag_attacker != frag_target)
7 frag_force = '0 0 0';
8 return frag_force;
9}
21#endif // SVQC
22#ifdef MENUQC
23METHOD(BashBuff, describe, string(BashBuff this))
24{
25 TC(BashBuff, this);
27 PAR(_("The %s buff increases the knockback force you deal, and makes you immune to knockback while the buff is active."), COLORED_NAME(this));
28 PAR(_("It also slightly increases the knockback you deal to yourself."));
29 return PAGE_TEXT;
30}
31#endif // MENUQC
vector buff_Bash_AttackerCalculateForce(vector frag_force, entity frag_target, entity frag_attacker)
Definition bash.qc:10
vector buff_Bash_TargetCalculateForce(vector frag_force, entity frag_target, entity frag_attacker)
Definition bash.qc:4
float autocvar_g_buffs_bash_force
Definition bash.qh:6
float autocvar_g_buffs_bash_force_self
Definition bash.qh:7
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
#define COLORED_NAME(this)
Definition color.qh:195
#define TC(T, sym)
Definition _all.inc:82
#define METHOD(cname, name, prototype)
Definition oo.qh:269
vector
Definition self.qh:92
#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
vector frag_force
Definition sv_ctf.qc:2323
entity frag_target
Definition sv_ctf.qc:2321