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

81{
82 entity fountain = new(nade_ice_fountain);
83 fountain.owner = this.owner;
84 fountain.realowner = this.realowner;
85 fountain.origin = this.origin;
86 setorigin(fountain, fountain.origin);
87 setthink(fountain, nade_ice_think);
88 fountain.nextthink = time;
89 fountain.pushltime = fountain.wait = fountain.ltime = time + autocvar_g_nades_ice_freeze_time;
90 fountain.team = this.team;
91 set_movetype(fountain, MOVETYPE_TOSS);
92 fountain.projectiledeathtype = DEATH_NADE_ICE.m_id;
93 fountain.bot_dodge = false;
94 setsize(fountain, '-16 -16 -16', '16 16 16');
95 fountain.nade_special_time = time + 0.3;
96 fountain.angles = this.angles;
97
99 {
100 setmodel(fountain, MDL_PROJECTILE_GRENADE);
101 entity timer = new(nade_timer);
102 setmodel(timer, MDL_NADE_TIMER);
103 setattachment(timer, fountain, "");
104 timer.colormap = this.colormap;
105 timer.glowmod = this.glowmod;
107 timer.nextthink = time;
108 timer.wait = fountain.wait;
109 timer.nade_lifetime = this.nade_lifetime;
110 timer.owner = fountain;
111 timer.skin = 10;
112 }
113 else
114 setmodel(fountain, MDL_Null);
115}
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
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
void set_movetype(entity this, int mt)
Definition movetypes.qc:4
const int MOVETYPE_TOSS
Definition movetypes.qh:135
#define setthink(e, f)
void nade_timer_think(entity this)
Definition sv_nades.qc:23
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(), glowmod, 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_teamcheck

bool autocvar_g_nades_ice_teamcheck

Definition at line 9 of file ice.qh.

Referenced by nade_ice_think().

◆ PROJECTILE_NADE_ICE

const int PROJECTILE_NADE_ICE = 76

Definition at line 14 of file ice.qh.

Referenced by REGISTER_NADE().

◆ PROJECTILE_NADE_ICE_BURN

const int PROJECTILE_NADE_ICE_BURN = 77

Definition at line 15 of file ice.qh.

Referenced by REGISTER_NADE().