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

Go to the source code of this file.

Functions

void FireImoBeam (entity this, vector start, vector end, vector smin, vector smax, float bforce, float f_dmg, float f_velfactor, float deathtype)
float turret_tag_fire_update (entity this)

Function Documentation

◆ FireImoBeam()

void FireImoBeam ( entity this,
vector start,
vector end,
vector smin,
vector smax,
float bforce,
float f_dmg,
float f_velfactor,
float deathtype )

References entity(), lifetime, and vector.

◆ turret_tag_fire_update()

float turret_tag_fire_update ( entity this)

Definition at line 9 of file util.qc.

10{
11 if(!this.tur_head)
12 {
13 LOG_DEBUG("Call to turret_tag_fire_update with this.tur_head missing!");
14 this.tur_shotorg = '0 0 0';
15 return false;
16 }
17
18 this.tur_shotorg = gettaginfo(this.tur_head, gettagindex(this.tur_head, "tag_fire"));
20
21 return true;
22}
vector v_forward
#define gettagindex
#define LOG_DEBUG(...)
Definition log.qh:80
vector normalize(vector v)
#define gettaginfo
Definition post.qh:32
vector tur_shotorg
Definition sv_turrets.qh:30
entity tur_head
Definition sv_turrets.qh:28

References entity(), gettagindex, gettaginfo, LOG_DEBUG, normalize(), tur_head, tur_shotorg, and v_forward.

Referenced by turret_aim_generic(), turret_do_updates(), and turret_initialize().