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

Go to the source code of this file.

Classes

class  NapalmNade

Functions

void nade_napalm_boom (entity this)

Variables

bool autocvar_g_nades_napalm
int autocvar_g_nades_napalm_ball_count
float autocvar_g_nades_napalm_ball_damage
float autocvar_g_nades_napalm_ball_damageforcescale
float autocvar_g_nades_napalm_ball_lifetime
float autocvar_g_nades_napalm_ball_radius
float autocvar_g_nades_napalm_ball_spread
float autocvar_g_nades_napalm_burntime
float autocvar_g_nades_napalm_fountain_damage
float autocvar_g_nades_napalm_fountain_delay
float autocvar_g_nades_napalm_fountain_edgedamage
float autocvar_g_nades_napalm_fountain_lifetime
float autocvar_g_nades_napalm_fountain_radius
bool autocvar_g_nades_napalm_selfdamage
const int PROJECTILE_NADE_NAPALM = 73
const int PROJECTILE_NADE_NAPALM_BURN = 74
const int PROJECTILE_NAPALM_FOUNTAIN = 75

Function Documentation

◆ nade_napalm_boom()

void nade_napalm_boom ( entity this)

Definition at line 152 of file napalm.qc.

153{
154 for (int c = 0; c < autocvar_g_nades_napalm_ball_count; ++c)
155 nade_napalm_ball(this);
156
157 entity fountain = new(nade_napalm_fountain);
158 fountain.owner = this.owner;
159 fountain.realowner = this.realowner;
160 fountain.origin = this.origin;
161 fountain.flags = FL_PROJECTILE;
162 IL_PUSH(g_projectiles, fountain);
163 IL_PUSH(g_bot_dodge, fountain);
164 setorigin(fountain, fountain.origin);
166 fountain.nextthink = time;
168 fountain.pushltime = fountain.ltime;
169 fountain.team = this.team;
170 set_movetype(fountain, MOVETYPE_TOSS);
171 fountain.projectiledeathtype = DEATH_NADE_NAPALM.m_id;
172 fountain.bot_dodge = true;
173 fountain.bot_dodgerating = autocvar_g_nades_napalm_fountain_damage;
174 fountain.nade_special_time = time;
175 setsize(fountain, '-16 -16 -16', '16 16 16');
176 CSQCProjectile(fountain, true, PROJECTILE_NAPALM_FOUNTAIN, true);
177}
IntrusiveList g_bot_dodge
Definition api.qh:150
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity owner
Definition main.qh:87
int team
Definition main.qh:188
const int FL_PROJECTILE
Definition constants.qh:85
float time
vector origin
void CSQCProjectile(entity e, float clientanimate, int type, float docull)
ERASEABLE entity IL_PUSH(IntrusiveList this, entity it)
Push to tail.
void set_movetype(entity this, int mt)
Definition movetypes.qc:4
const int MOVETYPE_TOSS
Definition movetypes.qh:135
void napalm_fountain_think(entity this)
Definition napalm.qc:114
void nade_napalm_ball(entity this)
Definition napalm.qc:73
const int PROJECTILE_NAPALM_FOUNTAIN
Definition napalm.qh:26
float autocvar_g_nades_napalm_fountain_lifetime
Definition napalm.qh:13
int autocvar_g_nades_napalm_ball_count
Definition napalm.qh:7
float autocvar_g_nades_napalm_fountain_damage
Definition napalm.qh:16
#define setthink(e, f)
IntrusiveList g_projectiles
Definition common.qh:58
entity realowner

References autocvar_g_nades_napalm_ball_count, autocvar_g_nades_napalm_fountain_damage, autocvar_g_nades_napalm_fountain_lifetime, CSQCProjectile(), entity(), FL_PROJECTILE, g_bot_dodge, g_projectiles, IL_PUSH(), MOVETYPE_TOSS, nade_napalm_ball(), napalm_fountain_think(), origin, owner, PROJECTILE_NAPALM_FOUNTAIN, realowner, set_movetype(), setthink, team, and time.

Referenced by nade_boom().

Variable Documentation

◆ autocvar_g_nades_napalm

bool autocvar_g_nades_napalm

Definition at line 6 of file napalm.qh.

Referenced by nades_CheckTypes().

◆ autocvar_g_nades_napalm_ball_count

int autocvar_g_nades_napalm_ball_count

Definition at line 7 of file napalm.qh.

Referenced by nade_napalm_boom().

◆ autocvar_g_nades_napalm_ball_damage

float autocvar_g_nades_napalm_ball_damage

Definition at line 9 of file napalm.qh.

Referenced by nade_napalm_ball(), and napalm_ball_think().

◆ autocvar_g_nades_napalm_ball_damageforcescale

float autocvar_g_nades_napalm_ball_damageforcescale

Definition at line 10 of file napalm.qh.

Referenced by nade_napalm_ball().

◆ autocvar_g_nades_napalm_ball_lifetime

float autocvar_g_nades_napalm_ball_lifetime

Definition at line 11 of file napalm.qh.

Referenced by nade_napalm_ball().

◆ autocvar_g_nades_napalm_ball_radius

float autocvar_g_nades_napalm_ball_radius

Definition at line 12 of file napalm.qh.

Referenced by napalm_ball_think().

◆ autocvar_g_nades_napalm_ball_spread

float autocvar_g_nades_napalm_ball_spread

Definition at line 8 of file napalm.qh.

Referenced by nade_napalm_ball().

◆ autocvar_g_nades_napalm_burntime

float autocvar_g_nades_napalm_burntime

Definition at line 18 of file napalm.qh.

Referenced by napalm_ball_think(), and napalm_fountain_think().

◆ autocvar_g_nades_napalm_fountain_damage

float autocvar_g_nades_napalm_fountain_damage

Definition at line 16 of file napalm.qh.

Referenced by nade_napalm_boom(), and napalm_fountain_think().

◆ autocvar_g_nades_napalm_fountain_delay

float autocvar_g_nades_napalm_fountain_delay

Definition at line 14 of file napalm.qh.

Referenced by napalm_fountain_think().

◆ autocvar_g_nades_napalm_fountain_edgedamage

float autocvar_g_nades_napalm_fountain_edgedamage

Definition at line 17 of file napalm.qh.

Referenced by napalm_fountain_think().

◆ autocvar_g_nades_napalm_fountain_lifetime

float autocvar_g_nades_napalm_fountain_lifetime

Definition at line 13 of file napalm.qh.

Referenced by nade_napalm_boom().

◆ autocvar_g_nades_napalm_fountain_radius

float autocvar_g_nades_napalm_fountain_radius

Definition at line 15 of file napalm.qh.

Referenced by napalm_fountain_think().

◆ autocvar_g_nades_napalm_selfdamage

bool autocvar_g_nades_napalm_selfdamage

Definition at line 19 of file napalm.qh.

Referenced by napalm_damage().

◆ PROJECTILE_NADE_NAPALM

const int PROJECTILE_NADE_NAPALM = 73

Definition at line 24 of file napalm.qh.

Referenced by REGISTER_NADE().

◆ PROJECTILE_NADE_NAPALM_BURN

const int PROJECTILE_NADE_NAPALM_BURN = 74

Definition at line 25 of file napalm.qh.

Referenced by REGISTER_NADE().

◆ PROJECTILE_NAPALM_FOUNTAIN

const int PROJECTILE_NAPALM_FOUNTAIN = 75

Definition at line 26 of file napalm.qh.

Referenced by MODEL(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and nade_napalm_boom().