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

Go to the source code of this file.

Classes

class  Vortex

Macros

#define X(BEGIN, P, END, class, prefix)

Functions

 MODEL (VORTEX_ITEM, W_Model("g_nex.md3"))
 MODEL (VORTEX_MUZZLEFLASH, "models/nexflash.md3")
 MODEL (VORTEX_VIEW, W_Model("h_nex.iqm"))
 MODEL (VORTEX_WORLD, W_Model("v_nex.md3"))
 REGISTER_WEAPON (VORTEX, NEW(Vortex))
 SOUND (VORTEX_CHARGE, W_Sound("nexcharge"))
 SOUND (VORTEX_FIRE, W_Sound("nexfire"))
 SOUND (VORTEX_IMPACT, W_Sound("neximpact"))
void W_Vortex_Charge (entity actor,.entity weaponentity, float dt)

Variables

bool autocvar_cl_particles_oldvortexbeam
float vortex_charge_rottime
float vortex_lasthit

Macro Definition Documentation

◆ X

#define X ( BEGIN,
P,
END,
class,
prefix )

Definition at line 35 of file vortex.qh.

35#define X(BEGIN, P, END, class, prefix) \
36 BEGIN(class) \
37 P(class, prefix, ammo, float, BOTH) \
38 P(class, prefix, animtime, float, BOTH) \
39 P(class, prefix, armorpierce, float, BOTH) \
40 P(class, prefix, chargepool, float, SEC) \
41 P(class, prefix, chargepool_pause_regen, float, SEC) \
42 P(class, prefix, chargepool_regen, float, SEC) \
43 P(class, prefix, charge, float, NONE) \
44 P(class, prefix, charge_always, float, NONE) \
45 P(class, prefix, charge_animlimit, float, NONE) \
46 P(class, prefix, charge_limit, float, NONE) \
47 P(class, prefix, charge_maxspeed, float, NONE) \
48 P(class, prefix, charge_mindmg, float, NONE) \
49 P(class, prefix, charge_minspeed, float, NONE) \
50 P(class, prefix, charge_rate, float, NONE) \
51 P(class, prefix, charge_rot_pause, float, NONE) \
52 P(class, prefix, charge_rot_rate, float, NONE) \
53 P(class, prefix, charge_shot_multiplier, float, NONE) \
54 P(class, prefix, charge_start, float, NONE) \
55 P(class, prefix, charge_velocity_rate, float, NONE) \
56 P(class, prefix, damage, float, BOTH) \
57 P(class, prefix, damagefalloff_forcehalflife, float, BOTH) \
58 P(class, prefix, damagefalloff_halflife, float, BOTH) \
59 P(class, prefix, damagefalloff_maxdist, float, BOTH) \
60 P(class, prefix, damagefalloff_mindist, float, BOTH) \
61 P(class, prefix, force, float, BOTH) \
62 P(class, prefix, pickup_ammo, float, NONE) \
63 P(class, prefix, refire, float, BOTH) \
64 P(class, prefix, reload_ammo, float, NONE) \
65 P(class, prefix, reload_time, float, NONE) \
66 P(class, prefix, secondary, float, NONE) \
67 P(class, prefix, switchdelay_raise, float, NONE) \
68 P(class, prefix, switchdelay_drop, float, NONE) \
69 P(class, prefix, weaponreplace, string, NONE) \
70 P(class, prefix, weaponstart, float, NONE) \
71 P(class, prefix, weaponstartoverride, float, NONE) \
72 P(class, prefix, weaponthrowable, float, NONE) \
73 END()

Function Documentation

◆ MODEL() [1/4]

MODEL ( VORTEX_ITEM ,
W_Model("g_nex.md3")  )

◆ MODEL() [2/4]

MODEL ( VORTEX_MUZZLEFLASH ,
"models/nexflash.md3"  )

◆ MODEL() [3/4]

MODEL ( VORTEX_VIEW ,
W_Model("h_nex.iqm")  )

◆ MODEL() [4/4]

MODEL ( VORTEX_WORLD ,
W_Model("v_nex.md3")  )

◆ REGISTER_WEAPON()

REGISTER_WEAPON ( VORTEX ,
NEW(Vortex)  )

◆ SOUND() [1/3]

SOUND ( VORTEX_CHARGE ,
W_Sound("nexcharge")  )

◆ SOUND() [2/3]

SOUND ( VORTEX_FIRE ,
W_Sound("nexfire")  )

◆ SOUND() [3/3]

SOUND ( VORTEX_IMPACT ,
W_Sound("neximpact")  )

◆ W_Vortex_Charge()

void W_Vortex_Charge ( entity actor,
.entity weaponentity,
float dt )

Definition at line 173 of file vortex.qc.

174{
175 if(WEP_CVAR(WEP_VORTEX, charge) && actor.(weaponentity).vortex_charge < WEP_CVAR(WEP_VORTEX, charge_limit))
176 actor.(weaponentity).vortex_charge = min(1, actor.(weaponentity).vortex_charge + WEP_CVAR(WEP_VORTEX, charge_rate) * dt);
177}
float min(float f,...)
#define WEP_CVAR(wep, name)
Definition all.qh:321
float vortex_charge
Definition wepent.qh:6

References entity(), min(), vortex_charge, and WEP_CVAR.

Referenced by PlayerThink().

Variable Documentation

◆ autocvar_cl_particles_oldvortexbeam

bool autocvar_cl_particles_oldvortexbeam

Definition at line 84 of file vortex.qh.

◆ vortex_charge_rottime

float vortex_charge_rottime

Definition at line 88 of file vortex.qh.

Referenced by PlayerThink().

◆ vortex_lasthit

float vortex_lasthit

Definition at line 90 of file vortex.qh.