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 37 of file flac_weapon.qc.

38{
39 if(this.enemy != NULL)
40 if(vdist(this.origin - this.enemy.origin, <, this.owner.shot_radius * 3))
41 setorigin(this, this.enemy.origin + randomvec() * this.owner.shot_radius);
42
43#ifdef TURRET_DEBUG
44 float d = RadiusDamage (this, this.owner, this.owner.shot_dmg, this.owner.shot_dmg, this.owner.shot_radius, this, NULL, this.owner.shot_force, this.projectiledeathtype, DMG_NOWEP, NULL);
45 this.owner.tur_debug_dmg_t_h = this.owner.tur_debug_dmg_t_h + d;
46 this.owner.tur_debug_dmg_t_f = this.owner.tur_debug_dmg_t_f + this.owner.shot_dmg;
47#else
48 RadiusDamage (this, this.realowner, this.owner.shot_dmg, this.owner.shot_dmg, this.owner.shot_radius, this, NULL, this.owner.shot_force, this.projectiledeathtype, DMG_NOWEP, NULL);
49#endif
50 delete(this);
51}
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:981
#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.