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

Go to the source code of this file.

Classes

class  IceNade

Functions

void nade_ice_boom (entity this)

Variables

bool autocvar_g_nades_ice = true
bool autocvar_g_nades_ice_explode
float autocvar_g_nades_ice_freeze_time
float autocvar_g_nades_ice_radius
bool autocvar_g_nades_ice_teamcheck
const int PROJECTILE_NADE_ICE = 76
const int PROJECTILE_NADE_ICE_BURN = 77

Function Documentation

◆ nade_ice_boom()

void nade_ice_boom ( entity this)

Definition at line 81 of file ice.qc.

82{
83 entity fountain = new(nade_ice_fountain);
84 fountain.owner = this.owner;
85 fountain.realowner = this.realowner;
86 fountain.origin = this.origin;
87 fountain.flags = FL_PROJECTILE;
88 IL_PUSH(g_projectiles, fountain);
89 setorigin(fountain, fountain.origin);
90 setthink(fountain, nade_ice_think);
91 fountain.nextthink = time;
92 fountain.pushltime = fountain.wait = fountain.ltime = time + autocvar_g_nades_ice_freeze_time;
93 fountain.team = this.team;
94 set_movetype(fountain, MOVETYPE_TOSS);
95 fountain.projectiledeathtype = DEATH_NADE_ICE.m_id;
96 fountain.bot_dodge = false;
97 setsize(fountain, '-16 -16 -16', '16 16 16');
98 fountain.nade_special_time = time + 0.3;
99 fountain.angles = this.angles;
100
102 {
103 setmodel(fountain, MDL_PROJECTILE_GRENADE);
104 entity timer = new(nade_timer);
105 setmodel(timer, MDL_NADE_TIMER);
106 setattachment(timer, fountain, "");
107 timer.colormap = this.colormap;
108 timer.glowmod = this.glowmod;
110 timer.nextthink = time;
111 timer.wait = fountain.wait;
112 timer.nade_lifetime = this.nade_lifetime;
113 timer.owner = fountain;
114 timer.skin = 10;
115 }
116 else
117 setmodel(fountain, MDL_Null);
118}
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
entity owner
Definition main.qh:87
int team
Definition main.qh:188
#define setmodel(this, m)
Definition model.qh:26
const int FL_PROJECTILE
Definition constants.qh:77
float time
float colormap
vector origin
vector glowmod
ent angles
Definition ent_cs.qc:146
float timer
Definition hud.qh:125
void nade_ice_think(entity this)
Definition ice.qc:21
bool autocvar_g_nades_ice_explode
Definition ice.qh:8
float autocvar_g_nades_ice_freeze_time
Definition ice.qh:7
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:139
#define setthink(e, f)
IntrusiveList g_projectiles
Definition common.qh:70
void nade_timer_think(entity this)
Definition sv_nades.qc:28
float nade_lifetime
Definition sv_nades.qh:45
entity realowner

References angles, autocvar_g_nades_ice_explode, autocvar_g_nades_ice_freeze_time, colormap, entity(), FL_PROJECTILE, g_projectiles, glowmod, IL_PUSH(), MOVETYPE_TOSS, nade_ice_think(), nade_lifetime, nade_timer_think(), origin, owner, realowner, set_movetype(), setmodel, setthink, team, time, and timer.

Referenced by nade_boom().

Variable Documentation

◆ autocvar_g_nades_ice

bool autocvar_g_nades_ice = true

Definition at line 6 of file ice.qh.

Referenced by nades_CheckTypes().

◆ autocvar_g_nades_ice_explode

bool autocvar_g_nades_ice_explode

Definition at line 8 of file ice.qh.

Referenced by nade_ice_boom(), and nade_ice_think().

◆ autocvar_g_nades_ice_freeze_time

float autocvar_g_nades_ice_freeze_time

Definition at line 7 of file ice.qh.

Referenced by nade_ice_boom().

◆ autocvar_g_nades_ice_radius

float autocvar_g_nades_ice_radius

Definition at line 10 of file ice.qh.

Referenced by nade_ice_think().

◆ autocvar_g_nades_ice_teamcheck

bool autocvar_g_nades_ice_teamcheck

Definition at line 9 of file ice.qh.

Referenced by MUTATOR_HOOKFUNCTION(), and nade_ice_think().

◆ PROJECTILE_NADE_ICE

const int PROJECTILE_NADE_ICE = 76

Definition at line 16 of file ice.qh.

◆ PROJECTILE_NADE_ICE_BURN

const int PROJECTILE_NADE_ICE_BURN = 77

Definition at line 17 of file ice.qh.

Referenced by NADE_PROJECTILE().