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

Go to the source code of this file.

Functions

 SOUND (FlacAttack_FIRE, W_Sound("hagar_fire"))
void turret_flac_projectile_think_explode (entity this)

Function Documentation

◆ SOUND()

SOUND ( FlacAttack_FIRE ,
W_Sound("hagar_fire")  )

◆ turret_flac_projectile_think_explode()

void turret_flac_projectile_think_explode ( entity this)

Definition at line 41 of file flac_weapon.qc.

42{
43 if (this.enemy != NULL
44 && vdist(this.origin - this.enemy.origin, <, this.owner.shot_radius * 3))
45 setorigin(this, this.enemy.origin + randomvec() * this.owner.shot_radius);
46
47#ifdef TURRET_DEBUG
48 float d = RadiusDamage(this, this.owner,
49#else
50 RadiusDamage(this, this.realowner,
51#endif
52 this.owner.shot_dmg,
53 this.owner.shot_dmg,
54 this.owner.shot_radius,
55 this,
56 NULL,
57 this.owner.shot_force,
58 this.projectiledeathtype,
60 NULL
61 );
62#ifdef TURRET_DEBUG
63 this.owner.tur_debug_dmg_t_h += d;
64 this.owner.tur_debug_dmg_t_f += this.owner.shot_dmg;
65#endif
66 delete(this);
67}
entity owner
Definition main.qh:87
vector origin
float RadiusDamage(entity inflictor, entity attacker, float coredamage, float edgedamage, float rad, entity cantbe, entity mustbe, float forceintensity, int deathtype,.entity weaponentity, entity directhitentity)
Definition damage.qc:943
#define DMG_NOWEP
Definition damage.qh:104
vector randomvec(void)
#define NULL
Definition post.qh:14
entity enemy
Definition sv_ctf.qh:153
entity realowner
#define vdist(v, cmp, f)
Vector distance comparison, avoids sqrt()
Definition vector.qh:8

References DMG_NOWEP, enemy, entity(), NULL, origin, owner, RadiusDamage(), randomvec(), realowner, and vdist.