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

Go to the source code of this file.

Functions

void wepent_link (entity wep)
bool wepent_send (entity this, entity to, int sf)

Variables

Weapon activeweapon
vector angles_held
bool angles_held_status
float arc_heat_percent
int clip_load
int clip_size
int hagar_load
float m_alpha
int m_forceupdate
int m_skin
Weapon m_switchingweapon
Weapon m_switchweapon
Weapon m_weapon
int m_wepent_slot
int minelayer_mines
float oknex_charge
float oknex_chargepool_ammo
Weapon switchingweapon
Weapon switchweapon
int tuba_instrument
float vortex_charge
float vortex_chargepool_ammo

Function Documentation

◆ wepent_link()

void wepent_link ( entity wep)

Definition at line 159 of file wepent.qc.

160 {
161 entity e = new_pure(wepent_sender);
162 e.owner = wep;
164 e.nextthink = time;
165 //e.drawonlytoclient = wep.owner;
167 Net_LinkEntity(e, false, 0, wepent_send);
168 }
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
float time
void Net_LinkEntity(entity e, bool docull, float dt, bool(entity this, entity to, int sendflags) sendfunc)
Definition net.qh:123
#define new_pure(class)
purely logical entities (not linked to the area grid)
Definition oo.qh:67
#define setthink(e, f)
#define setcefc(e, f)
void wepent_think(entity this)
Definition wepent.qc:128
bool wepent_send(entity this, entity to, int sf)
Definition wepent.qc:123
bool wepent_customize(entity this, entity client)
Definition wepent.qc:152

References entity(), Net_LinkEntity(), new_pure, setcefc, setthink, time, wepent_customize(), wepent_send(), and wepent_think().

Referenced by CL_SpawnWeaponentity().

◆ wepent_send()

bool wepent_send ( entity this,
entity to,
int sf )

Definition at line 123 of file wepent.qc.

124 {
125 return _wepent_send(this, to, sf, MSG_ENTITY);
126 }
const int MSG_ENTITY
Definition net.qh:115
bool _wepent_send(entity this, entity to, int sf, int chan)
Definition wepent.qc:100

References _wepent_send(), entity(), and MSG_ENTITY.

Referenced by wepent_link().

Variable Documentation

◆ activeweapon

Weapon activeweapon

Definition at line 34 of file wepent.qh.

Referenced by CSQC_UpdateView(), and viewmodel_draw().

◆ angles_held

vector angles_held

Definition at line 44 of file wepent.qh.

◆ angles_held_status

bool angles_held_status

Definition at line 43 of file wepent.qh.

◆ arc_heat_percent

float arc_heat_percent

Definition at line 12 of file wepent.qh.

◆ clip_load

int clip_load

Definition at line 14 of file wepent.qh.

Referenced by havocbot_ai(), nade_ammo_touch(), W_Reload(), and W_WeaponFrame().

◆ clip_size

int clip_size

Definition at line 15 of file wepent.qh.

Referenced by havocbot_ai(), and W_WeaponFrame().

◆ hagar_load

int hagar_load

Definition at line 13 of file wepent.qh.

Referenced by W_Hagar_Attack2_Load(), and W_Hagar_Attack2_Load_Release().

◆ m_alpha

float m_alpha

Definition at line 38 of file wepent.qh.

◆ m_forceupdate

int m_forceupdate

Definition at line 23 of file wepent.qh.

◆ m_skin

int m_skin

Definition at line 40 of file wepent.qh.

Referenced by Pickup::ATTRIB(), and viewmodel_draw().

◆ m_switchingweapon

Weapon m_switchingweapon

Definition at line 27 of file wepent.qh.

Referenced by W_WeaponFrame().

◆ m_switchweapon

◆ m_weapon

◆ m_wepent_slot

int m_wepent_slot

Definition at line 32 of file wepent.qh.

Referenced by ReadWepent().

◆ minelayer_mines

int minelayer_mines

Definition at line 11 of file wepent.qh.

◆ oknex_charge

float oknex_charge

Definition at line 8 of file wepent.qh.

Referenced by MUTATOR_HOOKFUNCTION(), REGISTER_MUTATOR(), and W_OverkillNex_Attack().

◆ oknex_chargepool_ammo

float oknex_chargepool_ammo

Definition at line 9 of file wepent.qh.

◆ switchingweapon

Weapon switchingweapon

Definition at line 35 of file wepent.qh.

◆ switchweapon

Weapon switchweapon

Definition at line 36 of file wepent.qh.

◆ tuba_instrument

◆ vortex_charge

float vortex_charge

◆ vortex_chargepool_ammo

float vortex_chargepool_ammo

Definition at line 7 of file wepent.qh.