|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Macros | |
| #define | w_getbestweapon(ent, 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, bool complain, bool 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 ) |
Definition at line 23 of file selection.qh.
Referenced by GiveItems(), IMPULSE(), Item_GiveTo(), MUTATOR_HOOKFUNCTION(), PutPlayerInServer(), REGISTER_MUTATOR(), REPLICATE_APPLYCHANGE(), W_Devastator_DoRemoteExplode(), W_Devastator_Explode(), W_Hagar_Attack_Auto(), W_HLAC_Attack_Frame(), W_MachineGun_Attack_Auto(), W_MachineGun_Attack_Frame(), W_MineLayer_DoRemoteExplode(), W_MineLayer_Explode(), W_OverkillHeavyMachineGun_Attack_Auto(), W_OverkillMachineGun_Attack_Auto(), W_Shotgun_Attack3_Frame1(), W_Shotgun_Attack3_Frame2(), 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, entity(), FOREACH, g_mines, hasweapon_complain_spam, IL_EACH, Weapon::impulse, IS_REAL_CLIENT, IT_UNLIMITED_AMMO, items, Weapon::m_id, offhand, OFFHAND_HOOK, play2(), PS, Send_WeaponComplain(), SND, Weapon::spawnflags, sprint(), STAT, time, Weapon_whereis(), Weapons, weaponsInMap, weaponslot(), WEP_FLAG_DUALWIELD, WepSet_FromWeapon, Weapon::wr_checkammo1(), and Weapon::wr_checkammo2().
Referenced by bot_cmd_select_weapon(), GiveItems(), havocbot_chooseweapon(), havocbot_movetogoal(), Item_GiveTo(), NIX_GiveCurrentWeapon(), REGISTER_MUTATOR(), W_LastWeapon(), and W_SwitchWeapon().
Definition at line 18 of file selection.qc.
References entity(), msg_entity, MSG_ONE, WriteByte(), and WriteHeader.
Referenced by client_hasweapon().
Definition at line 305 of file selection.qc.
References dir, entity(), REGISTRY_GET, W_GetCycleWeapon(), W_SwitchWeapon(), weaponorder, and Weapons.
Referenced by for(), W_NextWeapon(), and W_PreviousWeapon().
| float W_GetCycleWeapon | ( | entity | this, |
| string | weaponorder, | ||
| float | dir, | ||
| float | imp, | ||
| bool | complain, | ||
| bool | skipmissing, | ||
| .entity | weaponentity ) |
Definition at line 132 of file selection.qc.
References car(), cdr(), dir, entity(), FOREACH, imp, m_switchweapon, NULL, REGISTRY_GET, selectweapon, stof(), weaponorder, and Weapons.
Referenced by W_CycleWeapon(), and W_NextWeaponOnImpulse().
Definition at line 344 of file selection.qc.
References client_hasweapon(), cnt, entity(), REGISTRY_GET, W_SwitchToOtherWeapon(), W_SwitchWeapon(), and Weapons.
Referenced by IMPULSE().
Definition at line 313 of file selection.qc.
References CS_CVAR, entity(), imp, REGISTRY_GET, W_GetCycleWeapon(), W_SwitchWeapon(), and Weapons.
Referenced by W_SwitchWeapon_TryOthers(), and weapon_group_handle().
Definition at line 333 of file selection.qc.
References CS_CVAR, entity(), W_CycleWeapon(), weaponorder_byid, and weaponorder_byimpulse.
Definition at line 256 of file selection.qc.
References entity(), m_weapon, STAT, w_getbestweapon, W_SwitchWeapon_Force(), and WepSet_FromWeapon.
Referenced by W_Arc_Beam_Think(), W_Hagar_Attack2_Load(), W_LastWeapon(), W_Reload(), and weapon_prepareattack_checkammo().
Definition at line 275 of file selection.qc.
References client_hasweapon(), CS_CVAR, entity(), Weapon::m_id, m_switchweapon, selectweapon, W_SwitchWeapon_Force(), weaponLocked(), and Weapon::wr_reload().
Referenced by GiveBall(), IMPULSE(), MUTATOR_HOOKFUNCTION(), NIX_GiveCurrentWeapon(), W_CycleWeapon(), W_LastWeapon(), W_NextWeaponOnImpulse(), W_SwitchWeapon_TryOthers(), and W_WeaponFrame().
Definition at line 246 of file selection.qc.
Referenced by W_SwitchToOtherWeapon(), and W_SwitchWeapon().
Definition at line 299 of file selection.qc.
References CS_CVAR, entity(), 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(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), IMPULSE(), 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.