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 74 of file ice.qc.

75{
76 entity fountain = new(nade_ice_fountain);
77 fountain.owner = this.owner;
78 fountain.realowner = this.realowner;
79 fountain.origin = this.origin;
80 fountain.flags = FL_PROJECTILE;
81 IL_PUSH(g_projectiles, fountain);
82 setorigin(fountain, fountain.origin);
83 setthink(fountain, nade_ice_think);
84 fountain.nextthink = time;
85 fountain.pushltime = fountain.wait = fountain.ltime = time + autocvar_g_nades_ice_freeze_time;
86 fountain.team = this.team;
87 set_movetype(fountain, MOVETYPE_TOSS);
88 fountain.projectiledeathtype = DEATH_NADE_ICE.m_id;
89 fountain.bot_dodge = false;
90 setsize(fountain, '-16 -16 -16', '16 16 16');
91 fountain.nade_special_time = time + 0.3;
92 fountain.angles = this.angles;
93
95 {
96 setmodel(fountain, MDL_PROJECTILE_GRENADE);
97 entity timer = new(nade_timer);
98 setmodel(timer, MDL_NADE_TIMER);
99 setattachment(timer, fountain, "");
100 timer.colormap = this.colormap;
101 timer.glowmod = this.glowmod;
103 timer.nextthink = time;
104 timer.wait = fountain.wait;
105 timer.nade_lifetime = this.nade_lifetime;
106 timer.owner = fountain;
107 timer.skin = 10;
108 }
109 else
110 setmodel(fountain, MDL_Null);
111}
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:85
float time
float colormap
vector origin
vector glowmod
ent angles
Definition ent_cs.qc:121
float timer
Definition hud.qh:125
void nade_ice_think(entity this)
Definition ice.qc:12
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:135
#define setthink(e, f)
IntrusiveList g_projectiles
Definition common.qh:58
void nade_timer_think(entity this)
Definition sv_nades.qc:27
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().