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

Go to the source code of this file.

Classes

class  VeilNade

Functions

void nade_veil_Apply (entity player)
void nade_veil_boom (entity this)

Variables

bool autocvar_g_nades_veil
float autocvar_g_nades_veil_radius = 250
float autocvar_g_nades_veil_time = 8
float nade_veil_prevalpha
float nade_veil_time
const int PROJECTILE_NADE_VEIL = 86
const int PROJECTILE_NADE_VEIL_BURN = 87

Function Documentation

◆ nade_veil_Apply()

void nade_veil_Apply ( entity player)

Definition at line 34 of file veil.qc.

35{
36 if(player.nade_veil_time && player.nade_veil_time <= time)
37 {
38 player.nade_veil_time = 0;
39 if(player.vehicle)
40 player.vehicle.alpha = player.vehicle.nade_veil_prevalpha;
41 else
42 player.alpha = player.nade_veil_prevalpha;
43 }
44}
float time

References entity(), and time.

Referenced by MUTATOR_HOOKFUNCTION().

◆ nade_veil_boom()

void nade_veil_boom ( entity this)

Definition at line 26 of file veil.qc.

27{
29
31 orb.colormod = NADE_TYPE_VEIL.m_color;
32}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity owner
Definition main.qh:87
vector origin
#define settouch(e, f)
Definition self.qh:73
entity nades_spawn_orb(entity own, entity realown, vector org, float orb_ltime, float orb_rad)
Definition sv_nades.qc:75
entity realowner
void nade_veil_touch(entity this, entity toucher)
Definition veil.qc:6
float autocvar_g_nades_veil_radius
Definition veil.qh:8
float autocvar_g_nades_veil_time
Definition veil.qh:7

References autocvar_g_nades_veil_radius, autocvar_g_nades_veil_time, entity(), nade_veil_touch(), nades_spawn_orb(), origin, owner, realowner, and settouch.

Referenced by nade_boom().

Variable Documentation

◆ autocvar_g_nades_veil

bool autocvar_g_nades_veil

Definition at line 6 of file veil.qh.

Referenced by nades_CheckTypes().

◆ autocvar_g_nades_veil_radius

float autocvar_g_nades_veil_radius = 250

Definition at line 8 of file veil.qh.

Referenced by nade_veil_boom().

◆ autocvar_g_nades_veil_time

float autocvar_g_nades_veil_time = 8

Definition at line 7 of file veil.qh.

Referenced by nade_veil_boom().

◆ nade_veil_prevalpha

float nade_veil_prevalpha

Definition at line 11 of file veil.qh.

◆ nade_veil_time

float nade_veil_time

Definition at line 10 of file veil.qh.

◆ PROJECTILE_NADE_VEIL

const int PROJECTILE_NADE_VEIL = 86

Definition at line 17 of file veil.qh.

Referenced by REGISTER_NADE().

◆ PROJECTILE_NADE_VEIL_BURN

const int PROJECTILE_NADE_VEIL_BURN = 87

Definition at line 18 of file veil.qh.

Referenced by REGISTER_NADE().