Xonotic
|
#include "selection.qh"
#include <common/constants.qh>
#include <common/items/item.qh>
#include <common/mapobjects/triggers.qh>
#include <common/mutators/mutator/waypoints/waypointsprites.qh>
#include <common/net_linked.qh>
#include <common/replicate.qh>
#include <common/state.qh>
#include <common/util.qh>
#include <common/weapons/_all.qh>
#include <common/wepent.qh>
#include <server/items/items.qh>
#include <server/items/spawning.qh>
#include <server/weapons/weaponsystem.qh>
Go to the source code of this file.
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().
REPLICATE_APPLYCHANGE | ( | "cl_weaponpriority" | , |
for(int slot=0;slot< MAX_WEAPONSLOTS;++slot) { .entity weaponentity=weaponentities[slot];if(this.(weaponentity) &&(this.(weaponentity).m_weapon !=WEP_Null||slot==0)) this.(weaponentity).m_switchweapon=w_getbestweapon(this, weaponentity);} | |||
) |
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 319 of file selection.qc.
References CS_CVAR, W_CycleWeapon(), weaponorder_byid, and weaponorder_byimpulse.
Referenced by IMPULSE(), and X().
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 GiveItems(), Item_GiveTo(), MUTATOR_HOOKFUNCTION(), TEST(), W_SwitchToOtherWeapon(), W_SwitchWeapon(), W_ThrowWeapon(), and W_WeaponFrame().
Definition at line 296 of file selection.qc.
References CS_CVAR, Weapon::impulse, W_NextWeaponOnImpulse(), and W_SwitchWeapon().
Referenced by weapon_byid_handle().
Definition at line 26 of file selection.qc.
References autocvar_g_showweaponspawns, enemy, entity(), g_items, IL_EACH, and NULL.
Referenced by client_hasweapon(), and W_Model().