Xonotic
|
Go to the source code of this file.
Macros | |
#define | w_getbestweapon(ent, wepent) REGISTRY_GET(Weapons, W_GetCycleWeapon(ent, CS_CVAR(ent).cvar_cl_weaponpriority, 0, -1, false, true, wepent)) |
Functions | |
bool | client_hasweapon (entity this, Weapon wpn,.entity weaponentity, float andammo, bool complain) |
void | Send_WeaponComplain (entity e, float wpn, float type) |
void | W_CycleWeapon (entity this, string weaponorder, float dir,.entity weaponentity) |
float | W_GetCycleWeapon (entity this, string weaponorder, float dir, float imp, float complain, float skipmissing,.entity weaponentity) |
void | W_LastWeapon (entity this,.entity weaponentity) |
void | W_NextWeapon (entity this, float list,.entity weaponentity) |
void | W_NextWeaponOnImpulse (entity this, float imp,.entity weaponentity) |
void | W_PreviousWeapon (entity this, float list,.entity weaponentity) |
void | W_SwitchToOtherWeapon (entity this,.entity weaponentity) |
bool | W_SwitchWeapon (entity this, Weapon imp,.entity weaponentity) |
void | W_SwitchWeapon_Force (Player this, Weapon w,.entity weaponentity) |
void | W_SwitchWeapon_TryOthers (entity this, Weapon imp,.entity weaponentity) |
#define w_getbestweapon | ( | ent, | |
wepent | |||
) | REGISTRY_GET(Weapons, W_GetCycleWeapon(ent, CS_CVAR(ent).cvar_cl_weaponpriority, 0, -1, false, true, wepent)) |
Definition at line 23 of file selection.qh.
Referenced by GiveItems(), IMPULSE(), Item_GiveTo(), MUTATOR_HOOKFUNCTION(), PutPlayerInServer(), REGISTER_MUTATOR(), W_LastWeapon(), W_SwitchToOtherWeapon(), W_ThrowWeapon(), and W_WeaponFrame().
bool client_hasweapon | ( | entity | this, |
Weapon | wpn, | ||
.entity | weaponentity, | ||
float | andammo, | ||
bool | complain | ||
) |
Definition at line 48 of file selection.qc.
References autocvar_g_showweaponspawns, autocvar_g_weaponswitch_debug, CS(), dual_weapons, FOREACH, hasweapon_complain_spam, IL_EACH, Weapon::impulse, IS_REAL_CLIENT, items, Weapon::m_id, OFFHAND_HOOK, PS, Send_WeaponComplain(), SND, Weapon::spawnflags, sprint(), time, Weapon_whereis(), weaponslot(), WEP_FLAG_DUALWIELD, and WepSet_FromWeapon.
Referenced by bot_cmd_select_weapon(), havocbot_chooseweapon(), havocbot_movetogoal(), NIX_GiveCurrentWeapon(), REGISTER_MUTATOR(), W_GetCycleWeapon(), W_LastWeapon(), and W_SwitchWeapon().
Definition at line 18 of file selection.qc.
References msg_entity, MSG_ONE, and WriteByte().
Referenced by client_hasweapon().
Definition at line 302 of file selection.qc.
References REGISTRY_GET, W_GetCycleWeapon(), and W_SwitchWeapon().
Referenced by for(), W_NextWeapon(), and W_PreviousWeapon().
float W_GetCycleWeapon | ( | entity | this, |
string | weaponorder, | ||
float | dir, | ||
float | imp, | ||
float | complain, | ||
float | skipmissing, | ||
.entity | weaponentity | ||
) |
Definition at line 131 of file selection.qc.
References car(), cdr(), client_hasweapon(), entity(), FOREACH, REGISTRY_GET, selectweapon, stof(), weaponcomplainindex, weaponorder, and WEP_FLAG_MUTATORBLOCKED.
Referenced by W_CycleWeapon(), and W_NextWeaponOnImpulse().
Definition at line 341 of file selection.qc.
References client_hasweapon(), cnt, MAX_WEAPONSLOTS, REGISTRY_GET, REPLICATE_APPLYCHANGE(), w_getbestweapon, W_SwitchToOtherWeapon(), W_SwitchWeapon(), and weaponentities.
Referenced by IMPULSE().
Definition at line 310 of file selection.qc.
References CS_CVAR, REGISTRY_GET, W_GetCycleWeapon(), and W_SwitchWeapon().
Referenced by W_SwitchWeapon_TryOthers(), and weapon_group_handle().
Definition at line 330 of file selection.qc.
References CS_CVAR, W_CycleWeapon(), weaponorder_byid, and weaponorder_byimpulse.
Referenced by IMPULSE().
Definition at line 253 of file selection.qc.
References w_getbestweapon, W_SwitchWeapon_Force(), and WepSet_FromWeapon.
Referenced by W_LastWeapon(), W_Reload(), and weapon_prepareattack_checkammo().
Definition at line 272 of file selection.qc.
References client_hasweapon(), CS_CVAR, entity(), Weapon::m_id, selectweapon, W_SwitchWeapon_Force(), and weaponLocked().
Referenced by GiveBall(), IMPULSE(), MUTATOR_HOOKFUNCTION(), NIX_GiveCurrentWeapon(), W_CycleWeapon(), W_LastWeapon(), W_NextWeaponOnImpulse(), W_SwitchWeapon_TryOthers(), and W_WeaponFrame().
Definition at line 243 of file selection.qc.
References entity(), Weapon::m_id, and TC.
Referenced by W_SwitchToOtherWeapon(), and W_SwitchWeapon().
Definition at line 296 of file selection.qc.
References CS_CVAR, Weapon::impulse, W_NextWeaponOnImpulse(), and W_SwitchWeapon().
Referenced by weapon_byid_handle().
int autocvar_g_showweaponspawns |
Definition at line 6 of file selection.qh.
Referenced by client_hasweapon(), and Weapon_whereis().
bool autocvar_g_weaponswitch_debug |
Definition at line 7 of file selection.qh.
Referenced by client_hasweapon(), for(), IMPULSE(), PutPlayerInServer(), W_Reload(), W_WeaponFrame(), weapon_byid_handle(), weapon_group_handle(), and X().
bool autocvar_g_weaponswitch_debug_alternate |
Definition at line 8 of file selection.qh.
Referenced by weapon_prepareattack_do().
WepSet dual_weapons |
Definition at line 12 of file selection.qh.
Referenced by client_hasweapon().
float hasweapon_complain_spam |
Definition at line 17 of file selection.qh.
Referenced by client_hasweapon().
int selectweapon |
Definition at line 10 of file selection.qh.
Referenced by W_GetCycleWeapon(), and W_SwitchWeapon().
int weaponcomplainindex |
Definition at line 20 of file selection.qh.
Referenced by W_GetCycleWeapon().